--- eucalyptus-1.6.2.orig/aclocal.m4 +++ eucalyptus-1.6.2/aclocal.m4 @@ -0,0 +1,171 @@ +# generated automatically by aclocal 1.11 -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- +# +# Copyright © 2004 Scott James Remnant . +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# PKG_PROG_PKG_CONFIG([MIN-VERSION]) +# ---------------------------------- +AC_DEFUN([PKG_PROG_PKG_CONFIG], +[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) +m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=m4_default([$1], [0.9.0]) + AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + PKG_CONFIG="" + fi + +fi[]dnl +])# PKG_PROG_PKG_CONFIG + +# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) +# +# Check to see whether a particular set of modules exists. Similar +# to PKG_CHECK_MODULES(), but does not set variables or print errors. +# +# +# Similar to PKG_CHECK_MODULES, make sure that the first instance of +# this or PKG_CHECK_MODULES is called, or make sure to call +# PKG_CHECK_EXISTS manually +# -------------------------------------------------------------- +AC_DEFUN([PKG_CHECK_EXISTS], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +if test -n "$PKG_CONFIG" && \ + AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then + m4_ifval([$2], [$2], [:]) +m4_ifvaln([$3], [else + $3])dnl +fi]) + + +# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) +# --------------------------------------------- +m4_define([_PKG_CONFIG], +[if test -n "$PKG_CONFIG"; then + if test -n "$$1"; then + pkg_cv_[]$1="$$1" + else + PKG_CHECK_EXISTS([$3], + [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], + [pkg_failed=yes]) + fi +else + pkg_failed=untried +fi[]dnl +])# _PKG_CONFIG + +# _PKG_SHORT_ERRORS_SUPPORTED +# ----------------------------- +AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi[]dnl +])# _PKG_SHORT_ERRORS_SUPPORTED + + +# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], +# [ACTION-IF-NOT-FOUND]) +# +# +# Note that if there is a possibility the first call to +# PKG_CHECK_MODULES might not happen, you should be sure to include an +# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac +# +# +# -------------------------------------------------------------- +AC_DEFUN([PKG_CHECK_MODULES], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl +AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl + +pkg_failed=no +AC_MSG_CHECKING([for $1]) + +_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) +_PKG_CONFIG([$1][_LIBS], [libs], [$2]) + +m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS +and $1[]_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details.]) + +if test $pkg_failed = yes; then + _PKG_SHORT_ERRORS_SUPPORTED + if test $_pkg_short_errors_supported = yes; then + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` + else + $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` + fi + # Put the nasty error message in config.log where it belongs + echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD + + ifelse([$4], , [AC_MSG_ERROR(dnl +[Package requirements ($2) were not met: + +$$1_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +_PKG_TEXT +])], + [AC_MSG_RESULT([no]) + $4]) +elif test $pkg_failed = untried; then + ifelse([$4], , [AC_MSG_FAILURE(dnl +[The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +_PKG_TEXT + +To get pkg-config, see .])], + [$4]) +else + $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS + $1[]_LIBS=$pkg_cv_[]$1[]_LIBS + AC_MSG_RESULT([yes]) + ifelse([$3], , :, [$3]) +fi[]dnl +])# PKG_CHECK_MODULES + --- eucalyptus-1.6.2.orig/node/handlers_xen.c +++ eucalyptus-1.6.2/node/handlers_xen.c @@ -298,15 +298,9 @@ output = malloc(bufsize); bzero(output, bufsize); - snprintf(filename, 1024, "/tmp/consoleOutput.%s", instanceId); - pid = fork(); if (pid == 0) { - int fd; - fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, 0644); - if (fd < 0) { - // error - } else { + { dup2(fd, 2); dup2(2, 1); close(0); @@ -324,9 +318,8 @@ struct stat statbuf; count=0; - while(count < 10000 && stat(filename, &statbuf) < 0) {count++;} - fd = open(filename, O_RDONLY); - if (fd < 0) { + close(fd); // reset fd + if ( (fd = open(filename, O_RDONLY)) < 0) { logprintfl (EUCAERROR, "ERROR: could not open consoleOutput file %s for reading\n", filename); } else { FD_ZERO(&rfds); @@ -350,6 +343,7 @@ unlink(filename); +encode_free_exit: if (output[0] == '\0') { snprintf(output, bufsize, "EMPTY"); } --- eucalyptus-1.6.2.orig/node/Makefile +++ eucalyptus-1.6.2/node/Makefile @@ -20,16 +20,21 @@ build: all generated/stubs: $(NCWSDL) - @echo Generating server stubs - rm -rf generated - mkdir -p generated - sh $(WSDL2C) -uri $(NCWSDL) -sd -ss -d adb -u -uw -f -o generated | grep -v 'the classpath' - @echo Adding marshalling calls to server stubs - ../tools/add_marshalling.pl generated/axis2_skel_*.c - @echo Generating client stubs - sh $(WSDL2C) -uri $(NCWSDL) -g -d adb -u -uw -f -o generated | grep -v 'the classpath' + if test -n "$(REBUILD_STUBS)"; \ + then \ + echo Generating server stubs; \ + rm -rf generated; \ + mkdir -p generated; \ + sh $(WSDL2C) -uri $(NCWSDL) -sd -ss -d adb -u -uw -f -o generated | grep -v 'the classpath'; \ + echo Adding marshalling calls to server stubs; \ + ../tools/add_marshalling.pl generated/axis2_skel_*.c; \ + echo Generating client stubs; \ + sh $(WSDL2C) -uri $(NCWSDL) -g -d adb -u -uw -f -o generated | grep -v 'the classpath'; \ + echo Patching; \ + patch -d generated -p1 < axis2_svc_generated.patch; \ + fi @echo Compiling the stubs - cd generated; patch -p1 < ../axis2_svc_generated.patch; $(CC) -c $(CFLAGS) $(INCLUDES) *.c + cd generated; $(CC) -c $(CFLAGS) $(INCLUDES) *.c @echo "this is a cute little makefile marker" >generated/stubs @echo Stubs generated. @@ -96,7 +101,10 @@ rm -rf $(SERVICE_SO) *.o $(CLIENT) $(CLIENT)_local *~* *#* distclean: - rm -rf generated $(SERVICE_SO) *.o $(CLIENT) $(CLIENT)_local *~* *#* + find generated -name '*.o' -print0 | xargs -0 rm -f + test -e generated/stubs && cd generated && patch -R -p1 < ../axis2_svc_generated.patch + rm -f generated/stubs + rm -rf $(SERVICE_SO) *.o $(CLIENT) $(CLIENT)_local *~* *#* install: deploy $(INSTALL) nc-client-policy.xml $(DESTDIR)$(vardir)/lib/eucalyptus/keys/ --- eucalyptus-1.6.2.orig/debian/eucalyptus-java-common.install +++ eucalyptus-1.6.2/debian/eucalyptus-java-common.install @@ -0,0 +1,19 @@ +/usr/share/eucalyptus/eucalyptus-auth-1.6.2.jar +/usr/share/eucalyptus/antlr.jar +/usr/share/eucalyptus/eucalyptus-core-1.6.2.jar +/usr/share/eucalyptus/eucalyptus-db-1.6.2.jar +/usr/share/eucalyptus/eucalyptus-groupmgr-1.6.2.jar +/usr/share/eucalyptus/eucalyptus-dns-1.6.2.jar +/usr/share/eucalyptus/eucalyptus-msgs-1.6.2.jar +/usr/share/eucalyptus/eucalyptus-ws-1.6.2.jar +/usr/share/eucalyptus/eucalyptus-imagemgr-1.6.2.jar +/usr/share/eucalyptus/eucalyptus-storage-common-1.6.2.jar +/usr/share/eucalyptus/eucalyptus-clustermgr-1.6.2.jar +/usr/share/eucalyptus/eucalyptus-keymgr-1.6.2.jar +/usr/share/eucalyptus/eucalyptus-config-1.6.2.jar +/usr/share/eucalyptus/eucalyptus-interface-1.6.2.jar +/etc/eucalyptus/cloud.d +/usr/lib/eucalyptus/liblvm2control.so +/var/lib/eucalyptus/modules +/var/lib/eucalyptus/webapps +/usr/sbin/eucalyptus-cloud --- eucalyptus-1.6.2.orig/debian/eucalyptus-sc.templates +++ eucalyptus-1.6.2/debian/eucalyptus-sc.templates @@ -0,0 +1,7 @@ +Template: eucalyptus/cluster-name +Type: string +Default: cluster1 +_Description: Eucalyptus cluster name: + Enter a name for this cluster. The name should contain only ASCII letters, + digits, hyphens, and underscores. It will be shown to users as the name of + an availability zone. --- eucalyptus-1.6.2.orig/debian/eucalyptus-cloud.postrm +++ eucalyptus-1.6.2/debian/eucalyptus-cloud.postrm @@ -0,0 +1,24 @@ +#!/bin/sh -e + + +if [ "$1" = "remove" ]; then + if [ -e /etc/init/eucalyptus.conf ]; then + restart eucalyptus || : + fi + if grep -qs "The Ubuntu Enterprise Cloud runs on port 8443" /var/www/index.html; then + cat > /var/www/index.html <

It works!

+

This is the default web page for this server.

+

The web server software is running but no content has been added, yet.

+ +EOF + fi +elif [ "$1" = "purge" ]; then + rm -rf /var/log/eucalyptus/cloud-*.log* \ + /var/log/eucalyptus/jetty-request*.log \ + /etc/eucalyptus/preseed/ +fi + +#DEBHELPER# + +exit 0 --- eucalyptus-1.6.2.orig/debian/eucalyptus-cc.dirs +++ eucalyptus-1.6.2/debian/eucalyptus-cc.dirs @@ -0,0 +1,4 @@ +/etc/eucalyptus/preseed +/etc/update-motd.d +/usr/lib/eucalyptus +/var/lib/eucalyptus/CC --- eucalyptus-1.6.2.orig/debian/uec-component-listener.install +++ eucalyptus-1.6.2/debian/uec-component-listener.install @@ -0,0 +1,3 @@ +debian/registration/uec_component_listener usr/sbin +debian/registration/common usr/share/eucalyptus/registration +debian/registration/uec-registration usr/bin --- eucalyptus-1.6.2.orig/debian/eucalyptus-cc.postrm +++ eucalyptus-1.6.2/debian/eucalyptus-cc.postrm @@ -0,0 +1,19 @@ +#!/bin/sh + +set -e + +if [ "$1" = "remove" ]; then + if [ -e /etc/init/eucalyptus-cc.conf ]; then + stop eucalyptus-cc || : + fi +elif [ "$1" = "purge" ]; then + rm -rf /var/log/eucalyptus/cc.log \ + /etc/eucalyptus/preseed/ \ + /etc/eucalyptus/eucalyptus-cc.conf \ + /var/lib/eucalyptus/nodes.list \ + /var/log/eucalyptus/httpd-cc_*_log* +fi + +#DEBHELPER# + +exit 0 --- eucalyptus-1.6.2.orig/debian/eucalyptus-nc.install +++ eucalyptus-1.6.2/debian/eucalyptus-nc.install @@ -0,0 +1,10 @@ +/usr/lib/eucalyptus/euca_mountwrap +/usr/share/eucalyptus/detach.pl +/usr/share/eucalyptus/gen_libvirt_xml +/usr/share/eucalyptus/gen_kvm_libvirt_xml +/usr/share/eucalyptus/get_xen_info +/usr/share/eucalyptus/get_sys_info +/usr/share/eucalyptus/partition2disk +/usr/sbin/euca_test_nc +/usr/lib/axis2/services/EucalyptusNC +debian/30-eucalyptus-nc.conf etc/sysctl.d --- eucalyptus-1.6.2.orig/debian/README.ubuntu-merging +++ eucalyptus-1.6.2/debian/README.ubuntu-merging @@ -0,0 +1,86 @@ +# This document is intended to describe the process by which we merge +# Eucalyptus snapshots from source control into Ubuntu's development +# branch. +# +# The instructions below are written in shell format, and are suitable +# for copy-and-paste, but this README is not intended for arbitrary +# execution. +# +# Please update as necessary. +# +# -- Dustin Kirkland , 12 Dec 2009 + +# Current Eucalyptus Major.Minor version +VER=1.6.2 +DIR=$(mktemp -d) +cd $DIR + +# Grab the Upstream branch +bzr branch lp:~eucalyptus-maintainers/eucalyptus/1.6.2 upstream + +# Get the current revision number +cd upstream +REVNO=$(bzr revno) && echo $REVNO + +# Upstream currently has it's own debian packaging, which is *not* what we want +bzr rm debian +bzr commit -m "remove the upstream debian packaging directory" +bzr export --root eucalyptus-$VER~bzr$REVNO ../eucalyptus_$VER~bzr$REVNO.orig.tar.gz && ls -halF ../eucalyptus_$VER~bzr$REVNO.orig.tar.gz +cd .. + +# Grab the Ubuntu branch +bzr branch lp:~ubuntu-core-dev/eucalyptus/ubuntu ubuntu +cd ubuntu + +# Do the Merge +bzr merge ../upstream +bzr conflicts + +################################## +# MANUAL STEP: Resolve Conflicts # +################################## + +# Get bugs fixed from upstream bzr log. Sanity check this!!! +LAST_REVNO=$(head -n 1 debian/changelog | sed "s/^.*bzr//" | sed "s/-.*$//") && echo $LAST_REVNO +cd ../upstream +BUGS_FIXED=$(bzr log --include-merges | egrep -B 999999999 "^revno: $LAST_REVNO$" | egrep "\#[0-9]{6}" | sed "s/\(#[0-9]\+\)/LP: \1\n/g" | sed "s/^.*LP: / - LP: /g" | egrep "\#[0-9]{6}" | sort -u) +echo " * Upstream merge fixes:" +echo "$BUGS_FIXED" +echo + +# Update new changelog +cd ../ubuntu +dch -i +# Edit bzr $REVNO, and update -0ubuntu1 +# Add $BUGS_FIXED info, note what's changed + +# Do an intermediate commit, to separate the upstream merge changes +# from our packaging changes +debcommit + +# Test the source build +bzr bd -S + +# Test the binary build +bzr bd + +# Build your source package +bzr bd -S + +############################## +# MANUAL STEP: Test Packages # +############################## + +# Update the changelog for release +dch --release lucid + +# Commit and tag the release +debcommit --release +bzr push lp:~ubuntu-core-dev/eucalyptus/ubuntu +# Or to the private branch +#bzr push lp:~eucalyptus-maintainers/eucalyptus-devel/ubuntu-lucid + +# And upload! +dput ../eucalyptus*_source.changes +# Or to the private PPA +#dput ppa:ubuntu-eucalyptus/devel ../eucalyptus*_source.changes --- eucalyptus-1.6.2.orig/debian/eucalyptus-common.links +++ eucalyptus-1.6.2/debian/eucalyptus-common.links @@ -0,0 +1,4 @@ +usr/lib/axis2/lib /etc/eucalyptus/axis2/lib +usr/lib/axis2/modules /etc/eucalyptus/axis2/modules +usr/lib/axis2/services /etc/eucalyptus/axis2/services +usr/share/man/man5/eucalyptus.conf.5.gz usr/share/man/man5/eucalyptus.local.conf.5.gz --- eucalyptus-1.6.2.orig/debian/eucalyptus-common.manpages +++ eucalyptus-1.6.2/debian/eucalyptus-common.manpages @@ -0,0 +1,2 @@ +tools/euca_conf.8 +tools/eucalyptus.conf.5 --- eucalyptus-1.6.2.orig/debian/eucalyptus-cloud.prerm +++ eucalyptus-1.6.2/debian/eucalyptus-cloud.prerm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +if [ "$1" = "remove" ]; then + stop eucalyptus-cloud || true +fi + +#DEBHELPER# --- eucalyptus-1.6.2.orig/debian/eucalyptus-cloud.postinst +++ eucalyptus-1.6.2/debian/eucalyptus-cloud.postinst @@ -0,0 +1,48 @@ +#!/bin/sh -e + +if [ "$1" = "configure" ] +then + if ! dpkg-statoverride --list /var/lib/eucalyptus/db >/dev/null 2>&1; then + chown eucalyptus:eucalyptus /var/lib/eucalyptus/db + chmod 700 /var/lib/eucalyptus/db + fi + + EUCA_HOME=`getent passwd eucalyptus | cut -f6 -d:` + if ! [ -d "$EUCA_HOME/.ssh" ] + then + mkdir -p "$EUCA_HOME/.ssh" + chown eucalyptus "$EUCA_HOME/.ssh" + chmod 755 "$EUCA_HOME/.ssh" + fi + if ! [ -f "$EUCA_HOME/.ssh/id_rsa" ] + then + su eucalyptus -c "ssh-keygen -N '' -t rsa -f $EUCA_HOME/.ssh/id_rsa" + fi + + if [ -e /etc/init/eucalyptus.conf ]; then + restart eucalyptus || : + fi + + if [ -r "/var/www/index.html" ]; then + # Replace the default "It works!" index.html with a redirect to the UEC front end + md5sum=$(md5sum /var/www/index.html | awk '{print $1}') + if [ "$md5sum" = "21dde95d9d269cbb2fa6560309dca40c" ]; then + cat > /var/www/index.html <

Ubuntu Enterprise Cloud

+

The Ubuntu Enterprise Cloud runs on port 8443.

+ + + +EOF + fi + fi +fi + +#DEBHELPER# --- eucalyptus-1.6.2.orig/debian/uec-component-listener.templates +++ eucalyptus-1.6.2/debian/uec-component-listener.templates @@ -0,0 +1,8 @@ +Template: eucalyptus/autoregistration +Type: boolean +Default: true +Description: Do you want to automatically register local UEC components ? + By default, this controller will automatically register other UEC components + from the local network. This can cause security issues on untrusted networks. + Note that you can manually enable or disable autoregistration after install + using the uec-registration tool. --- eucalyptus-1.6.2.orig/debian/changelog +++ eucalyptus-1.6.2/debian/changelog @@ -0,0 +1,1858 @@ +eucalyptus (1.6.2-0ubuntu9) lucid; urgency=low + + * debian/registration/uec_component_listener.c: + - Register a SIGCHLD handler to take care of dead children (LP: #531899) + - Do not create unnecessary child processes to call non-existent scripts + + -- Thierry Carrez Fri, 05 Mar 2010 12:13:19 +0100 + +eucalyptus (1.6.2-0ubuntu8) lucid; urgency=low + + * debian/eucalyptus-udeb.postinst: Fix regression in default install + choices introduced at rev887 (LP: #526461) + + -- Thierry Carrez Thu, 04 Mar 2010 11:15:25 +0100 + +eucalyptus (1.6.2-0ubuntu7) lucid; urgency=low + + [ Dustin Kirkland ] + * tools/euca_conf.in: fix manual node registration with rsync, LP: #530942 + - fix one stray 'rsync', replace with $RSYNC + - use sudo -u $EUCA_USER to match (working) behavior with scp + - use local $RSYNC_RSH variable, rather than exporting to the environment + * eucalyptus-cc.templates, eucalyptus-nc.config, eucalyptus-nc.templates, + eucalyptus-sc.templates: fix the default cluster name 'cluster1', as + this was not getting populated in the -nc if the default cluster name + was accepted on the CC, LP: #530937 + + [ Thierry Carrez ] + * Fixed eucalyptus-nc.templates so that eucalyptus-nc postinst doesn't fail + * eucalyptus-udeb.*: Preseed detected cloud for the CC installer to pick + it up and set VNET_CLOUDIP in separated CC case (LP: #527648) + + -- Thierry Carrez Wed, 03 Mar 2010 14:02:24 +0100 + +eucalyptus (1.6.2-0ubuntu6) lucid; urgency=low + + * debian/eucalyptus-cc.config, debian/eucalyptus-udeb.finish-install, + tools/euca_conf.in: continuation of previous fixes to LP: #527648; + must add VNET_CLOUDIP to euca_conf (should send this upstream) + + -- Dustin Kirkland Fri, 26 Feb 2010 16:19:56 -0600 + +eucalyptus (1.6.2-0ubuntu5) lucid; urgency=low + + [ Colin Watson ] + * Preseed postfix/main_mailer_type on the cloud controller, not the + cluster controller (LP: #455746). + + [ Dustin Kirkland ] + * debian/eucalyptus-cc.postinst, debian/eucalyptus-udeb.finish-install, + debian/eucalyptus-cc.templates, debian/eucalyptus-udeb.postinst: + - Have the CLC add it's IP address to the served preseed file, such + the CC can pick it up and write it to eucalyptus.local.conf + as the required VNET_CLOUDIP value (on separated CC, CLC installs), + LP: #527648 + + -- Dustin Kirkland Fri, 26 Feb 2010 11:41:45 -0600 + +eucalyptus (1.6.2-0ubuntu4) lucid; urgency=low + + [ Colin Watson ] + * Preseed postfix/main_mailer_type to "Internet Site" for cluster + controller installations (LP: #455746). + + [ Scott Moser ] + * only show ramdisk-id in metadata service if present for booted + instance, LP: #526805 + + -- Thierry Carrez Wed, 24 Feb 2010 10:33:49 +0100 + +eucalyptus (1.6.2-0ubuntu3) lucid; urgency=low + + [ Thierry Carrez ] + * clc/modules/cluster-manager/src/main/java/edu/ucsb/eucalyptus/cloud/cluster/VmInstance.java: + fix incomplete ephemeral block device mapping path, LP: #525675 + + -- Dustin Kirkland Mon, 22 Feb 2010 14:09:26 -0600 + +eucalyptus (1.6.2-0ubuntu2) lucid; urgency=low + + [ Thierry Carrez ] + * debian/registration/node: Accept "clustername node #2" and next ones into + clustername (LP: #523826) + + [ Dustin Kirkland ] + * debian/eucalyptus-url: improve format + * util/wrappers.conf: update for powernap-now + + -- Dustin Kirkland Thu, 18 Feb 2010 14:04:21 -0600 + +eucalyptus (1.6.2-0ubuntu1) lucid; urgency=low + + * Eucalyptus upstream has officially released 1.6.2 at bzr 1199; + update our versioning accordingly + + -- Dustin Kirkland Tue, 16 Feb 2010 14:30:41 -0600 + +eucalyptus (1.6.2~bzr1199-0ubuntu1) lucid; urgency=low + + * Merge from upstream bzr revision + + -- Dustin Kirkland Mon, 15 Feb 2010 16:16:55 -0600 + +eucalyptus (1.6.2~bzr1189-0ubuntu2) lucid; urgency=low + + * Make node ask to be registered in a specific cluster (LP: #515812): + - debian/eucalyptus-nc.postinst: Store target cluster name, if any + - debian/eucalyptus-nc.eucalyptus-nc-publication.upstart: Use stored target + cluster name in node publication + - debian/registration/node: Only register if we are on target cluster + + -- Thierry Carrez Mon, 15 Feb 2010 17:49:07 +0100 + +eucalyptus (1.6.2~bzr1189-0ubuntu1) lucid; urgency=low + + [ Thierry Carrez ] + * debian/rules: Start publication jobs on package install (LP: #504326) + * debian/*publication.upstart: Do not advertise Walrus, SC, CC or NC if + eucalyptus authorized_keys is missing, since autoregistration would then + partially fail (LP: #513722) + + [ Dustin Kirkland ] + * Merge from upstream bzr revision, should fix: + - LP: #453416 - fix metadata subdirectory lists + - LP: #513842 - fix metadata ephemeral verbage + + -- Dustin Kirkland Thu, 11 Feb 2010 16:32:06 -0600 + +eucalyptus (1.6.2~bzr1180-0ubuntu2) lucid; urgency=low + + * debian/eucalyptus-common.install: install bash completion information, + LP: #458203 + + -- Dustin Kirkland Wed, 10 Feb 2010 08:58:15 -0600 + +eucalyptus (1.6.2~bzr1180-0ubuntu1) lucid; urgency=low + + * Merge from upstream bzr revision, should fix: + - LP: #517769 - fix bucket acl server internal error + + -- Dustin Kirkland Mon, 08 Feb 2010 12:42:18 -0600 + +eucalyptus (1.6.2~bzr1176-0ubuntu4) lucid; urgency=low + + * debian/eucalyptus-sc.config: Set default cluster name for SC + if not set. + + -- Thierry Carrez Fri, 05 Feb 2010 14:34:44 -0800 + +eucalyptus (1.6.2~bzr1176-0ubuntu3) lucid; urgency=low + + * eucalyptus-sc.postinst, eucalyptus-sc.postrm, + eucalyptus-walrus.postinst: mkdir/chown the bukkits and volumes + folders, and purge them correctly + + -- Dustin Kirkland Fri, 05 Feb 2010 13:24:02 -0800 + +eucalyptus (1.6.2~bzr1176-0ubuntu2) lucid; urgency=low + + [ Dustin Kirkland ] + * debian/eucalyptus-cloud.postinst: gracefully handle non-existant + index.html + + [ Thierry Carrez ] + * Use a separate file for NODES, make eucalyptus-cc and euca_conf use it. + * Run uec-component-listener as the eucalyptus user (LP: #516373) + + -- Thierry Carrez Fri, 05 Feb 2010 12:16:02 -0800 + +eucalyptus (1.6.2~bzr1176-0ubuntu1) lucid; urgency=low + + * Fix version naming of this upload to match the correct + bzr revision + * Merge from upstream bzr revision, should fix: + - LP: #475354 - send correct hostname in metadata service + - LP: #461464 - fix ec2 tools compatibility + + -- Dustin Kirkland Fri, 05 Feb 2010 10:16:46 -0800 + +eucalyptus (1.6.2~bzr1166-0ubuntu5) lucid; urgency=low + + [ Colin Watson ] + * debian/eucalyptus-udeb.postinst: allow preseeding of + eucalyptus/install-mode, LP: #512633 + + -- Dustin Kirkland Thu, 04 Feb 2010 17:37:11 -0800 + +eucalyptus (1.6.2~bzr1166-0ubuntu4) lucid; urgency=low + + * eucalyptus-cc.eucalyptus-cc-publication.upstart, + eucalyptus-cloud.eucalyptus-cloud-publication.upstart, + eucalyptus-nc.eucalyptus-nc-publication.upstart, + eucalyptus-sc.eucalyptus-sc-publication.upstart, + eucalyptus-walrus.eucalyptus-walrus-publication.upstart: publication + jobs should respawn, but not too fast; also, revert a recent change + that stopped publication when the services stopped; this was + incorrect because publication is sometimes required for registration + * eucalyptus-cc.prerm, eucalyptus-cloud.prerm, eucalyptus-common.prerm, + eucalyptus-nc.prerm, eucalyptus-sc.prerm, eucalyptus-walrus.prerm: ensure + that publication services are stopped on package removal + + -- Dustin Kirkland Thu, 04 Feb 2010 12:19:12 -0800 + +eucalyptus (1.6.2~bzr1166-0ubuntu3) lucid; urgency=low + + * debian/eucalyptus-nc.upstart: handle libvirt restarts, LP: #512887 + * eucalyptus-cc.eucalyptus-cc-publication.upstart, + eucalyptus-cloud.eucalyptus-cloud-publication.upstart, + eucalyptus-cloud.upstart, eucalyptus-common.eucalyptus.upstart, + eucalyptus-nc.eucalyptus-nc-publication.upstart, + eucalyptus-nc.upstart, + eucalyptus-sc.eucalyptus-sc-publication.upstart, + eucalyptus-sc.upstart, + eucalyptus-walrus.eucalyptus-walrus-publication.upstart, + eucalyptus-walrus.upstart, uec-component-listener.upstart: add a few + inline comments, including a comment at the top of every upstart script + that seems to be required to get get vim syntax highlighting to work + * eucalyptus-cc.postrm, eucalyptus-cloud.postrm, + eucalyptus-common.postrm, eucalyptus-sc.postrm, + eucalyptus-walrus.postrm, uec-component-listener.postrm: fix package + purging with per-package file purging lists, LP: #503063 + * eucalyptus-cc.eucalyptus-cc-publication.upstart, + eucalyptus-sc.eucalyptus-sc-publication.upstart, + eucalyptus-walrus.eucalyptus-walrus-publication.upstart: stop publication + jobs if the relevant service stops running + + -- Dustin Kirkland Wed, 03 Feb 2010 19:01:47 -0800 + +eucalyptus (1.6.2~bzr1166-0ubuntu2) lucid; urgency=low + + * clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/client/EucalyptusWebInterface.java: + use upstream's better method of getting the version displayed in the web + login page + * tools/euca_conf.in: add known_hosts -> /dev/null to the SCP_OPT + * debian/eucalyptus-common.eucalyptus.upstart: allow for simple + eucalyptus process management with 'start,stop,status' of 'eucalyptus' + by ensuring that a dummy sleep process at least runs when the cc or + nc are started, LP: #504521, #504704 + * debian/eucalyptus-cc.upstart, debian/eucalyptus.conf, + tools/eucalyptus.conf.5: document CC clean restart, LP: #464384 + + -- Dustin Kirkland Wed, 03 Feb 2010 13:59:37 -0800 + +eucalyptus (1.6.2~bzr1166-0ubuntu1) lucid; urgency=low + + * Merge from upstream bzr revision + + -- Dustin Kirkland Tue, 02 Feb 2010 17:26:47 -0800 + +eucalyptus (1.6.2~bzr1136-0ubuntu3) lucid; urgency=low + + * eucalyptus-cc.eucalyptus-cc-publication.upstart, + eucalyptus-common.eucalyptus.upstart, eucalyptus-network.upstart, + eucalyptus-sc.eucalyptus-sc-publication.upstart, + eucalyptus-walrus.eucalyptus-walrus-publication.upstart, rules: rework + our eucalyptus starting condition to depend on a new upstart emitted + signal, eucalyptus-network-is-ready, which is only fired once the + network interface providing the default route is in fact up, and + listening on a real ip address, LP: #503180 + * debian/eucalyptus-common.eucalyptus.upstart: + - don't respawn eucalyptus-cloud + - ensure that the iptables module gets loaded soon enough, otherwise + much bad behavior happens in various nasty ways, most notably, a + wedged database which renders the CLC non responsive on restart/reboot, + LP: #503180 and dupes, LP: #444352, #444946, #467521, #478573, #480048 + + -- Dustin Kirkland Tue, 02 Feb 2010 17:13:52 -0800 + +eucalyptus (1.6.2~bzr1136-0ubuntu2) lucid; urgency=low + + [ Thierry Carrez ] + * debian/control, debian/build-jars, debian/eucalyptus-java-common.links: + Migrate from jetty6 to jetty (LP: #418836) + + [ Dustin Kirkland ] + * debian/eucalyptus-url: conditionally print the CLC's ipaddress in the MOTD + only if we're on the CLC, LP: #494808 + * debian/eucalyptus-cc.config: default the cluster-name to "cluster1", + ideally to eliminate one mostly unneeded (but preseedable) debconf + question, LP: #513379, #455062 + + -- Dustin Kirkland Mon, 01 Feb 2010 22:07:49 -0800 + +eucalyptus (1.6.2~bzr1136-0ubuntu1) lucid; urgency=low + + * Merge from upstream bzr revision + + -- Dustin Kirkland Wed, 27 Jan 2010 09:01:56 -0600 + +eucalyptus (1.6.2~bzr1128-0ubuntu4) lucid; urgency=low + + * debian/uec-component-listener.*: Add low-priority debconf question to + allow to disable autoregistration at install-time. + Start/stop uec-component-listener at package install/removal time. + * debian/control: Have uec-component-listener depend on eucalyptus-common + to ensure /var/lib/eucalyptus is available during postinst. + + -- Thierry Carrez Mon, 25 Jan 2010 17:09:04 +0100 + +eucalyptus (1.6.2~bzr1128-0ubuntu3) lucid; urgency=low + + * debian/registration/uec-registration: Add CLI helper to easily disable + (or reenable) automatic component registration. + + -- Thierry Carrez Thu, 21 Jan 2010 15:28:21 +0100 + +eucalyptus (1.6.2~bzr1128-0ubuntu2) lucid; urgency=low + + [Chuck Short] + * debian/source_eucalptus.py: Update apport hook with a bit more information. + + -- Dustin Kirkland Thu, 21 Jan 2010 10:45:34 +1300 + +eucalyptus (1.6.2~bzr1128-0ubuntu1) lucid; urgency=low + + * Merge from upstream 1.6.2 tree, minor logging fixes + * debian/eucalyptus-common.links: fix broken link + + -- Dustin Kirkland Mon, 18 Jan 2010 09:35:11 +1300 + +eucalyptus (1.6.2~bzr1124-0ubuntu3) lucid; urgency=low + + * debian/eucalyptus-common.postinst: Add empty NODES variable to the + original eucalyptus.local.conf, so that euca_conf can actually modify + it when registering nodes (LP: #506316) + + -- Thierry Carrez Tue, 12 Jan 2010 11:54:53 +0100 + +eucalyptus (1.6.2~bzr1124-0ubuntu2) lucid; urgency=low + + [ Mathias Gug ] + * tools/eucalyptus.conf.5: fix path to eucalyptus-local.conf file. + + [ Dustin Kirkland ] + * debian/eucalyptus-cc.eucalyptus-cc-publication.upstart, + debian/eucalyptus-cc.upstart, + debian/eucalyptus-cloud.eucalyptus-cloud-publication.upstart, + debian/eucalyptus-common.eucalyptus.upstart, + debian/eucalyptus-common.install, debian/eucalyptus-common.links, + debian/eucalyptus-common.postinst, debian/eucalyptus-common.preinst, + debian/eucalyptus-defaults.conf, + debian/eucalyptus-nc.eucalyptus-nc-publication.upstart, + debian/eucalyptus-nc.upstart, + debian/eucalyptus-sc.eucalyptus-sc-publication.upstart, + debian/eucalyptus-udeb.finish-install, + debian/eucalyptus-walrus.eucalyptus-walrus-publication.upstart, + debian/eucalyptus.conf, debian/source_eucalyptus.py, + tools/euca_conf.in, tools/eucalyptus.conf.5: + - eucalyptus.conf rework, per discussion with mathiaz and nurmi + - preserve /etc/eucalyptus/eucalyptus.conf as a conffile + - eliminate eucalyptus-defaults.conf, moving the defaults to the + eucalyptus.conf conffile + - rename eucalyptus-local.conf to eucalyptus.local.conf to match + work Dan Nurmi had already started in the parser + - update a bunch scripts and packaging to handle the new names + + -- Dustin Kirkland Tue, 12 Jan 2010 00:21:33 -0600 + +eucalyptus (1.6.2~bzr1124-0ubuntu1) lucid; urgency=low + + * Merge from upstream 1.6.2 tree + * Makefile, clc/build.xml, clc/modules/bootstrap/Makefile, + clc/modules/module-inc.xml, + clc/modules/storage-controller/native/Makefile, + clc/modules/www/build.xml, cluster/Makefile, gatherlog/Makefile, + node/Makefile, tools/Makefile, util/Makefile: revert DESTDIR patch, + as a more complete version has been integrated upstream + + -- Dustin Kirkland Mon, 11 Jan 2010 15:37:09 -0600 + +eucalyptus (1.6.2~bzr1120-0ubuntu7) lucid; urgency=low + + [ Thierry Carrez ] + * debian/eucalyptus-sc.config: Ask for cluster name on SC-only installs + (LP: #497831) + + [ Dustin Kirkland ] + * debian/eucalyptus-common.install, debian/eucalyptus-common.manpages, + debian/eucalyptus-common.postinst, debian/eucalyptus-common.preinst, + debian/eucalyptus-defaults.conf, debian/eucalyptus-nc.postinst, + debian/eucalyptus.conf, tools/euca_conf.8, tools/euca_conf.in: + - Massive rework fixing LP: #487275, improving the conffile handling + of eucalyptus.conf and euca_conf + + create /usr/share/eucalyptus/eucalyptus-defaults.conf, + which contains generic, distro defaults + + first source /usr/share/eucalyptus/eucalyptus-defaults.conf, + in eucalyptus.conf + + next source /etc/eucalyptus/eucalyptus-local.conf, in + eucalyptus.conf, containing site-specific customizations + + finally, allow for admin customizations at the bottom of + eucalyptus.conf + + move euca_conf.1 to euca_conf.8, and actually install it, + LP: #458211 + + fix tools/euca_conf.in to use $FILE instead of eucalyptus.conf + + have tools/euca_conf.in write to eucalyptus-local.conf + + drop serveral postinst calls to euca_conf, now that these + defaults are set/sourced in eucalyptus-defaults.conf + + maintainer script fixes seeding eucalyptus-local.conf on new + installs, moving existing eucalyptus.conf data to + eucalyptus-local.conf on upgrades + * debian/eucalyptus-common.links, debian/eucalyptus-common.manpages, + tools/eucalyptus.conf.5: move most of the inline documentation from + eucalyptus.conf to a manpage, LP: #458211 + + -- Dustin Kirkland Sun, 10 Jan 2010 22:08:59 -0600 + +eucalyptus (1.6.2~bzr1120-0ubuntu6) lucid; urgency=low + + [ Thierry Carrez ] + * Revert eucalyptus-nc-publication to start on "started eucalyptus-nc", + pending a more elegant solution (LP: #504262) + * debian/eucalyptus-nc.eucalyptus-nc-publication.upstart: Be slightly more + accurate and start on started eucalyptus-nc, ssh and avahi-daemon. + * debian/eucalyptus-{sc,walrus}.postinst: Fix /var/lib/eucalyptus/.ssh + permissions, even for SC-only and Walrus-only installs (LP: #504309) + + [ Dustin Kirkland ] + * debian/eucalyptus-cloud.postinst, debian/eucalyptus-cloud.postrm:: + if the default "It works!" page is in place, enhance it with a redirect + to the real UEC front end, LP: #504615 + + -- Dustin Kirkland Fri, 08 Jan 2010 00:40:59 -0600 + +eucalyptus (1.6.2~bzr1120-0ubuntu5) lucid; urgency=low + + * Log the URL from which we're loading the cloud preseed file. + * When constructing the cloud preseed URL, strip the port from the cloud + before appending :8443 (LP: #504157). + + -- Colin Watson Thu, 07 Jan 2010 09:54:53 +0000 + +eucalyptus (1.6.2~bzr1120-0ubuntu4) lucid; urgency=low + + [ Thierry Carrez ] + * debian/*publication.upstart: Start publication jobs when eth0 is up, and + never stop them to work around The Upstart Bug (LP: #503850) + + [ Dustin Kirkland ] + * debian/control, debian/eucalyptus-nc.upstart: (LP: #446036, #452572) + - add a versioned depends for eucalyptus-nc on a new version + of libvirt-bin that starts using upstart + - start eucalyptus-nc on started libvirt-bin + + -- Dustin Kirkland Wed, 06 Jan 2010 19:16:01 -0600 + +eucalyptus (1.6.2~bzr1120-0ubuntu3) lucid; urgency=low + + [ Thierry Carrez ] + * Move again eucalyptus-interface.jar from eucalyptus-cloud to + eucalyptus-java-common, fix got lost in bzr1103 merge (LP: #503400) + * debian/*publication.upstart, debian/control: Start publication when sshd + and avahi-daemon are started and package is installed. Add versioned + dependency on the upstart-enabled openssh-server, and move avahi-utils as + a dependency of eucalyptus-common (LP: #503340) + + [ Dustin Kirkland ] + * eucalyptus-common.eucalyptus.upstart, eucalyptus-nc.upstart: per slangasek, + these should be starting on [2345], and stopping on [!2345], to prevent + respawning on killall5 at shutdown + + -- Thierry Carrez Tue, 05 Jan 2010 16:24:03 +0100 + +eucalyptus (1.6.2~bzr1120-0ubuntu2) lucid; urgency=low + + * Merge debian/patches into the branch, since we're using bzr for merging: + - debian/patches/axis2c_home_init.diff, debian/patches/series, + tools/httpd.conf: change the location of the Axis2 Apache module to + match what is provided by the libapache2-mod-axis2c package, from + Thierry Carrez -- 7 Dec 2009 + - debian/patches/series, tools/gen_kvm_libvirt_xml: Ubuntu prefers to + rely on libvirt's default choosing of the appropriate hypervisor, from + Dustin Kirkland -- 2 Dec 2009 + - Makefile, clc/build.xml, clc/modules/bootstrap/Makefile, + clc/modules/module-inc.xml, + clc/modules/storage-controller/native/Makefile, + clc/modules/www/build.xml, cluster/Makefile, + debian/patches/03-DESTDIR.patch, debian/patches/series, + gatherlog/Makefile, node/Makefile, tools/Makefile, util/Makefile: + + this patch makes the eucalyptus installation work with a configurable + destination directory, much better for packaging + + this patch should be applied upstream (Dan Nurmi agreed to do so), + in which case we should get back in sync + * debian/rules, debian/wsdl.md5sums, debian/wsdl_generator: improve wsdl + stubs (LP: #487270); + - fail build if wsdl stubs need to be updated + - create a script that verbosely automates wsdl stub generation for + package maintainer(s) + * debian/patches/01-wsdl-stubs.patch, debian/wsdl.md5sums: wsdl stubs updated + + -- Dustin Kirkland Mon, 04 Jan 2010 11:24:00 -0600 + +eucalyptus (1.6.2~bzr1120-0ubuntu1) lucid; urgency=low + + * Merge from upstream 1.6.2 tree + + -- Dustin Kirkland Mon, 04 Jan 2010 09:26:03 -0600 + +eucalyptus (1.6.2~bzr1113-0ubuntu2) lucid; urgency=low + + * tools/euca_conf.in: Fix euca_conf local key sync regression (LP: #499811) + * debian/registration/uec_component_listener.c: Call registration scripts + asynchronously, so that SC can wait for CC to be registered. + * debian/registration/{cluster,storage}: Implement CC/SC autoregistration + * debian/*registration.upstart, debian/rules: Phase out old CC/SC register + * debian/registration/walrus: Stronger check for existing walrus + * debian/registration/node: Stronger check for existing nodes + + -- Thierry Carrez Mon, 04 Jan 2010 15:38:22 +0100 + +eucalyptus (1.6.2~bzr1113-0ubuntu1) lucid; urgency=low + + * Merge from upstream 1.6.2 tree, fixes LP: #498379 + * debian/eucalyptus-common.postinst: Apply the setuid bit not just on new + installs, so that it's not lost on upgrades (LP: #499480) + + -- Thierry Carrez Tue, 22 Dec 2009 15:40:21 +0100 + +eucalyptus (1.6.2~bzr1103-0ubuntu4) lucid; urgency=low + + * debian/*publication.upstart: Do not use IP address as Avahi service name, + to avoid cloud/walrus conflicts (and be generally more readable), fixes + LP: #499098 + * debian/registration/{node,walrus}: Do not include euca_conf output in log + * debian/{eucalyptus-cloud,eucalyptus-cc,uec-component-listener}.upstart: + Only start uec-component-listener when both CLC and CC are running (or one + them is absent), fixes LP: #499367 + + -- Thierry Carrez Tue, 22 Dec 2009 09:58:22 +0100 + +eucalyptus (1.6.2~bzr1103-0ubuntu3) lucid; urgency=low + + * debian/eucalyptus-nc.upstart: Fix httpd configuration in upstart script + so that eucalyptus-nc can actually start (LP: #499029) + * tools/euca_conf.in: Add --skip-scp-hostcheck option to euca_conf, which + is needed for node autoregistration (LP: #499049) + * debian/registration/{common,node}: Add node autoregistration script + * debian/uec-component-listener.upstart: Enable autoregistration lock + * Add walrus autoregistration, remove old walrus-registration upstart script + * debian/eucalyptus-common.postinst: chown *before* chmod 04754, so that + euca_rootwrap actually ends up setuid (LP: #499048) + + -- Thierry Carrez Mon, 21 Dec 2009 16:30:33 +0100 + +eucalyptus (1.6.2~bzr1103-0ubuntu2) lucid; urgency=low + + [ Dustin Kirkland ] + * debian/control: add a recommends on bridge-utils, and a suggests + on aoetools, per feedback from Dan + * debian/eucalyptus-common.eucalyptus.upstart, debian/eucalyptus-nc.upstart: + move the loop device creation to the common upstart script, since several + eucalyptus components need this, LP: #498174 + * clc/modules/bootstrap/eucalyptus-bootstrap.c: fix broken build, "true" + was undefined + + -- Dustin Kirkland Sat, 19 Dec 2009 07:53:56 -0600 + +eucalyptus (1.6.2~bzr1103-0ubuntu1) lucid; urgency=low + + [ Dustin Kirkland ] + * Merge from Lucid's 1.6.1 tree, pull Colin's registration magic + * Merge from upstream 1.6.2 tree + - eucalyptus-cloud.install, eucalyptus-common.eucalyptus.upstart, + eucalyptus-java-common.install, eucalyptus-sc.install, + eucalyptus-walrus.install: jars are now named *-1.6.2.jar + - debian/eucalyptus-java-common.install: db is packaged independently now, + make sure this gets installed + - debian/eucalyptus-java-common.links: install proxool.jar link + * debian/eucalyptus-common.postinst: remove incorrect + 'dpkg-statoverride --add' calls, clean up existing ones, (LP: #437012) + * Improve lintian cleanliness of this package + - debian/control: bump standards version, no changes necessary + - debian/README.source: add patch info + - debian/eucalyptus-cc.templates, debian/eucalyptus-udeb.templates: drop + useless imperative, fix too-long descriptions + - debian/eucalyptus-cc.postinst, debian/eucalyptus-cloud.postinst, + debian/eucalyptus-cloud.postrm, debian/eucalyptus-common.postinst, + debian/eucalyptus-common.postrm, debian/eucalyptus-nc.config, + debian/eucalyptus-nc.postinst: fix maintainer-script-ignores-errors + lintian errors, this will need some testing and will probably + involve some (needed) error handling in the maintainer scripts + - debian/eucalyptus-common.install: fix lintian dir-or-file-in-var-run; + create in the upstart script, rather than the install file + - debian/control: fix lintian python-script-but-no-python-dep; + depend on python + - debian/eucalyptus-nc.postinst: fix postinst-does-not-load-confmodule, + source it + - debian/registration/common: fix script-not-executable, make executable + * util/wrappers.conf: add /usr/sbin/ietadm, (LP: #497196) + * clc/modules/bootstrap/eucalyptus-bootstrap.c: disable iscsi, (LP: #497196) + * clc/modules/configuration/src/main/java/com/eucalyptus/config/Configuration.java: + revert r582, as this is appropriately addressed now, no need to comment + out this code + * clc/modules/wsstack/src/main/java/com/eucalyptus/ws/handlers/WalrusRESTBinding.java: + fix minor whitespace diff against upstream + * debian/control, debian/eucalyptus-nc.eucalyptus-nc-publication.upstart, + debian/eucalyptus-nc.install, debian/eucalyptus-nc.upstart, debian/rules: + migrate the NC init to upstart, LP: #438631 + * debian/30-eucalyptus-nc.conf, debian/eucalyptus-nc.install, + debian/eucalyptus-nc.upstart: use sysctl to load the eucalyptus-nc + networking settings + + [ Thierry Carrez ] + * Move eucalyptus-interface-1.6-devel.jar from eucalyptus-cloud to + eucalyptus-java-common, since it is needed on Walrus and SC (LP: #494765) + * Fix dependencies: Remove c3p0 dependencies, add proxool, woodstox and + euca-commons-ext >=0.5.0 + + [ Mathias Gug ] + * debian/control: Add wget as an eucalyptus-cc dependency (required by + eucalyptus-cc upstart job). + + -- Dustin Kirkland Thu, 17 Dec 2009 18:22:02 -0600 + +eucalyptus (1.6.2~bzr1099-0ubuntu1~ppa1) lucid; urgency=low + + * Merge from upstream bzr + - Conflict handling: + + .bzrignore: modules moved, accept upstream + + tools/eucalyptus-cloud.in: ubuntu doesn't use this file, accept + upstream + + clc/modules/wsstack/src/main/java/com/eucalyptus/ws/handlers/WalrusRESTBinding.java: + whitespace only, accept upstream + + clc/modules/module-inc.xml, debian/patches/03-DESTDIR.patch: move + stray DESTDIR change to the DESTDIR patch + + clc/modules/walrus/src/main/java/edu/ucsb/eucalyptus/cloud/ws/WalrusManager.java: + new function parameter, accept upstream + + clc/modules/msgs/src/main/java/com/eucalyptus/util/EntityWrapper.java: moved + + clc/modules/msgs/src/main/java/com/eucalyptus/util/TxHandle.java: moved + - debian/patches/03-DESTDIR.patch: patch ported forward + - Bugs fixed: + + LP: #461156 - User data is not parsed correctly in some cases + + LP: #477776 - Query string authentication does not work in some cases + - eucalyptus-cloud.install, eucalyptus-common.eucalyptus.upstart, + eucalyptus-java-common.install, eucalyptus-sc.install, + eucalyptus-walrus.install: update jar version from 1.6.1 to 1.6.2 + + -- Dustin Kirkland Wed, 09 Dec 2009 17:34:21 -0800 + +eucalyptus (1.6.1~bzr1085-0ubuntu4) lucid; urgency=low + + [ Colin Watson ] + * Append " storage" to the Avahi service name for storage controllers, to + ensure that they're distinct from cluster controllers on the same + machine. + + [ Thierry Carrez ] + * Fix basic security issues in uec-component-listener by using + fork()/execvp() instead of system(), thanks to Colin Watson for the patch + + -- Thierry Carrez Mon, 14 Dec 2009 08:25:59 +0100 + +eucalyptus (1.6.1~bzr1085-0ubuntu3) lucid; urgency=low + + * uec-component-listener: + - New binary package, provides a listener to remote avahi announces + - Add a build-dep on libavahi-client-dev + - Make eucalyptus-cc and eucalyptus-cloud depend on uec-component-listener + * Add dummy registration action scripts in eucalyptus-cc and -cloud + + -- Thierry Carrez Fri, 11 Dec 2009 11:09:09 +0100 + +eucalyptus (1.6.1~bzr1085-0ubuntu2) lucid; urgency=low + + * Generate a preseed file on the CLC as well as the CC. + * If multiple CLCs are discovered, ask which to use. + * Use CLC preseed file when installing any of Walrus, CC, or SC on a + different machine from the CLC. (Requires wget-udeb since the CLC only + talks HTTPS.) + * Generate an SSH key on the CLC as well as the CC. + + -- Colin Watson Thu, 10 Dec 2009 18:24:42 +0000 + +eucalyptus (1.6.1~bzr1085-0ubuntu1) lucid; urgency=low + + * Merge from upstream bzr revision 1085 + + -- Dustin Kirkland Mon, 07 Dec 2009 17:00:19 -0800 + +eucalyptus (1.6.1~bzr1083-0ubuntu4) lucid; urgency=low + + * debian/patches/axis2c_home_init.diff: Restore patch for Axis2 module + location, to allow CC to start (LP: #493523) + + -- Thierry Carrez Mon, 07 Dec 2009 16:06:28 +0100 + +eucalyptus (1.6.1~bzr1083-0ubuntu3) lucid; urgency=low + + * Add eucalyptus/cluster-name to CC preseed file. + * Offer finer-grained choices between Eucalyptus components during + installation. + * Source debconf confmodule in eucalyptus-sc.postinst. + * Set correct permissions on /usr/lib/eucalyptus/eucalyptus-url at build + time rather than in eucalyptus-cc.postinst. + + -- Colin Watson Fri, 04 Dec 2009 23:29:57 +0000 + +eucalyptus (1.6.1~bzr1083-0ubuntu2) lucid; urgency=low + + * debian/patches/06-symlinked-jars.patch: drop patch from source; this + patch hasn't been in the series file for a while now + * debian/patches/axis2c_home_init.diff: + - Dropping the httpd.conf part of this patch, since our upstart + script handles this properly. + - Dropping the tools/eucalyptus-cc.in part of this patch, since + we no longer use the eucalyptus-cc init script. + - The tools/eucalyptus-nc.in patch should be dropped as soon as + it's converted to an upstart script (which will need to handle + AXIS2C_HOME correctly), see lp#438631 + * debian/patches/02-rely-on-libvirt-defaults.patch: add some documentation + in this patches headers + * debian/patches/var_lib_eucalyptus.diff: drop patch from source; this + patch hasn't been in the series file for a while now + * debian/patches/euca_conf-error-output.diff, debian/series, + tools/euca_conf.in: + - drop this patch from our series + - apply directly to the branch, cleaning up wget error printing + - upstream has agreed to take this, and fix this globally in their + source + * aclocal.m4, debian/patches/05-axis-alternative-repository.patch, + debian/patches/series: + - drop this patch from our series + - apply directly to the branch, to support pkg-config + - upstream cannot take this because not all distros will be able to + depend on pkg-config + * debian/patches/03-DESTDIR.patch: Eucalyptus will take this upstream; + should be dropped from the Ubuntu branch as soon as they do + * debian/eucalyptus-cc.upstart, debian/eucalyptus-common.eucalyptus.upstart: + support CLEAN=1 on start/stop/restart of eucalyptus/eucalyptus-cc; export + the CLEAN env variable in eucalyptus.init, and handle it in both the + pre-start and post-stop sections of eucalyptus-cc, (LP: #491254) + + -- Dustin Kirkland Thu, 03 Dec 2009 07:29:32 -0600 + +eucalyptus (1.6.1~bzr1083-0ubuntu1) lucid; urgency=low + + [ Dustin Kirkland ] + * Merge upstream bzr revision 1082; the following bugs have been fixed + upstream since the last merge: + - LP: #378969 - private bug + - LP: #404842 - init script fix + - LP: #434283 - existing keys should be overwritten unconditionally + - LP: #445990 - run instance will fail if no kernel or ramdisk specified + - LP: #447457 - euca_conf --register-sc ... check the number of parameters + - LP: #449874 - fix incorrect help text (--delete-nodes doesn't exist) + - LP: #451795 - show registered images in elastic fox + - LP: #454405 - return correct networkIndex values on describeInstances + - LP: #456877 - init script fix + - LP: #456878 - fix for libvirt xen driver + - LP: #460085 - fix rampart memory leak + - LP: #461156 - fix authentication problem w/ userdata + - LP: #461394 - fix multiple concurrent snapshots on the same volume + - LP: #461444 - fix memory leaks in NC getConsoleOutput and startup_thread + - LP: #469984 - fix iptables rules issue + - LP: #477776 - fix query string authentication + - LP: #480783 - allow api connection over https + - LP: #482249 - fix "Describe Regions" + - LP: #484217 - create keypair should return an error if key exists + - LP: #490623 - parse RFC 1123 formatted datetime + * debian/control: + - make all package lists one-per-line (makes changes henceforth more + readable), sort lists + - depend on rampart >= 1.3.0-0ubuntu6, which fixes some shared library + installation issues + * debian/patches/04-axis2c-1.6.0-rampart-1.3.0.patch: drop this patch, + since Eucalyptus 1.6.1 natively supports axis2c 1.6.0 now + * debian/eucalyptus-cloud.install, + debian/eucalyptus-common.eucalyptus.upstart, + debian/eucalyptus-java-common.install, debian/eucalyptus-sc.install, + debian/eucalyptus-walrus.install: update static version number strings + from "1.6-devel" to "1.6.1"; (we should really find a better way to do + this) + * debian/patches/03-DESTDIR.patch: ported forward for merge + + -- Dustin Kirkland Tue, 01 Dec 2009 21:09:28 -0600 + +eucalyptus (1.6~bzr931-0ubuntu9) UNRELEASED; urgency=low + + [ Dustin Kirkland ] + * cluster/handlers.c: euca_rootwrap rework did not whitelist powerwake; + however, powerwake does *not* need root privs, drop euca_rootwrap wrapper + (LP: #458163) + * + + [ Thierry Carrez ] + * clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/public/EucalyptusWebInterface.html: + Fix HTML title in the web UI for more consistency in naming (LP: #455293) + * debian/eucalyptus-common.eucalyptus.upstart: Add -l to eucalyptus-cloud + options so that cloud-output.log is affected by LOGLEVEL (LP: #458001) + + [ Colin Watson ] + * Move cluster private interface selection forward to just after network + configuration (LP: #455816). + * Add the CC's IP address as an explicit TXT record in the Avahi + advertisement, and make use of it in euca_find_cluster (LP: #458904). + * Advertise the CLC and Walrus using Avahi. + * Rename euca_find_cluster to euca_find_component and make it take the + component type as its first argument, so that we can use it for other + advertisements. + * Advertise $CC_NAME rather than $CC_IP_ADDR as the cluster's Avahi + service name, reverting the workaround from 1.6~bzr916-0ubuntu1 now that + we have the ipaddr= TXT record. I've left the client side of this + workaround in euca_find_component for compatibility with old + advertisements. + * Show cluster service names in installer cluster selection dialog. + * Advertise the SC using Avahi. + + -- Dustin Kirkland Tue, 01 Dec 2009 14:32:42 -0600 + +eucalyptus (1.6~bzr931-0ubuntu7) karmic; urgency=low + + * clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/client/EucalyptusWebInterface.java: + Add a bit of branding text and pointers to documentation in the web + interface (LP: #455697) + + -- Dustin Kirkland Mon, 19 Oct 2009 14:04:37 -0500 + +eucalyptus (1.6~bzr931-0ubuntu6) karmic; urgency=low + + * debian/control: Depend on libecj-java instead of ecj to get ecj.jar, + saves ~25Mb of CD space (LP: #455246) + * debian/control: Set Maintainer field to Ubuntu Developers + + -- Thierry Carrez Mon, 19 Oct 2009 13:36:15 +0200 + +eucalyptus (1.6~bzr931-0ubuntu5) karmic; urgency=low + + * clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/client/EucalyptusWebInterface.java: + change the Eucalyptus version string displayed in the web interface + from "1.6-devel" to "1.6"; this version is officially released by + upstream, and a far more invasive patch is required to fix all of + the -devel references; this minimal patch is required for the + cosmetics of the web front end for the Ubuntu 9.10 release (LP: #452271) + + -- Dustin Kirkland Fri, 16 Oct 2009 15:41:15 -0500 + +eucalyptus (1.6~bzr931-0ubuntu4) karmic; urgency=low + + [ Kees Cook ] + * Fix unsafe /tmp file uses (LP: #445105): + - tools/detach.pl: remove debugging XML dump call. + - node/handlers_xen.c: use mkstemp(). + + [ Mathias Gug ] + * debian/eucalyptus-common.eucalyptus.upstart: Start eucalyptus-cloud + with all the relevant options (LP: #452665). + + [ Dustin Kirkland ] + * cluster/handlers.c, net/vnetwork.c: label the 169.254.169.254 link + local address with :metadata, the public vm ip addresses with :pub, + and the private vm ip addresses with :priv, to separate it appropriately + (LP: #452754) + * debian/eucalyptus-ipaddr.conf: and now that we're separating the weird + addresses to their own labels, we can show just the device label, much + cleaner output, (LP: #451607) + * debian/copyright: Eucalyptus licensed 1.6 under the GPLv3, update + our copyright file accordingly, (LP: #453129) + * debian/control, debian/eucalyptus-java-common.links: the CLC absolutely + needs the ecj.jar installed and linked for euca-* and ec2-* API calls + to work (LP: #453177) + + -- Dustin Kirkland Fri, 16 Oct 2009 13:28:32 -0500 + +eucalyptus (1.6~bzr931-0ubuntu3) karmic; urgency=low + + * debian/eucalyptus-ipaddr.conf: Only consider scope global addresses when + determining cloud IP addresses (LP: #451607) + * Cherrypick upstream r932 to fix regression in ElasticFox query handling + that would prevent registered images to show up (LP: #451795) + * Web UI changes: add Services tab and fix look of ImageStore (LP: #436447) + + -- Thierry Carrez Thu, 15 Oct 2009 13:51:28 +0200 + +eucalyptus (1.6~bzr931-0ubuntu2) karmic; urgency=low + + [ Kees Cook, Dan Nurmi, Dustin Kirkland ] + * debian/control, util/Makefile, util/chgrp-dhcpd, util/chmod-dhcpd, + util/dd-lv, util/euca_rootwrap.c, util/modprobe-aoe, + util/wrappers.conf: LP: #436977 + - rework euca_rootwrap to be a bit more secure; + - whitelist the commands that eucalyptus needs to run as root in a + configuration file + - build-depend on libcap-dev + * debian/eucalyptus-common.install: ensure the new utilities and conf + file gets installed + * debian/patches/03-DESTDIR.patch: updated for new util/Makefile + utility installs + + -- Dustin Kirkland Wed, 14 Oct 2009 18:12:51 -0500 + +eucalyptus (1.6~bzr931-0ubuntu1) karmic; urgency=low + + * Merge from upstream revision 931 + * This snapshot is expected to fix the following bug: + - LP: #450915 - fix issue with slow restoring of instances + + -- Dustin Kirkland Tue, 13 Oct 2009 23:31:12 -0500 + +eucalyptus (1.6~bzr930-0ubuntu1) karmic; urgency=low + + [ Dustin Kirkland ] + * debian/eucalyptus-url, debian/eucalyptus-cc.install, + debian/eucalyptus-cc.links, debian/eucalyptus-cc.postinst:: + - fix whitespace, to match other update-motd urls LP: #450449 + - link to ubuntu.com/cloud, which links to our documentation, + necessary for new UEC admins + - ensure that it gets installed with executable permissions, + LP: #444970 + * debian/eucalyptus-udeb.finish-install: fix typo; fix breakage of + /etc/network/interfaces when nodes are configured with static IP + addresses, LP: #446023 + * eucalyptus-cc.upstart, + eucalyptus-cloud.eucalyptus-cc-registration.upstart, + eucalyptus-cloud.eucalyptus-sc-registration.upstart, + eucalyptus-cloud.eucalyptus-walrus-registration.upstart, + eucalyptus-sc.upstart, eucalyptus-walrus.upstart, rules, control: + - registration of cc/sc/walrus should *only* ever occur on the CLC, + so these scripts should be moved to the eucalyptus-cloud package, + LP: #450815 + - starting cc/sc/walrus should *not* depend on eucalyptus-cloud + running, since these components can be installed on separate + machines, LP: #450777 + - but if cc/sc/walrus are on a system doing registration, ensure that + these jobs kick off when "starting" registration + - allow for whitespace separated list of $CC_IP_ADDR and $SC_IP_ADDR, + as there can be more than one of these, and admins in multi-cluster + or multi-component mode would need to register a list + - use Replaces to ensure upgrades work properly + * debian/eucalyptus-ipaddr.conf: update inline documentation accordingly + * debian/eucalyptus-cc.templates: update public_ips instructions in the + installer to match the new upstream implementation, LP: #438565 + * eucalyptus-common.eucalyptus.upstart: fix unclean package purging, + which hangs on stopping eucalyptus service + + [ Upstream ] + * Merge upstream revision 930 + * This snapshot is expected to fix the following bugs: + - LP: #449944 - fixes remote component bootstrap issue + - LP: #430852, #401996 - fix handling of security groups for the admin + - LP: #449948 - fix issues with network index and address recovery after + a system restart + - LP: #398867 - fix storing VLAN tag info from web ui + - LP: #430266 - fix setting of HTTP error codes + - LP: #449948 - part of fix to LP:#449948 the CC now correctly sets the + networkIndex field in the reponse message of describeInstances + - LP: #438565 - allowing a range of IPs to be specified in the + VNET_PUBLICIPS field of eucalyptus.conf + - LP: #449143 - Add the 169.254.169.254 address to eth0 as 'scope link' + in order to avoid conflict with the UEC avahi-publish mechanism + - LP: #449135 - Prevents a segfault in CC during client connection to NC + on describeInstances, when number of instances is high (> 20 or so). + The number of bytes sent to 'malloc' was being calculated incorrectly. + - LP: #444838 - fix to fully allow VMs to access meta-data service in + MANAGED-NOVLAN, when CC and CLC are on separate machines, and + VNET_CLOUDIP is set (more complete fix) + - LP: #447555 - off-by-one error was causing the public IPs in STATIC + mode to be reported incorrectly (last character was being truncated) + - LP: #447585 - flush cached images on deregister + - LP: #439410 - Add retry in the case where walrus responds to + getDecryptedImage with a 408 (connection timeout) + + -- Dustin Kirkland Tue, 13 Oct 2009 23:03:15 -0500 + +eucalyptus (1.6~bzr919-0ubuntu3) karmic; urgency=low + + [ Matt Zimmerman ] + * Kill the Eucalyptus DHCP server in eucalyptus-cc.upstart:stop + (LP: #446056) + + [ Thierry Carrez ] + * Add missing gnumail-providers.jar and inetlib.jar links to + /usr/share/eucalyptus to enable email sending (LP: #449530) + * Cherrypick upstream rev920, fixing Walrus timeouts (LP: #439410) + + -- Thierry Carrez Mon, 12 Oct 2009 17:37:39 +0200 + +eucalyptus (1.6~bzr919-0ubuntu2) karmic; urgency=low + + * eucalyptus-cc need not depend on eucalyptus-cloud, so remove the dependency + (LP: #447991) + + -- Matt Zimmerman Sat, 10 Oct 2009 14:12:40 +0100 + +eucalyptus (1.6~bzr919-0ubuntu1) karmic; urgency=low + + * Merge upstream revision 919 + * This snapshot is expected to fix the following bugs: + - LP: #444908 - fixes addressing conflicts between MANAGED and SYSTEM + mode which cause run-instances to fail + - LP: #445997 - fix issues with failure cases and the release of + addresses and network indexes + + -- Dustin Kirkland Fri, 09 Oct 2009 00:47:11 -0500 + +eucalyptus (1.6~bzr916-0ubuntu1) karmic; urgency=low + + * Merge upstream revision 916 + * This snapshot is expected to fix the following bugs: + - LP: #443314 - fix system address selection + - LP: #443325 - fix regression in heartbeat, fix NPE in system mode + - LP: #444838 - fix meta-data service in multi-cluster + - LP: #444908 - fix running instances on multi-cluster + - LP: #445206 - fix remote bootstrap on walrus+sc + * debian/eucalyptus-cc.eucalyptus-cc-publication.upstart, + debian/local/euca_find_cluster.c: when doing the avahi-publish, use + $CC_IP_ADDR rather than $(hostname) for the "name" of the service; + use this ip address in the case where euca_find_cluster gets the + link-local 169.254.169.254 address, LP: #445738 + + -- Dustin Kirkland Wed, 07 Oct 2009 20:01:56 -0500 + +eucalyptus (1.6~bzr912-0ubuntu3) UNRELEASED; urgency=low + + * debian/eucalyptus-*.upstart: Make sure IP address is looked up at every + iteration of the loop, to have a chance to pick up late DHCP (LP: #445361) + * debian/eucalyptus-*.upstart: Increase timeouts waiting for the services + to appear, as we seem to be dangerously close to the limit for port 8443 + and it still sometimes fails on first boot (LP: #445294) + * debian/eucalyptus-cloud.upstart: Remove useless "sleep 5" after checking + that port 8443 answers + * Cherrypicking Heartbeat fix from upstream rev913 (LP: #443325) + * debian/eucalyptus-*.upstart: Do NOT attempt autoregistration if the + services are not started after waiting 2 minutes for them (LP: #444504) + + -- Thierry Carrez Wed, 07 Oct 2009 13:37:40 +0200 + +eucalyptus (1.6~bzr912-0ubuntu2) karmic; urgency=low + + [ Thierry Carrez ] + * debian/eucalyptus-cc.upstart: Really fix LP: #436407, since it was only + fixed in unused init scripts. + * tools/eucalyptus-cc.in, tools/eucalyptus-java-ws.in: No longer patch + those files, now that we use upstart we no longer use them. + * debian/eucalyptus-cc.upstart: Fix typo that made post-start fail early, + LP: #444560 + + [ Dustin Kirkland ] + * eucalyptus-cc.dirs, eucalyptus-cc.install, eucalyptus-cc.links: ensure + that update-motd.d/80-eucalyptus-url is executable, LP: #444970 + + -- Dustin Kirkland Tue, 06 Oct 2009 19:31:14 -0500 + +eucalyptus (1.6~bzr912-0ubuntu1) karmic; urgency=low + + * Merge upstream revision 912 + * tools/eucalyptus-cc.in: resolve conflict, ensuring that we maintain + the 'ThreadsPerChild 1' sed + * clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/server/ServletUtils.java: + resolve conflict, drop our diff, as upstream has solved the smtp + hostname issue + * debian/patches/boot-order.patch: dropped, applies to a file we don't + use anymore so it can be removed + * debian/eucalyptus-walrus.eucalyptus-walrus-registration.upstart: source + conf file and use $WALRUS_IP_ADDR variable, like the other scripts + * This snapshot is expected to fix the following bugs: + - LP: #388934 - apply authorization checks + - LP: #430226 - fix display of image permissions + - LP: #430957 - fix running of instances in SYSTEM mode + - LP: #436276 - sc should run as eucalyptus, instead of root + - LP: #436313 - fix sc registration through web ui + - LP: #436407 - fix cc segfaults with apache-mpm-worker, rampart + - LP: #436885 - fix database corruption, c3p0 deadlock on CLC + - LP: #437014 - handle execessive CLC sockets + - LP: #439251 - fix restart-required after autoregistration issue + - LP: #440744 - handle external command + - LP: #440817 - fail gracefully with volume deletion on sc + - LP: #443125 - fix loss of admin credentials + + -- Dustin Kirkland Mon, 05 Oct 2009 15:02:11 -0500 + +eucalyptus (1.6~bzr854-0ubuntu14) UNRELEASED; urgency=low + + * Simplify eucalyptus-cc.eucalyptus-cc-publication.upstart and + eucalyptus-common.eucalyptus.upstart based on discussion with + Scott James Remnant + * debian/patches/euca_conf-error-output.diff: Don't suppress error output + from wget in checkLocalService, because it's useful in debugging + + -- Matt Zimmerman Sat, 03 Oct 2009 16:57:56 +0100 + +eucalyptus (1.6~bzr854-0ubuntu13) karmic; urgency=low + + * eucalyptus-common.eucalyptus.upstart: the -L option was in the wrong + place, breaking the console.log logging, LP: #439161 + * eucalyptus-cc.eucalyptus-cc-registration.upstart, + eucalyptus-cc.upstart, eucalyptus-cloud.upstart, + eucalyptus-ipaddr.conf, eucalyptus-common.install, + eucalyptus-sc.eucalyptus-sc-registration.upstart, + eucalyptus-sc.upstart, eucalyptus-walrus.upstart: using "localhost" + is breaking registration; instead, use the real, external ip + address; consolidate the (nasty) logic for determining this + into a single, sourcable, overridable location, LP: #437058, #438602 + * 80-eucalyptus-url: use the new $CLOUD_IP_ADDR value and logic + + -- Dustin Kirkland Wed, 30 Sep 2009 01:02:36 -0500 + +eucalyptus (1.6~bzr854-0ubuntu12) karmic; urgency=low + + * eucalyptus-cc.upstart, eucalyptus-common.eucalyptus.upstart: ensure + that the /var/run/eucalyptus/net directory gets created on upstart + job runs, and that all of /var/run/eucalyptus is owned by + eucalyptus:eucalyptus, LP: #438747 + * debian/eucalyptus-common.postrm: fix lintian error, add missing + debhelper stubb + * Fix typo in post-stop stanza of eucalyptus-cc.upstart + + -- Dustin Kirkland Tue, 29 Sep 2009 15:54:56 -0500 + +eucalyptus (1.6~bzr854-0ubuntu11) karmic; urgency=low + + * Restore /etc/init.d/eucalyptus-nc as a quickfix for node startup, + LP: #438585 + * Wait 5 more seconds after eucalyptus-cloud appears to be started before + considering it started, to allow registration to succeed, LP: #438602 + * Fix failure to import VNET_PUBLICIPS setting if a space-separated list + of IPs is entered, LP: #438586 + + -- Thierry Carrez Tue, 29 Sep 2009 11:42:26 +0200 + +eucalyptus (1.6~bzr854-0ubuntu10) karmic; urgency=low + + [ Matt Zimmerman ] + * Bump priority of eucalyptus/publicips to High, as we don't have a + reasonable default for this. The administrator needs to provide a + list of IP addresses on the local network which we can allocate. + * Updated question text for eucalyptus/publicips, thanks to Dan Nurmi + + [ Thierry Carrez ] + * Revised question text for eucalyptus/publicips to include format info. + + -- Thierry Carrez Mon, 28 Sep 2009 21:06:36 +0200 + +eucalyptus (1.6~bzr854-0ubuntu9) karmic; urgency=low + + [ Colin Watson ] + * Move eucalyptus-cloud slightly up the boot sequence, in particular so + that it starts before eucalyptus-cc. + * debian/patches/boot-order.patch: Adjust LSB init script headers to + declare that eucalyptus-cloud should start before eucalyptus-cc if + installed. + + [ Matt Zimmerman ] + * tools/eucalyptus-java-ws.in: Print an error message, instead of silently + giving up, if we don't find /etc/eucalyptus/eucalyptus-cc.conf when trying + to autoregister the SC + * debian/source_eucalyptus.py, debian/rules: Add an apport hook to collect + configuration and log data + * Replace init scripts in eucalyptus-cloud, eucalyptus-cc, eucalyptus-sc and + eucalyptus-walrus with upstart jobs + * Add upstart jobs to register CC, SC and Walrus in the appropriate order, as + they come up, so that they are up and running out of the box instead of + having to be registered manually + * eucalyptus-{cloud,sc,walrus} depend on eucalyptus-common now, as they + rely on the eucalyptus upstart job + + -- Matt Zimmerman Mon, 28 Sep 2009 16:02:13 +0100 + +eucalyptus (1.6~bzr854-0ubuntu8) karmic; urgency=low + + * Update two references to installer-cc.conf that now need to refer to + eucalyptus-cc.conf. + * Update translation templates. + + -- Colin Watson Sat, 26 Sep 2009 10:09:27 +0100 + +eucalyptus (1.6~bzr854-0ubuntu7) karmic; urgency=low + + [ Dustin Kirkland ] + * tools/eucalyptus-nc.in: exit 0, rather than 1, in the -nc + init script when unconfigured, related to bug LP: #430075 + * debian/eucalyptus-cc.in, debian/eucalyptus-java-ws.in: help registration + with local sync, no rsync parameters + * debian/eucalyptus-common.postrm: prune eucalyptus files from /etc and + /var on package purge, essential for testing, LP: #436928 + + [ Matt Zimmerman ] + * Revert revno 573, as according to Dan Nurmi it broke registration entirely + * Apply upstream revno 895, as according to Dan this fixes the same bug that + revno 573 attempted to fix, but properly (without breaking registration) + * debian/eucalyptus-cc.postinst: Guard update-rc.d remove calls so that they + don't run on initial installation. Because -cc could be configured before + or after -walrus/-cloud, this could cause -cc to clobber -walrus/-cloud + init scripts on initial installation + * tools/eucalyptus.conf: Don't try to run shell code here; it isn't (always) + interpreted as a shell script + * debian/eucalyptus-cc.postinst: Use euca_conf --import-conf to copy the + network settings into eucalyptus.conf instead + * Set the default VNET_MODE to MANAGED-NOVLAN + * The three preceding changes close LP: #435130 + * Store the CC name in a new config file /etc/eucalyptus/eucalyptus-cc.conf + and get rid of /etc/eucalyptus/installer-cc.conf + + [ Steve Langasek ] + * Move eucalyptus-nc "no VT" handling for LP: #426830 to a debconf script + instead, so that users are a bit more likely to see this. + * Drop the dpkg-statoverride check on /var/lib/eucalyptus/keys in the + eucalyptus-common postinst; this was ineffective anyway because we'd done + a chown -R immediately before that, so the only part that was respecting + statoverride were the directory perms. + + -- Dustin Kirkland Sat, 26 Sep 2009 00:30:18 -0700 + +eucalyptus (1.6~bzr854-0ubuntu6) karmic; urgency=low + + [ Thierry Carrez ] + * Apply upstream rev867 and rev876 diffs to fix SC registration through + Web UI, LP: #436313 + * tools/eucalyptus-java-ws.in: Reapply fix on boot messages that was lost + on a merge, LP: #435766 + + [ Dustin Kirkland ] + * debian/80-eucalyptus-url: add an update-motd script that + displays the administration URL in the MOTD at position 80, LP: #436199 + * debian/eucalyptus-nc.preinst: echo a warning message if a system + installing the -nc does not have VT, LP: #426830 + * debian/rules: don't fail package installation due to init script + failures, LP: #430075, #418473 + * tools/euca_conf.in: vastly improve the output of + 'euca_conf --register-nodes', which was missing some pertinent + information, LP: #424457 + * clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/server/ServletUtils.java: + if we're going to use the local host to send email, use 'localhost' as + the hostname, rather than the externally resolvable hostname which + breaks in the default ubuntu postfix configuration, LP: #412676 + * debian/control: + - have eucalyptus-common depend on openssh-server and openssh-client, + as these should really be installed on most any Eucalyptus system, + LP: #411656 + - have eucalyptus-common recommend unzip, since Eucalyptus uses zip + files for credentials, which may be needed on various systems, + LP: #436876 + - recommend libpam that provides pam_motd, LP: #436199 + - conflict with apache2-mpm-itk, LP: #338344 + * debian/eucalyptus-common.postinst: configure VNET_DHCPDAEMON and + VNET_DHCPUSER appropriately for default Ubuntu on initial install, + LP: #364938 + + [ Colin Watson ] + * debian/control: + - Make eucalyptus-nc explicitly depend on apache2-mpm-worker | + apache2-mpm-prefork, since the NC requires that Apache be configured + to only start a single child (LP: #338344). + + -- Dustin Kirkland Fri, 25 Sep 2009 18:01:29 -0700 + +eucalyptus (1.6~bzr854-0ubuntu5) karmic; urgency=low + + [ Dustin Kirkland ] + * debian/control: drop dhcp from -nc's recommends, add it to -cc's + recommends, LP: #364925 + * tools/euca_conf.in: use "-oStrictHostKeyChecking=no" if we're doing + --discover-nodes, LP: #436210 + * debian/eucalyptus-udeb.finish-install: add own ssh host key to + /etc/ssh/ssh_known_hosts, LP: #436211 + + [ Colin Watson ] + * euca_find_cluster: Use the proper bracketed format for IPv6 host/port + combinations. + * euca_find_cluster: For now, only ask for an IPv4 address for the + cluster, as IPv6 addresses often show up by accident but don't work, and + we don't have time to deal with this right now (LP: #436200). + * tools/eucalyptus-java-ws.in: Increase timeout here too, to go with + Matt's previous change. + + -- Colin Watson Fri, 25 Sep 2009 15:30:36 +0100 + +eucalyptus (1.6~bzr854-0ubuntu4) karmic; urgency=low + + * Temporarily disable rejection of loopback addresses in registerComponent. + This seems perfectly valid when the cloud and cluster controllers are + running on the same system. + + This works around LP: #434593 (which is a blocker for 9.10 beta) and + reopens LP: #431934 (which is not) + * tools/eucalyptus-cc.in:register_local_cloud: Increase the timeout + waiting for the service to start before registering it. Increasing from 10 + seconds to 60 seems to be sufficient to work around LP: #434590 + + -- Matt Zimmerman Thu, 24 Sep 2009 15:57:38 -0700 + +eucalyptus (1.6~bzr854-0ubuntu3) karmic; urgency=low + + * Continue in non-automated mode if we fail to download the preseed file + from the cluster during node installation. + * Carry over user-setup/encrypt-home value from cluster to node + installation. + * Fix euca_conf --discover-nodes to offer each discovered node separately, + not all at once. + * Fix euca_conf --discover-nodes to offer only nodes, not the cluster as + well. + * Make euca_conf rsync keys to ${EUCA_USER} rather than root, since the + former is set up for automatic authentication and the latter isn't (and + probably shouldn't be). + + -- Colin Watson Thu, 24 Sep 2009 22:52:33 +0100 + +eucalyptus (1.6~bzr854-0ubuntu2) karmic; urgency=low + + * Fix query timeout issues in timezones > UTC (LP: #431847) + * Add --local-sync to allow euca_conf --register-* to sync keys locally + if an external (but local) IP address is used to register (LP: #434651) + + -- Thierry Carrez Wed, 23 Sep 2009 18:27:06 +0200 + +eucalyptus (1.6~bzr854-0ubuntu1) karmic; urgency=low + + * New snapshot. + + -- Soren Hansen Wed, 23 Sep 2009 10:50:10 +0200 + +eucalyptus (1.6~bzr840-0ubuntu1) karmic; urgency=low + + [ Colin Watson ] + * Configure VNET_PUBINTERFACE and VNET_PRIVINTERFACE, asking for the + private interface if multiple interfaces are available (LP: #425933). If + the private interface is not the same as the public interface configured + in netcfg, then give it basic DHCP configuration in + /etc/network/interfaces. + + [ Soren Hansen ] + * New upstream snapshot. + + -- Soren Hansen Tue, 22 Sep 2009 12:44:42 +0200 + +eucalyptus (1.6~bzr808-0ubuntu1) karmic; urgency=low + + [ Dustin Kirkland ] + * debian/eucalyptus-udeb.finish-install: eth0 should be set to + 'manual', when configured with br0 on dhcp, LP: #430820 + * tools/euca_conf.in: ensure that /var/run/eucalyptus and + /var/run/eucalyptus/net are created at boot and have correct + ownerships, LP: #431114, #365349 + + [ Thierry Carrez ] + * cluster/Makefile, node/Makefile: Do not patch generated stubs if you + didn't regenerate them, to avoid spurious build interruptions. + * tools/eucalyptus-*.in: Do not guard initscripts basic output + messages with VERBOSE != no (LP: #431274) + * debian/control: Have eucalyptus-cc suggest vtun for full multi-cluster + networking capabilities (LP: #425928) + + [ Colin Watson ] + * Align ports used for cloud startup detection in init scripts with the + corresponding code in euca_conf (LP: #430758). + + [ Soren Hansen ] + * New snapshot. + * Add a build-dependency on libc3p0-java. + + -- Soren Hansen Mon, 21 Sep 2009 12:14:12 +0200 + +eucalyptus (1.6~bzr746-0ubuntu3) karmic; urgency=low + + [ Dustin Kirkland ] + * tools/eucalyptus-nc.in: Create the suggested 32 loop devices using + mknod in the init script, perm'd 660, owned by root:disk, LP: #430846 + * debian/eucalyptus-udeb.finish-install: br0 needs to start at boot, + LP: #430820 + + [ Colin Watson ] + * Work around netcfg/choose_interface not always being set (LP: #430820). + * Actually check timeout in register_local_cloud. + + [ Mathias Gug ] + * Recommend python-image-store-proxy for eucalyptus-cloud. The Image Store + feature won't work without it, LP: #425926 + + -- Soren Hansen Wed, 16 Sep 2009 21:14:18 +0200 + +eucalyptus (1.6~bzr746-0ubuntu2) karmic; urgency=low + + [ Colin Watson ] + * On initial cluster installation, allow authentication to the front-end + using the cluster's SSH key (LP: #429087). + * Update the cloud .jar name we look for when registering a cluster with a + local cloud. + * Check for IPv6 listeners as well as IPv4 when registering a cluster with + a local cloud. + * Actually kill cloud/Walrus/SC processes before entering a timeout loop + to wait for them to die. + * Automatically register Walrus and storage controllers with any local + cloud (LP: #425922). + * Discard standard output from euca_conf when registering components in + init scripts. + + [ Soren Hansen ] + * Add configuration for mpm_event. + + -- Colin Watson Tue, 15 Sep 2009 22:44:25 +0100 + +eucalyptus (1.6~bzr746-0ubuntu1) karmic; urgency=low + + * New upstream, bugfix snapshot. + * Add more full-featured default network configuration (LP: #425914). + + -- Soren Hansen Tue, 15 Sep 2009 13:50:40 +0200 + +eucalyptus (1.6~bzr672-0ubuntu4) karmic; urgency=low + + * Configure a bridge interface when installing a node controller + (LP: #424541). + * Don't remove /etc/eucalyptus/installer-cc.conf after registering the + cluster controller with a local cloud; we may need it later. + + -- Colin Watson Mon, 14 Sep 2009 23:57:31 +0100 + +eucalyptus (1.6~bzr672-0ubuntu3) karmic; urgency=low + + [ Colin Watson ] + * Add euca_conf --discover-nodes option. + * Register cluster with local cloud in start as well as cleanstart. + * SECURITY UPDATE: Fix temporary file vulnerability in euca_conf by using + 'sed -i' (LP: #424459). + + [ Soren Hansen ] + * Only ship antlr.jar in eucalyptus-java-common. (LP: #429086) + + -- Soren Hansen Mon, 14 Sep 2009 12:59:40 +0200 + +eucalyptus (1.6~bzr672-0ubuntu2) karmic; urgency=low + + * Do a better job at unsetting $DISPLAY in the build. + * Remove gatherlog/generated/stubs which somehow snuck into the + diff.gz. + + -- Soren Hansen Fri, 11 Sep 2009 13:26:37 +0200 + +eucalyptus (1.6~bzr672-0ubuntu1) karmic; urgency=low + + * Split eucalyptus-cloud into eucalyptus-java-common, eucalyptus- + cloud, eucalyptus-sc, and eucalyptus-walrus. (LP: #425908) + * Unset DISPLAY during the build process. The build would fail if + DISPLAY was set, but $DISPLAY couldn't be reached. + * Regenerate WSDL stubs. + * New, bugfix-only upstream snapshot. (LP: #426197) + + -- Soren Hansen Fri, 11 Sep 2009 01:42:04 +0200 + +eucalyptus (1.6~bzr645-0ubuntu2) karmic; urgency=low + + [ Dustin Kirkland ] + * debian/control: eucalyptus-nc should depend on avahi-utils for the + avahi-publish utility used in the init script, LP: #424442 + * tools/eucalyptus.conf: fix dhcpd configuration values, change default + bridge name from xenbr0 to br0 + + [ Colin Watson ] + * eucalyptus-cloud Replaces: eucalyptus-javadeps. + + [ Soren Hansen ] + * Update WSDL stubs. + + -- Soren Hansen Mon, 07 Sep 2009 15:24:04 +0200 + +eucalyptus (1.6~bzr645-0ubuntu1) karmic; urgency=low + + [ Dustin Kirkland ] + * debian/control: + - Add openssh-server and eucalyptus-common dependencies for + eucalyptus-cloud. + * debian/eucalyptus-cc.dirs, debian/eucalyptus-cloud.dirs, + debian/eucalyptus-nc.dirs: + - Consolidate directory creation. + * debian/eucalyptus-cc.postinst, debian/eucalyptus-cloud.postinst, + debian/eucalyptus-common.postinst: + - Adjust ownership/permissions for /var/lib/eucalyptus dirs. + * tools/euca_conf.in: + - Uncomment --no-rsync usage statement. + * debian/eucalyptus-cloud.install, debian/rules: install and start + the eucalyptus-sc init script in the eucalyptus-cloud package + * tools/eucalyptus-cc.in, tools/eucalyptus-java-ws.in, + tools/eucalyptus-nc.in: init script cleanups; use DESC appropriately, + exit 0 if already started when trying to start + * debian/eucalyptus-cc.postinst: prevent init script zombie by calling + db_stop to clean file descriptors properly and reap postinst script + + [ Soren Hansen ] + * Only inject SSH keys if not running in MANAGED or MANAGED-NOVLAN + mode. + * New upstream (bugfix only) snapshot. + * Add commons-io build-dependency. + + -- Soren Hansen Thu, 03 Sep 2009 19:15:58 -0500 + +eucalyptus (1.6~bzr588-0ubuntu7) karmic; urgency=low + + * When running in d-i, cdebconf doesn't set the seen flag on questions + asked interactively (otherwise there are problems with going back and + revisiting earlier parts of the installer). As such we can't use it to + decide whether questions have been preseeded. Just preseed questions if + they existed at all during cluster installation (LP: #423424). + + -- Colin Watson Thu, 03 Sep 2009 18:09:07 +0100 + +eucalyptus (1.6~bzr588-0ubuntu6) karmic; urgency=low + + [ Dustin Kirkland ] + * Add Recommends: powerwake for eucalyptus-cc, and Recommends: + powernap for eucalyptus-nc. + * LSBify init script messages. + + -- Soren Hansen Wed, 02 Sep 2009 16:45:39 -0500 + +eucalyptus (1.6~bzr588-0ubuntu5) karmic; urgency=low + + [ Soren Hansen ] + * Also include a /services symlink in our Axis2 repository. + * Add backport-util-concurrent runtime dependency. + * Set AXIS2C_HOME environment variable to point to our separate + repository, as the environment variable takes precedence over what + we put in the Apache configuration. + * Provide a default path for instances for the NC. + * For reasons unknown, Eucalyptus requires antlr.jar to be a regular + file rather than a symlink. We need to get to the bottom of this, + but for now, we will put a copy in the eucalyptus package at build + time. + + [ Mathias Gug ] + * Fix eucalyptus init scripts ordering so that it starts after + avahi-daemon. + * Load apache2 alias module when generating httpd CC configuration. + + -- Soren Hansen Wed, 02 Sep 2009 16:28:51 -0500 + +eucalyptus (1.6~bzr588-0ubuntu4) karmic; urgency=low + + * eucalyptus-commons-ext changed its jarname again. Adjust accordingly + to fix ftbfs. + + -- Soren Hansen Wed, 02 Sep 2009 00:45:45 -0500 + +eucalyptus (1.6~bzr588-0ubuntu3) karmic; urgency=low + + * Install eucalyptus-nc's init script. + * Add extra 'dh_installinit --onlyscripts' calls to make sure update- + rc.d gets called correctly. + + -- Soren Hansen Tue, 01 Sep 2009 23:39:01 -0500 + +eucalyptus (1.6~bzr588-0ubuntu2) karmic; urgency=low + + [ Soren Hansen ] + * Enable Appliance Store GUI and the Ubuntu theme. (Really fixes LP: + #420035) + * Fix Axis2 repository links. + * Always set the statoverride for euca_rootwrap on fresh installs. + This takes care of the case where there is already a eucalyptus user + on the system. + * Remove eucalyptus-{nc,cloud,cc}.prerm. They are not needed anymore. + * Make the java wrapper accept symlinks into its classpath. + * Add symlinks for all the jars needed at runtime. + + [ Dustin Kirkland ] + * Merge Colin's changes to the init scripts. Salvaged from the + removed, old init scripts. + + [ Colin Watson ] + * Run eucalyptus-udeb after netcfg (LP: #422876). + * Fix seen flag detection in finish-install script. + + -- Soren Hansen Tue, 01 Sep 2009 18:14:04 -0500 + +eucalyptus (1.6~bzr588-0ubuntu1) karmic; urgency=low + + [ Colin Watson ] + * debian/eucalyptus-udeb.postinst: + - Fix order of db_set vs. db_metaget. + - Fix reversed sense of cluster detection. + - Ensure that tasksel/first preseeding will be propagated to /target. + + [ Soren Hansen ] + * On upgrades, migrate statoverride for /usr/share/eucalyptus/euca_rootwrap + to /usr/lib/eucalyptus/euca_rootwrap, in case the admin overrode it. + * Make sure the configuration bits in eucalyptus-common's postinst + only get called during install and upgrade. + * Add axis2 "repository" for Eucalyptus. This is the only way to use a + separate Axis2/C configuration file for Eucalyptus. + * New upstream snapshot. (FFe: LP: #420035) + + [ Dustin Kirkland ] + * Remove init scripts from source package that are no longer used. + * Make sure $EUID is set in init scripts. + + -- Soren Hansen Mon, 31 Aug 2009 19:27:28 -0500 + +eucalyptus (1.6~bzr515-0ubuntu4) karmic; urgency=low + + * 04-axis2c-1.6.0-rampart-1.3.0.patch: + - Build against new Axis2/C+Rampart stack. + + -- Soren Hansen Sat, 29 Aug 2009 00:03:02 +0000 + +eucalyptus (1.6~bzr515-0ubuntu3) karmic; urgency=low + + * debian/eucalyptus-udeb.postinst: + - Ignore errors from db_input, which usually just mean that the question + has been preseeded. + - Don't mark eucalyptus/install-mode as seen before asking it. + - Fix cluster detection. + + -- Colin Watson Fri, 28 Aug 2009 17:52:20 +0100 + +eucalyptus (1.6~bzr515-0ubuntu2) karmic; urgency=low + + * Remove clc/modules/msgs/src/main/resources/msgs-binding.xml on clean + rather than clc/modules/msgs/resources/msgs-binding.xml (old location). + * Generate node preseed file on cluster installation. + * Fetch node preseed file from /node-preseed on the cluster rather than + /node.preseed. + * Alias /node-preseed on the cluster's web server to + /etc/eucalyptus/node-preseed.conf. + * Use new-style euca_conf options in eucalyptus-cc init script. + + -- Colin Watson Thu, 27 Aug 2009 13:42:08 +0100 + +eucalyptus (1.6~bzr515-0ubuntu1) karmic; urgency=low + + * New upstream snapshot. + + -- Soren Hansen Wed, 26 Aug 2009 23:17:49 +0000 + +eucalyptus (1.6~bzr452-0ubuntu5) karmic; urgency=low + + * Add a Vcs-Bzr field. + * Advertise running cluster and node controllers using Avahi. + * Add installer integration: + - eucalyptus-udeb asks whether you want to install a cluster or a node, + based on whether any cluster controllers are currently advertised on + the network. + - eucalyptus-cc asks for a cluster name on first installation, and drops + that into /etc/eucalyptus/installer-cc.conf. On startup, if the + cluster doesn't have its X.509 key yet, there's a cloud controller on + the local machine, and it knows the cluster name, it will + automatically register itself with the cloud controller. + + -- Colin Watson Wed, 26 Aug 2009 12:25:14 +0100 + +eucalyptus (1.6~bzr452-0ubuntu4) karmic; urgency=low + + * Update and apply debian/patches/axis2c_home_init.diff. + + -- Colin Watson Tue, 25 Aug 2009 09:37:35 +0100 + +eucalyptus (1.6~bzr452-0ubuntu3) karmic; urgency=low + + * Only install the /var/lib/eucalyptus/keys/ directory in + eucalyptus-cloud, not cc-client-policy.xml or nc-client-policy.xml; + thanks to Daniel Nurmi for confirmation (LP: #418350). + + -- Colin Watson Tue, 25 Aug 2009 00:17:20 +0100 + +eucalyptus (1.6~bzr452-0ubuntu2) karmic; urgency=low + + * Newer version of libeucalyptus-commons-ext-java renamed the Eucalyptus jar. + Change accordingly in debian/build-jars and add a versioned dependency on + libeucalyptus-commons-ext-java. + + -- Soren Hansen Mon, 24 Aug 2009 05:57:56 +0000 + +eucalyptus (1.6~bzr452-0ubuntu1) karmic; urgency=low + + * New upstream release + + -- Soren Hansen Sun, 23 Aug 2009 23:18:20 +0000 + +eucalyptus (1.5~bzr266-0ubuntu2) jaunty; urgency=low + + * Ship missing populate_arp.pl. (LP: #358541) + + -- Soren Hansen Thu, 09 Apr 2009 17:54:34 +0200 + +eucalyptus (1.5~bzr266-0ubuntu1) jaunty; urgency=low + + * New upstream snapshot. (LP: #356519) + + -- Soren Hansen Tue, 07 Apr 2009 16:11:48 +0200 + +eucalyptus (1.5~bzr265-0ubuntu1) jaunty; urgency=low + + * New upstream snapshot. (LP: #354795, #354846, #352896, #354895, + #354852, #354098, #351650, #353301) + + -- Soren Hansen Mon, 06 Apr 2009 11:27:50 +0200 + +eucalyptus (1.5~bzr250-0ubuntu1) UNRELEASED; urgency=low + + * New upstream snapshot. (LP: #347629, #345165) + + -- Soren Hansen Wed, 01 Apr 2009 17:36:23 -0400 + +eucalyptus (1.5~bzr241-0ubuntu1) jaunty; urgency=low + + * New upstream snapshot. + + Make sure that no addresses outside the specified range are used. + (LP: #344330) + + Fix EBS volume detachment. (LP: #344568) + + Fix EBS volume attachment. (LP: #344613) + + Fix deletiong volumes marked as deleted. (LP: #344620) + + Add missing EBS flag in sample conffile. (LP: #345004) + + Allow more concurrent downloads from Walrus. (LP: #345034) + * Rely on libvirt's defaults for the emulator. (LP: #336852) + + -- Soren Hansen Thu, 19 Mar 2009 00:33:07 +0100 + +eucalyptus (1.5~bzr232-0ubuntu1) jaunty; urgency=low + + * New upstream snapshot. (LP: #342024, #341965) + + Correctly set up swap and ephemeral storage for KVM VM's. (LP: + #332973) + + Use correct names for devices. (LP: #334665) + + Use compression for image transfers. (LP: #332971) + + Don't fail if first attempt at image download fails. (LP: #337027) + + Don't time out if image transfer takes more than one hour, but is + still on-going. (LP: #337870) + + Don't allow to delete in-use volumes. (LP: #342121) + + Correctly handle failure to attach volumes (LP: #342077) + + Handle unknown EBS block device names with KVM backend. (LP: #342076) + + Make euca_conf -delnode remove the node properly. (LP: #342055) + * Drop addnode-ssh-magic.patch. Adopted upstream. + + -- Soren Hansen Tue, 17 Mar 2009 23:14:50 +0100 + +eucalyptus (1.5~bzr212-0ubuntu4) UNRELEASED; urgency=low + + * Also create /var/run/eucalyptus/net for the node controller. + (LP: #338764) + * Added bridge-utils and dhcp3-server as recommended packages for the + node controller. (LP: #338846) + + -- Soren Hansen Mon, 16 Mar 2009 09:43:08 +0100 + +eucalyptus (1.5~bzr212-0ubuntu3) jaunty; urgency=low + + * Create /var/run/eucalyptus in all the init scripts. + + -- Soren Hansen Tue, 10 Mar 2009 23:16:19 +0100 + +eucalyptus (1.5~bzr212-0ubuntu2) jaunty; urgency=low + + * Fix version check in eucalyptus-cc's postinst. (LP: #337477 (again)) + * Patch euca_conf's addnode functionality to allow the use of sudo on + the node controller, and also fix up the path to authorized_keys. + * Have eucalyptus-nc's postinst script create the authorized_keys file + to make sure it gets the right ownership and mode. + * Give the eucalyptus user a shell, and remove the various hacks applied + to work around the lack of it. + + -- Soren Hansen Tue, 10 Mar 2009 10:08:49 +0200 + +eucalyptus (1.5~bzr212-0ubuntu1) jaunty; urgency=low + + * New upstream release (LP: #337042, #337514, #337539, #337541, #337884, + #338486) + * Weed out the unused/obsolete patches. + + -- Soren Hansen Mon, 09 Mar 2009 18:38:59 +0100 + +eucalyptus (1.5~bzr203-0ubuntu3) UNRELEASED; urgency=low + + * Create SSH keypair for eucalyptus user on cluster controller. (LP: 337477) + + -- Soren Hansen Mon, 09 Mar 2009 16:58:40 +0100 + +eucalyptus (1.5~bzr203-0ubuntu2) jaunty; urgency=low + + * Added missing dependencies: + + eucalyptus-cloud: vblade, lvm2, dmsetup + + eucalyptus-nc: adduser + * Split out the init script so that each component has its own (LP: #334804) + * Make eucalyptus user a member of libvirtd on the node controller. (LP: #337482) + + -- Soren Hansen Wed, 04 Mar 2009 12:07:53 -0800 + +eucalyptus (1.5~bzr203-0ubuntu1) jaunty; urgency=low + + * New upstream release. (LP: #334732, #336841) + + -- Soren Hansen Tue, 03 Mar 2009 10:01:33 -0800 + +eucalyptus (1.5~bzr198-0ubuntu5) UNRELEASED; urgency=low + + * Fixed missing dependency on eucalytus-gl for eucalyptus-{nc,cc}. + * Disable JCE check. (LP: #334501) + + -- Soren Hansen Tue, 03 Mar 2009 09:18:03 -0800 + +eucalyptus (1.5~bzr198-0ubuntu4) jaunty; urgency=low + + * Add libvirt-bin and kvm as Recommends for the node controller, + and make kvm the default hypervisor. + + -- Soren Hansen Wed, 25 Feb 2009 14:07:45 +0100 + +eucalyptus (1.5~bzr198-0ubuntu3) jaunty; urgency=low + + * Fix spelling mistake in eucalyptus-common.postinst. + * Make sure we actually run the cloud controller by using a valid shell. + * Start the cluster controller even if no NODES are defined. + + -- Soren Hansen Tue, 24 Feb 2009 16:49:06 +0100 + +eucalyptus (1.5~bzr198-0ubuntu2) jaunty; urgency=low + + * Make sure rootwrap binary gets its ownership and mode applied + immediately. + * Correctly set EUCA_USER from -common's postinst. (LP: #333341) + * Don't fail in the init script if NODES is empty. (LP: #333333) + + -- Soren Hansen Mon, 23 Feb 2009 20:42:24 +0100 + +eucalyptus (1.5~bzr198-0ubuntu1) jaunty; urgency=low + + * New upstream release + + -- Soren Hansen Thu, 19 Feb 2009 01:00:04 +0200 + +eucalyptus (1.5~bzr184-0ubuntu3) UNRELEASED; urgency=low + + * Create eucalyptus user in eucalyptus-common.postinst. + * Fix ownership of /usr/share/eucalyptus/euca_rootwrap + * init_lsb_headers.diff: + - Add LSB headers to init script + * axis2c_home_init.diff: + - Set AXIS2_HOME in init script. + - Point Eucalyptus apache instance at the axis2 module. + * Add apache2-mpm and libapache2-mod-axis2c dependencies to node and + cluster controller. + + -- Soren Hansen Thu, 19 Feb 2009 00:50:30 +0200 + +eucalyptus (1.5~bzr184-0ubuntu2) jaunty; urgency=low + + * initscript-eucalyptus-path.diff: + - Default to "/" for the EUCALYPTUS variable in init script. + * init-reload.diff: + - Add a "reload" option to the init script (does the same as restart). + * var_lib_eucalyptus.diff: + - Change all references to /var/eucalyptus to /var/lib/eucalyptus. + * Make all components depend on eucalyptus-common. + * Make eucalyptus-common postinst perform some initial configuration. + * Have eucalyptus-cloud depend on eucalyptus-javadeps instead of + shipping them itself. + * Make eucalyptus-{cc,nc,cloud}.postinst set up the individual services + automatically. + + -- Soren Hansen Wed, 18 Feb 2009 18:25:36 +0200 + +eucalyptus (1.5~bzr184-0ubuntu1) jaunty; urgency=low + + * New upstream release + + -- Soren Hansen Wed, 18 Feb 2009 09:46:17 +0200 + +eucalyptus (1.5~bzr139-0ubuntu1) jaunty; urgency=low + + * Initial release. + + -- Soren Hansen Wed, 11 Feb 2009 02:45:39 +0200 + --- eucalyptus-1.6.2.orig/debian/eucalyptus-common.postrm +++ eucalyptus-1.6.2/debian/eucalyptus-common.postrm @@ -0,0 +1,22 @@ +#!/bin/sh -e + +case "$1" in +purge) + dpkg-statoverride --remove /usr/lib/eucalyptus/euca_rootwrap || true + rm -rf /var/lib/eucalyptus/.cache \ + /var/lib/eucalyptus/.ssh \ + /var/lib/eucalyptus/db \ + /var/lib/eucalyptus/keys \ + /var/lib/eucalyptus/volumes \ + /var/log/eucalyptus/axis2c.log \ + /var/log/eucalyptus/cloud-*.log* \ + /etc/eucalyptus/eucalyptus.local.conf* + ;; +remove) + if [ -e /etc/init/eucalyptus.conf ]; then + stop eucalyptus || : + fi + ;; +esac + +#DEBHELPER# --- eucalyptus-1.6.2.orig/debian/eucalyptus-walrus.install +++ eucalyptus-1.6.2/debian/eucalyptus-walrus.install @@ -0,0 +1 @@ +/usr/share/eucalyptus/eucalyptus-walrus-1.6.2.jar --- eucalyptus-1.6.2.orig/debian/eucalyptus-nc.postinst +++ eucalyptus-1.6.2/debian/eucalyptus-nc.postinst @@ -0,0 +1,43 @@ +#!/bin/sh -e + +. /usr/share/debconf/confmodule + +if [ "$1" = "configure" ] +then + if [ -z "$2" ]; then + # Store target cluster name, if any + if db_get eucalyptus/cluster-name && [ -n "$RET" ]; then + echo "CC_NAME=\"$RET\"" >> /etc/eucalyptus/eucalyptus-nc.conf + fi + fi + if dpkg --compare-versions "$2" lt 1.5~bzr203-0ubuntu2 + then + adduser eucalyptus libvirtd + fi + + EUCA_HOME=`getent passwd eucalyptus | cut -f6 -d:` + if ! [ -d "$EUCA_HOME/.ssh" ] + then + mkdir -p "$EUCA_HOME/.ssh" + fi + if ! [ -f "$EUCA_HOME/.ssh/authorized_keys" ] + then + touch "$EUCA_HOME/.ssh/authorized_keys" + fi + + if dpkg --compare-versions "$2" lt 1.5~bzr212-0ubuntu2 + then + if [ -d "$EUCA_HOME/.ssh" ] + then + chown eucalyptus "$EUCA_HOME/.ssh" + chmod 755 "$EUCA_HOME/.ssh" + fi + if [ -f "$EUCA_HOME/.ssh/authorized_keys" ] + then + chown eucalyptus "$EUCA_HOME/.ssh/authorized_keys" + chmod 600 "$EUCA_HOME/.ssh/authorized_keys" + fi + fi +fi + +#DEBHELPER# --- eucalyptus-1.6.2.orig/debian/uec-component-listener.postinst +++ eucalyptus-1.6.2/debian/uec-component-listener.postinst @@ -0,0 +1,20 @@ +#!/bin/sh -e + +. /usr/share/debconf/confmodule + +if [ "$1" = "configure" ]; then + if [ -z "$2" ]; then + db_get eucalyptus/autoregistration + if [ "$RET" = "false" ]; then + touch /var/lib/eucalyptus/registration.lock + fi + fi + + if [ -e /etc/init/uec-component-listener.conf ]; then + start uec-component-listener || : + fi +fi + +db_stop + +#DEBHELPER# --- eucalyptus-1.6.2.orig/debian/eucalyptus-udeb.templates +++ eucalyptus-1.6.2/debian/eucalyptus-udeb.templates @@ -0,0 +1,122 @@ +Template: debian-installer/eucalyptus-udeb/title +Type: text +# Main menu entry +_Description: Select cloud installation mode + +Template: eucalyptus/install-mode +Type: multiselect +Choices-C: ${CHOICES_C} +Choices: ${CHOICES} +#flag:translate!:2 +_Description: Cloud installation mode: + ${DEFAULT_TEXT} + +Template: eucalyptus/text/cloud +Type: text +# Entry in "Cloud installation mode:" menu +_Description: Cloud controller + +Template: eucalyptus/text/walrus +Type: text +# Entry in "Cloud installation mode:" menu +_Description: Walrus storage service + +Template: eucalyptus/text/cluster +Type: text +# Entry in "Cloud installation mode:" menu +_Description: Cluster controller + +Template: eucalyptus/text/storage +Type: text +# Entry in "Cloud installation mode:" menu +_Description: Storage controller + +Template: eucalyptus/text/node +Type: text +# Entry in "Cloud installation mode:" menu +_Description: Node controller + +Template: eucalyptus/install-mode-default-cloud +Type: text +_Description: No Eucalyptus cloud controller found; install a cloud controller. + The default is to install all Eucalyptus components aside from the node + controller; this is reasonable for small clouds. Larger installations + may wish to install different components on different machines for + reasons of network architecture or performance. + +Template: eucalyptus/install-mode-default-walrus +Type: text +_Description: A Eucalyptus cloud controller was found, but no Walrus storage service. + This installation will default to installing Walrus. + If you wish, you may also install other Eucalyptus components on this + machine. + +Template: eucalyptus/install-mode-default-cluster +Type: text +_Description: No Eucalyptus cluster controller was found. + This installation will default to installing a new cluster with a local + storage controller. + If this is a mistake and you already have cluster and storage controllers + in place, deselect these components and select "Node controller" instead. + +Template: eucalyptus/install-mode-default-storage +Type: text +_Description: A Eucalyptus cluster controller was found, but no storage controller. + Each cluster controller must be paired with a storage controller. + This installation will default to installing a new storage controller. + +Template: eucalyptus/install-mode-default-node +Type: text +_Description: There is already a Eucalyptus cluster controller. + This installation will default to installing a new computing node. + If you want to create another cluster, deselect "Node" and select + "Cluster controller" and optionally "Storage controller" instead. + +Template: eucalyptus/sc-without-cc +Type: error +_Description: Cannot install storage controller without cluster controller + Each storage controller must be paired with a cluster controller, but no + cluster controller was found on your network and you did not choose to + install one on this machine. You should probably install both a cluster + controller and a storage controller. + +Template: eucalyptus/cloud-address +Type: string +_Description: Cloud controller address: + No Eucalyptus cloud controller was found on your network. If this is a + mistake and there is in fact already a cloud controller, enter its hostname + or IP address here. Otherwise, leave this blank. + +Template: eucalyptus/cloud-address-select +Type: select +Choices-C: ${CHOICES_C} +Choices: ${CHOICES} +_Description: Cloud controller: + More than one cloud controller is available on your network. Select which + cloud you want to join. + +Template: eucalyptus/cluster-address +Type: select +Choices-C: ${CHOICES_C} +Choices: ${CHOICES} +_Description: Cluster controller: + More than one cluster controller is available on your network. Select which + cluster you want this node to join. + +Template: eucalyptus/public-interface +Type: string +Description: for internal use; can be preseeded + Network interface for communication with the public network. + +Template: eucalyptus/private-interface +Type: select +Choices: ${INTERFACES} +_Description: Network interface for communication with nodes: + More than one network interface is available on this system. The primary + interface configured during installation (${DEFAULT_INTERFACE}) will be + used for communication with the public network. If your computing nodes are + on a private network, then you will normally use a different network + interface for communication with computing nodes. + . + Select the network interface that is physically attached to the same + network as your computing nodes. --- eucalyptus-1.6.2.orig/debian/eucalyptus-nc.upstart +++ eucalyptus-1.6.2/debian/eucalyptus-nc.upstart @@ -0,0 +1,46 @@ +# eucalyptus-nc + +description "Eucalyptus node controller" +author "Dustin Kirkland " + +# We would like to start on (started libvirt-bin and started eucalyptus), +# however, we CANNOT do this until Bug #447654 is fixed in Upstart. +start on started libvirt-bin +stop on stopping libvirt-bin + +respawn + +# These must be set in the apache2 environment +env HTTPD_CONF=/var/run/eucalyptus/httpd-nc.conf +env EUCALYPTUS=/ +env AXIS2C_HOME=/etc/eucalyptus/axis2 +env LD_LIBRARY_PATH="$AXIS2C_HOME/lib:$AXIS2C_HOME/modules/rampart:$EUCALYPTUS/usr/lib/eucalyptus:$LD_LIBRARY_PATH" + +pre-start script + [ -x /usr/sbin/euca_test_nc ] || { stop; exit 0; } + . /etc/eucalyptus/eucalyptus.conf + . /etc/eucalyptus/eucalyptus.local.conf + rm -f /dev/shm/sem.eucalyptus-nc* /dev/shm/sem.eucalyptus-st* + iptables -L -n >/dev/null 2>&1 + euca_test_nc $HYPERVISOR > /var/log/eucalyptus/euca_test_nc.log 2>&1 || exit 1 + modprobe aoe + mkdir -p /var/run/eucalyptus + sed -e "s|EUCALYPTUS|$EUCALYPTUS|" \ + -e "s|AXIS2C_HOME|$AXIS2C_HOME|" \ + -e "s|\(ServerRoot\).*|\1 /|" \ + -e "s|EUCA_USER|$EUCA_USER|" \ + -e "s|\(Listen\).*|\1 $NC_PORT|" \ + -e "s|\(PidFile\).*|\1 /var/run/eucalyptus/eucalyptus-nc.pid|" \ + -e "s|\(Allow from\).*|\1 all|" \ + -e "s|\(ErrorLog\).*|\1 /var/log/eucalyptus/httpd-nc_error_log|" /etc/eucalyptus/httpd.conf > $HTTPD_CONF + + if [ -e /usr/lib/apache2/modules/mod_authz_host.so ]; then + echo "LoadModule authz_host_module /usr/lib/apache2/modules/mod_authz_host.so" >> $HTTPD_CONF + fi +end script + +exec apache2 -f $HTTPD_CONF -D FOREGROUND + +post-stop script + rm -f /dev/shm/sem.eucalyptus-nc* /dev/shm/sem.eucalyptus-st* +end script --- eucalyptus-1.6.2.orig/debian/eucalyptus-sc.prerm +++ eucalyptus-1.6.2/debian/eucalyptus-sc.prerm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +if [ "$1" = "remove" ]; then + stop eucalyptus-sc-publication || true +fi + +#DEBHELPER# --- eucalyptus-1.6.2.orig/debian/README.source +++ eucalyptus-1.6.2/debian/README.source @@ -0,0 +1,2 @@ +This package uses quilt to manage patches; see: + /usr/share/doc/quilt/README.source --- eucalyptus-1.6.2.orig/debian/eucalyptus-cc.links +++ eucalyptus-1.6.2/debian/eucalyptus-cc.links @@ -0,0 +1 @@ +usr/lib/eucalyptus/eucalyptus-url etc/update-motd.d/80-eucalyptus-url --- eucalyptus-1.6.2.orig/debian/eucalyptus-sc.upstart +++ eucalyptus-1.6.2/debian/eucalyptus-sc.upstart @@ -0,0 +1,25 @@ +# eucalyptus-sc + +description "Eucalyptus storage controller" +author "Matt Zimmerman " + +start on started eucalyptus +stop on stopping eucalyptus + +post-start script + timeout=60 + while [ $timeout -gt 0 ]; do + . /etc/eucalyptus/eucalyptus-ipaddr.conf + if wget -q -T10 -t1 -O- \ + http://$SC_IP_ADDR:8773/services/Heartbeat | \ + grep "^name=storage.*enabled=true"; then + + # It's alive! + exit 0 + fi + sleep 2 + timeout=$(($timeout-1)) + done + stop + exit 1 +end script --- eucalyptus-1.6.2.orig/debian/eucalyptus-common.dirs +++ eucalyptus-1.6.2/debian/eucalyptus-common.dirs @@ -0,0 +1 @@ +/var/lib/eucalyptus/keys --- eucalyptus-1.6.2.orig/debian/eucalyptus-cloud.install +++ eucalyptus-1.6.2/debian/eucalyptus-cloud.install @@ -0,0 +1,6 @@ +/usr/share/eucalyptus/eucalyptus-cloud-1.6.2.jar +/usr/share/eucalyptus/eucalyptus-www-1.6.2.jar +debian/preseed.xml etc/eucalyptus/cloud.d/www +debian/registration/cluster /usr/share/eucalyptus/registration +debian/registration/storage /usr/share/eucalyptus/registration +debian/registration/walrus /usr/share/eucalyptus/registration --- eucalyptus-1.6.2.orig/debian/eucalyptus-udeb.postinst +++ eucalyptus-1.6.2/debian/eucalyptus-udeb.postinst @@ -0,0 +1,294 @@ +#! /bin/sh +set -e + +. /usr/share/debconf/confmodule +. /lib/preseed/preseed.sh + +NL=' +' + +install_mode_choices () { + local choices_c= + local choices= + for choice_c; do + choices_c="${choices_c:+$choices_c, }$choice_c" + db_metaget "eucalyptus/text/$choice_c" description + choices="${choices:+$choices, }$RET" + done + db_subst eucalyptus/install-mode CHOICES_C "$choices_c" + db_subst eucalyptus/install-mode CHOICES "$choices" +} + +install_mode_default () { + db_fget eucalyptus/install-mode seen + if [ "$RET" = false ]; then + db_set eucalyptus/install-mode "$1" + fi +} + +set_question () { + echo "$1 $2 $3 $4" >>"$logfile" + if ! db_fget "$2" seen; then + db_register debian-installer/dummy "$2" + db_subst "$2" ID "$2" + db_fget "$2" seen + fi + if [ "$RET" = false ]; then + db_set "$2" "$4" + db_fset "$2" seen true + fi +} + +get_default_interface () { + db_get netcfg/choose_interface || return 1 + default_interface="${RET%%:*}" + # Work around netcfg/choose_interface not always being set: + # https://bugs.launchpad.net/ubuntu/+source/netcfg/+bug/430820 + if [ -z "$default_interface" ]; then + default_interface=eth0 + fi +} + +choose_interfaces () { + # Choose the public and private interfaces. + + get_default_interface || return + # netcfg's default interface is by definition (we hope) public. + db_get eucalyptus/public-interface + if [ -z "$RET" ]; then + db_set eucalyptus/public-interface "$default_interface" + fi + + # Cloned-and-hacked from netcfg/netcfg-common.c:get_all_ifs(). + # /sys/class/net is easier to use from shell, though. + interfaces= + num_interfaces=0 + for interface in /sys/class/net/*; do + [ -d "$interface" ] || continue + base="${interface##*/}" + # Ignore the loopback + [ "$base" != lo ] || continue + # Ignore tunnel devices + [ "${base#sit}" = "$base" ] || continue + # Ignore raw 802.11 devices + iftype="$(cat "$interface/type" 2>/dev/null)" + case $iftype in + 801|802|803) + continue + ;; + esac + interfaces="${interfaces:+$interfaces, }${base##*/}" + num_interfaces="$(($num_interfaces + 1))" + done + + if [ "$num_interfaces" -eq 0 ]; then + db_set eucalyptus/private-interface "$default_interface" + elif [ "$num_interfaces" -eq 1 ]; then + db_set eucalyptus/private-interface "$interfaces" + else + db_get eucalyptus/private-interface + if [ -z "$RET" ]; then + db_set eucalyptus/private-interface \ + "$default_interface" + fi + db_subst eucalyptus/private-interface INTERFACES "$interfaces" + db_subst eucalyptus/private-interface \ + DEFAULT_INTERFACE "$default_interface" + db_input high eucalyptus/private-interface || true + db_go || true + fi +} + +cloud_preseed () { + # busybox wget doesn't support HTTPS, and so neither does + # preseed_location. Work around this. + local tmp="$(mktemp -t eucalyptus-udeb.XXXXXX)" + logger -t eucalyptus-udeb "Loading cloud preseed file from $1" + wget.gnu -q --no-check-certificate -O "$tmp" "$1" || return $? + preseed_location "file://$tmp" + rm -f "$tmp" +} + +# need this in several places, so check up-front +clusters="$(euca_find_component cluster)" +if [ "$clusters" ]; then + num_clusters="$(echo "$clusters" | wc -l)" +else + num_clusters=0 +fi + +clouds="$(euca_find_component cloud)" +if [ "$clouds" ]; then + num_clouds="$(echo "$clouds" | wc -l)" +else + num_clouds=0 +fi + +if [ "$num_clouds" -gt 1 ]; then + IFS_SAVE="$IFS" + choices_c= + choices= + IFS="$NL" + for line in $clouds; do + name="${line%% *}" + ipport="${line#* }" + choices_c="${choices_c:+$choices_c, }$ipport" + choices="${choices:+$choices, }$name ($ipport)" + done + IFS="$IFS_SAVE" + db_subst 'eucalyptus/cloud-address-select' CHOICES_C "$choices_c" + db_subst 'eucalyptus/cloud-address-select' CHOICES "$choices" + db_input critical 'eucalyptus/cloud-address-select' || true + db_go + db_get 'eucalyptus/cloud-address-select' + cloud="$RET" +elif [ "$num_clouds" = 1 ]; then + cloud="${clouds#* }" +else + cloud= +fi +if [ -z "$cloud" ]; then + db_input high eucalyptus/cloud-address || true + db_go || true + db_get eucalyptus/cloud-address + cloud="$RET" +fi + +if [ -z "$cloud" ]; then + install_mode_choices cloud walrus cluster storage node + install_mode_default 'cloud, walrus, cluster, storage' + db_metaget eucalyptus/install-mode-default-cloud description +else + walruses="$(euca_find_component walrus)" + if [ "$walruses" ]; then + # clusters discovered above + if [ "$clusters" ]; then + storages="$(euca_find_component storage)" + if [ "$storages" ]; then + install_mode_choices node cluster storage + install_mode_default node + db_metaget eucalyptus/install-mode-default-node description + else + install_mode_choices storage cluster node + install_mode_default storage + db_metaget eucalyptus/install-mode-default-storage description + fi + else + install_mode_choices cluster storage node + install_mode_default 'cluster, storage' + db_metaget eucalyptus/install-mode-default-cluster description + fi + else + install_mode_choices walrus cluster storage node + install_mode_default walrus + db_metaget eucalyptus/install-mode-default-walrus description + fi +fi +db_subst eucalyptus/install-mode DEFAULT_TEXT "$RET" +while :; do + db_input critical eucalyptus/install-mode || true + db_go + db_get eucalyptus/install-mode + components="$(echo "$RET" | sed 's/, */ /g')" + + # awkward set-membership checks + case " $components " in + *' storage '*) + case " $components " in + *' cluster '*) + ;; + *) + if [ -z "$clusters" ]; then + db_input critical eucalyptus/sc-without-cc || true + db_go || true + continue + fi + ;; + esac + esac + + break +done + +tasksel= +cloud_preseeded= +for component in $components; do + case $component in + cloud) + tasksel="${tasksel:+$tasksel, }eucalyptus-cloud" + + # needs to be preseeded in /target + echo 'postfix postfix/main_mailer_type select Internet Site' >> "$logfile" + ;; + + walrus) + tasksel="${tasksel:+$tasksel, }eucalyptus-walrus" + + if [ "$cloud" ] && [ -z "$cloud_preseeded" ]; then + cloud_preseed "https://${cloud%:*}:8443/preseed/preseed.conf" || true + cloud_preseeded=1 + fi + ;; + + cluster) + tasksel="${tasksel:+$tasksel, }eucalyptus-cluster" + + if [ "$cloud" ]; then + echo "eucalyptus-cc eucalyptus/cloud-address string ${cloud%:*}" >> "$logfile" + fi + + if [ "$cloud" ] && [ -z "$cloud_preseeded" ]; then + cloud_preseed "https://${cloud%:*}:8443/preseed/preseed.conf" || true + cloud_preseeded=1 + fi + + choose_interfaces + ;; + + storage) + tasksel="${tasksel:+$tasksel, }eucalyptus-storage" + + if [ "$cloud" ] && [ -z "$cloud_preseeded" ]; then + cloud_preseed "https://${cloud%:*}:8443/preseed/preseed.conf" || true + cloud_preseeded=1 + fi + ;; + + node) + tasksel="${tasksel:+$tasksel, }eucalyptus-node" + + if [ "$num_clusters" -gt 1 ]; then + IFS_SAVE="$IFS" + choices_c= + choices= + IFS="$NL" + for line in $clusters; do + name="${line%% *}" + ipport="${line#* }" + choices_c="${choices_c:+$choices_c, }$ipport" + choices="${choices:+$choices, }$name ($ipport)" + done + IFS="$IFS_SAVE" + db_subst eucalyptus/cluster-address CHOICES_C "$choices_c" + db_subst eucalyptus/cluster-address CHOICES "$choices" + db_input critical eucalyptus/cluster-address || true + db_go + db_get eucalyptus/cluster-address + cluster="$RET" + elif [ "$num_clusters" = 1 ]; then + cluster="${clusters#* }" + else + cluster= + fi + + if [ "$cluster" ]; then + # node-preseed for compatibility with Ubuntu 9.10 + preseed_location "http://$cluster/preseed/preseed.conf" || \ + preseed_location "http://$cluster/node-preseed" || true + fi + ;; + esac +done +set_question tasksel tasksel/first multiselect "$tasksel" + +exit 0 --- eucalyptus-1.6.2.orig/debian/eucalyptus-walrus.eucalyptus-walrus-publication.upstart +++ eucalyptus-1.6.2/debian/eucalyptus-walrus.eucalyptus-walrus-publication.upstart @@ -0,0 +1,18 @@ +# eucalyptus-walrus-publication + +description "Eucalyptus walrus publication" +author "Colin Watson , Dustin Kirkland " + +start on (started ssh and started avahi-daemon and eucalyptus-network-is-ready) + +respawn + +script + [ -f "/var/lib/eucalyptus/.ssh/authorized_keys" ] || { stop; exit 0; } + # Respawn, but not too fast + sleep 5 + . /etc/eucalyptus/eucalyptus.conf + . /etc/eucalyptus/eucalyptus.local.conf + . /etc/eucalyptus/eucalyptus-ipaddr.conf + exec avahi-publish -s "Walrus" _eucalyptus._tcp 8773 txtvers=1 protovers=1.5.0 type=walrus ipaddr="$WALRUS_IP_ADDR" +end script --- eucalyptus-1.6.2.orig/debian/eucalyptus-cloud.dirs +++ eucalyptus-1.6.2/debian/eucalyptus-cloud.dirs @@ -0,0 +1,4 @@ +/etc/eucalyptus/preseed +/var/lib/eucalyptus/db +/var/lib/eucalyptus/modules +/var/lib/eucalyptus/webapps --- eucalyptus-1.6.2.orig/debian/eucalyptus-nc.config +++ eucalyptus-1.6.2/debian/eucalyptus-nc.config @@ -0,0 +1,19 @@ +#!/bin/sh -e + +. /usr/share/debconf/confmodule + +# Warn users that installing eucalyptus-nc on a system without VT +# may be undesirable. + +if egrep -q "flags.*:.*(svm|vmx)" /proc/cpuinfo 2>&1 +then + true +else + db_input high eucalyptus-nc/no_vmx || true + db_go +fi + +db_get eucalyptus/cluster-name || true +if [ -z "$RET" ]; then + db_set eucalyptus/cluster-name "cluster1" +fi --- eucalyptus-1.6.2.orig/debian/eucalyptus-java-common.links +++ eucalyptus-1.6.2/debian/eucalyptus-java-common.links @@ -0,0 +1,81 @@ +/usr/share/java/axiom-api.jar /usr/share/eucalyptus/axiom-api.jar +/usr/share/java/axiom-dom.jar /usr/share/eucalyptus/axiom-dom.jar +/usr/share/java/axiom-impl.jar /usr/share/eucalyptus/axiom-impl.jar +/usr/share/java/backport-util-concurrent.jar /usr/share/eucalyptus/backport-util-concurrent.jar +/usr/share/java/bcprov.jar /usr/share/eucalyptus/bcprov.jar +/usr/share/java/commons-fileupload.jar /usr/share/eucalyptus/commons-fileupload.jar +/usr/share/java/commons-httpclient.jar /usr/share/eucalyptus/commons-httpclient.jar +/usr/share/java/commons-lang.jar /usr/share/eucalyptus/commons-lang.jar +/usr/share/java/commons-pool.jar /usr/share/eucalyptus/commons-pool.jar +/usr/share/java/dnsjava.jar /usr/share/eucalyptus/dnsjava.jar +/usr/share/java/drools-core.jar /usr/share/eucalyptus/drools-core.jar +/usr/share/java/drools-compiler.jar /usr/share/eucalyptus/drools-compiler.jar +/usr/share/java/ecj.jar /usr/share/eucalyptus/ecj.jar +/usr/share/java/gnumail.jar /usr/share/eucalyptus/gnumail.jar +/usr/share/java/gnumail-providers.jar /usr/share/eucalyptus/gnumail-providers.jar +/usr/share/java/inetlib.jar /usr/share/eucalyptus/inetlib.jar +/usr/share/java/geronimo-jpa-3.0-spec.jar /usr/share/eucalyptus/geronimo-jpa-3.0-spec.jar +/usr/share/java/google-collect.jar /usr/share/eucalyptus/google-collect.jar +/usr/share/java/groovy.jar /usr/share/eucalyptus/groovy.jar +/usr/share/java/gwt-servlet.jar /usr/share/eucalyptus/gwt-servlet.jar +/usr/share/java/gwt-user.jar /usr/share/eucalyptus/gwt-user.jar +/usr/share/java/jaxp-1.3.jar /usr/share/eucalyptus/jaxp-1.3.jar +/usr/share/java/jetty.jar /usr/share/eucalyptus/jetty.jar +/usr/share/java/jibx-run.jar /usr/share/eucalyptus/jibx-run.jar +/usr/share/java/json-lib.jar /usr/share/eucalyptus/json-lib.jar +/usr/share/java/junit.jar /usr/share/eucalyptus/junit.jar +/usr/share/java/log4j-1.2.jar /usr/share/eucalyptus/log4j-1.2.jar +/usr/share/java/netty.jar /usr/share/eucalyptus/netty.jar +/usr/share/java/servlet-api-2.5.jar /usr/share/eucalyptus/servlet-api-2.5.jar +/usr/share/java/wss4j.jar /usr/share/eucalyptus/wss4j.jar +/usr/share/java/xalan2.jar /usr/share/eucalyptus/xalan2.jar +/usr/share/java/xercesImpl.jar /usr/share/eucalyptus/xercesImpl.jar +/usr/share/java/xml-security.jar /usr/share/eucalyptus/xml-security.jar +/usr/share/java/antlr3-3.0.1+dfsg.jar /usr/share/eucalyptus/antlr3-3.0.1+dfsg.jar +/usr/share/java/asm2.jar /usr/share/eucalyptus/asm2.jar +/usr/share/java/bcel.jar /usr/share/eucalyptus/bcel.jar +/usr/share/java/bsf.jar /usr/share/eucalyptus/bsf.jar +/usr/share/java/cglib.jar /usr/share/eucalyptus/cglib.jar +/usr/share/java/commons-beanutils.jar /usr/share/eucalyptus/commons-beanutils.jar +/usr/share/java/commons-cli.jar /usr/share/eucalyptus/commons-cli.jar +/usr/share/java/commons-codec.jar /usr/share/eucalyptus/commons-codec.jar +/usr/share/java/commons-collections3.jar /usr/share/eucalyptus/commons-collections3.jar +/usr/share/java/commons-discovery.jar /usr/share/eucalyptus/commons-discovery.jar +/usr/share/java/commons-io.jar /usr/share/eucalyptus/commons-io.jar +/usr/share/java/commons-jxpath.jar /usr/share/eucalyptus/commons-jxpath.jar +/usr/share/java/commons-logging.jar /usr/share/eucalyptus/commons-logging.jar +/usr/share/java/commons-logging-adapters.jar /usr/share/eucalyptus/commons-logging-adapters.jar +/usr/share/java/commons-logging-api.jar /usr/share/eucalyptus/commons-logging-api.jar +/usr/share/java/dom4j.jar /usr/share/eucalyptus/dom4j.jar +/usr/share/java/el-api-2.1.jar /usr/share/eucalyptus/el-api-2.1.jar +/usr/share/java/ezmorph.jar /usr/share/eucalyptus/ezmorph.jar +/usr/share/java/activation.jar /usr/share/eucalyptus/activation.jar +/usr/share/java/geronimo-ejb-3.0-spec.jar /usr/share/eucalyptus/geronimo-ejb-3.0-spec.jar +/usr/share/java/geronimo-j2ee-connector-1.5-spec.jar /usr/share/eucalyptus/geronimo-j2ee-connector-1.5-spec.jar +/usr/share/java/geronimo-jms-1.1-spec.jar /usr/share/eucalyptus/geronimo-jms-1.1-spec.jar +/usr/share/java/geronimo-jta-1.0.1b-spec.jar /usr/share/eucalyptus/geronimo-jta-1.0.1b-spec.jar +/usr/share/java/geronimo-jacc-1.1-spec.jar /usr/share/eucalyptus/geronimo-jacc-1.1-spec.jar +/usr/share/java/geronimo-interceptor-3.0-spec.jar /usr/share/eucalyptus/geronimo-interceptor-3.0-spec.jar +/usr/share/java/hsqldb.jar /usr/share/eucalyptus/hsqldb.jar +/usr/share/java/hsqldbutil.jar /usr/share/eucalyptus/hsqldbutil.jar +/usr/share/java/janino.jar /usr/share/eucalyptus/janino.jar +/usr/share/java/javassist.jar /usr/share/eucalyptus/javassist.jar +/usr/share/java/jaxen.jar /usr/share/eucalyptus/jaxen.jar +/usr/share/java/jetty-sslengine.jar /usr/share/eucalyptus/jetty-sslengine.jar +/usr/share/java/jetty-util.jar /usr/share/eucalyptus/jetty-util.jar +/usr/share/java/jibx-bind.jar /usr/share/eucalyptus/jibx-bind.jar +/usr/share/java/jibx-extras.jar /usr/share/eucalyptus/jibx-extras.jar +/usr/share/java/jug-asl.jar /usr/share/eucalyptus/jug-asl.jar +/usr/share/java/excalibur-logkit.jar /usr/share/eucalyptus/excalibur-logkit.jar +/usr/share/java/mvel.jar /usr/share/eucalyptus/mvel.jar +/usr/share/java/proxool.jar /usr/share/eucalyptus/proxool.jar +/usr/share/java/regexp.jar /usr/share/eucalyptus/regexp.jar +/usr/share/java/serializer.jar /usr/share/eucalyptus/serializer.jar +/usr/share/java/slf4j-api.jar /usr/share/eucalyptus/slf4j-api.jar +/usr/share/java/slf4j-log4j12.jar /usr/share/eucalyptus/slf4j-log4j12.jar +/usr/share/java/jcl-over-slf4j.jar /usr/share/eucalyptus/jcl-over-slf4j.jar +/usr/share/java/jul-to-slf4j.jar /usr/share/eucalyptus/jul-to-slf4j.jar +/usr/share/java/wstx-lgpl.jar /usr/share/eucalyptus/wstx-lgpl.jar +/usr/share/java/wsdl4j.jar /usr/share/eucalyptus/wsdl4j.jar +/usr/share/java/xom.jar /usr/share/eucalyptus/xom.jar +/usr/share/java/xpp3.jar /usr/share/eucalyptus/xpp3.jar --- eucalyptus-1.6.2.orig/debian/axis2.xml +++ eucalyptus-1.6.2/debian/axis2.xml @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + + + true + + + + + + + + + + + + + + + + + + + + + + + 6060 + false + + + + + + + + + + + + + HTTP/1.1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --- eucalyptus-1.6.2.orig/debian/eucalyptus-cc.postinst +++ eucalyptus-1.6.2/debian/eucalyptus-cc.postinst @@ -0,0 +1,79 @@ +#!/bin/sh -e + +. /usr/share/debconf/confmodule + +if [ "$1" = "configure" ] +then + if ! dpkg-statoverride --list /var/lib/eucalyptus/CC >/dev/null 2>&1; then + chown eucalyptus:eucalyptus /var/lib/eucalyptus/CC + chmod 700 /var/lib/eucalyptus/CC + fi + if ! dpkg-statoverride --list /var/lib/eucalyptus/keys >/dev/null 2>&1; then + chown eucalyptus:eucalyptus /var/lib/eucalyptus/keys + chmod 700 /var/lib/eucalyptus/keys + fi + if [ -z "$2" ] + then + DEBCONF_KEY_MAP="eucalyptus/mode=VNET_MODE eucalyptus/subnet=VNET_SUBNET eucalyptus/netmask=VNET_NETMASK eucalyptus/dns=VNET_DNS eucalyptus/addrspernet=VNET_ADDRSPERNET eucalyptus/publicips=VNET_PUBLICIPS eucalyptus/cloud-address=VNET_CLOUDIP" + conf_tmp=$(tempfile) + for mapping in $DEBCONF_KEY_MAP + do + debconf_key="${mapping%=*}" + conf_key="${mapping#*=}" + db_get $debconf_key + if [ "$RET" ]; then + echo "$conf_key=\"$RET\"" >> $conf_tmp + fi + done + euca_conf --import-conf $conf_tmp + rm -f $conf_tmp + + db_get eucalyptus/cluster-name + if [ "$RET" ]; then + echo "CC_NAME=\"$RET\"" >> /etc/eucalyptus/eucalyptus-cc.conf + fi + touch /var/lib/eucalyptus/nodes.list + chown eucalyptus /var/lib/eucalyptus/nodes.list + fi + + if dpkg --compare-versions "$2" lt 1.5~bzr212-0ubuntu2 + then + EUCA_HOME=`getent passwd eucalyptus | cut -f6 -d:` + if ! [ -d "$EUCA_HOME/.ssh" ] + then + mkdir -p "$EUCA_HOME/.ssh" + chown eucalyptus "$EUCA_HOME/.ssh" + chmod 755 "$EUCA_HOME/.ssh" + fi + if ! [ -f "$EUCA_HOME/.ssh/id_rsa" ] + then + su eucalyptus -c "ssh-keygen -N '' -t rsa -f $EUCA_HOME/.ssh/id_rsa" + fi + fi + + if [ -n "$2" ] && dpkg --compare-versions "$2" lt 1.6~bzr588-0ubuntu5 + then + for s in eucalyptus-cc eucalyptus-walrus eucalyptus-cloud; do + update-rc.d -f ${s} remove + done + fi + + if [ -n "$2" ] && dpkg --compare-versions "$2" lt 1.6.2~bzr1176-0ubuntu2 + then + if [ -f "/etc/eucalyptus/eucalyptus.local.conf" ]; then + . /etc/eucalyptus/eucalyptus.local.conf + if [ -n "$NODES" ]; then + echo "$NODES" >> /var/lib/eucalyptus/nodes.list + fi + chown eucalyptus /var/lib/eucalyptus/nodes.list + fi + fi + + if [ -e /etc/init/eucalyptus-cc.conf ]; then + start eucalyptus-cc || : + fi +fi + +db_stop + +#DEBHELPER# --- eucalyptus-1.6.2.orig/debian/eucalyptus-common.install +++ eucalyptus-1.6.2/debian/eucalyptus-common.install @@ -0,0 +1,21 @@ +debian/eucalyptus-ipaddr.conf etc/eucalyptus +/var/log +/etc/eucalyptus/eucalyptus-version +/etc/eucalyptus/vtunall.conf.template +/etc/eucalyptus/wrappers.conf +/etc/bash_completion.d/euca_conf +/usr/share/eucalyptus/add_key.pl +/usr/share/eucalyptus/chgrp-dhcpd +/usr/share/eucalyptus/chmod-dhcpd +/usr/share/eucalyptus/dd-lv +/usr/share/eucalyptus/modprobe-aoe +/usr/share/eucalyptus/populate_arp.pl +/usr/share/eucalyptus/euca_ipt +/usr/lib/eucalyptus/euca_rootwrap +/usr/sbin/euca_conf +/usr/sbin/euca_sync_key +/usr/sbin/euca_killall +/etc/eucalyptus/httpd.conf +debian/eucalyptus.conf etc/eucalyptus/ +debian/axis2.xml /etc/eucalyptus/axis2 +debian/source_eucalyptus.py usr/share/apport/package-hooks --- eucalyptus-1.6.2.orig/debian/eucalyptus-cc.config +++ eucalyptus-1.6.2/debian/eucalyptus-cc.config @@ -0,0 +1,29 @@ +#! /bin/sh +set -e + +. /usr/share/debconf/confmodule + +if [ "$1" = configure ] && [ -z "$2" ]; then + db_get eucalyptus/cluster-name || true + if [ -z "$RET" ]; then + db_set eucalyptus/cluster-name "cluster1" + fi + db_input high eucalyptus/cluster-name || true + db_input low eucalyptus/mode || true + db_go + db_get eucalyptus/mode + if [ "$RET" = "MANAGED-NOVLAN" -o "$RET" = "MANAGED" ] + then + current_dns="$(grep ^nameserver /etc/resolv.conf | head -n 1 | awk -- '{ print $NF }')" + db_set eucalyptus/dns "$current_dns" + db_input medium eucalyptus/subnet || true + db_input medium eucalyptus/netmask || true + db_input medium eucalyptus/dns || true + db_input medium eucalyptus/addrspernet || true + db_input medium eucalyptus/cloud-address || true + db_input high eucalyptus/publicips || true + db_go + fi +fi + +exit 0 --- eucalyptus-1.6.2.orig/debian/uec-component-listener.postrm +++ eucalyptus-1.6.2/debian/uec-component-listener.postrm @@ -0,0 +1,9 @@ +#!/bin/sh -e + +case "$1" in +purge) + rm -rf /var/log/eucalyptus/registration.log + ;; +esac + +#DEBHELPER# --- eucalyptus-1.6.2.orig/debian/eucalyptus-nc.dirs +++ eucalyptus-1.6.2/debian/eucalyptus-nc.dirs @@ -0,0 +1 @@ +/var/lib/eucalyptus/instances --- eucalyptus-1.6.2.orig/debian/uec-component-listener.upstart +++ eucalyptus-1.6.2/debian/uec-component-listener.upstart @@ -0,0 +1,12 @@ +# uec-component-listener + +description "UEC component listener" +author "Thierry Carrez " + +start on (started eucalyptus-cloud and started eucalyptus-cc) +stop on (stopping eucalyptus-cloud or stopping eucalyptus-cc) + +script + [ -f "/var/lib/eucalyptus/registration.lock" ] && { stop; exit 0; } + exec start-stop-daemon --start --chuid eucalyptus:eucalyptus --exec /usr/sbin/uec_component_listener +end script --- eucalyptus-1.6.2.orig/debian/wsdl.md5sums +++ eucalyptus-1.6.2/debian/wsdl.md5sums @@ -0,0 +1,3 @@ +c34f53fd8c47ad46e9d0c2c69912bfcc wsdl/eucalyptus_cc.wsdl +8998c4c94d1ec9e201778a734a5bcea2 wsdl/eucalyptus_gl.wsdl +c6901d21c5bb5e613548cd2f252d637d wsdl/eucalyptus_nc.wsdl --- eucalyptus-1.6.2.orig/debian/eucalyptus-common.postinst +++ eucalyptus-1.6.2/debian/eucalyptus-common.postinst @@ -0,0 +1,50 @@ +#!/bin/sh -e + +seed_local_conf() { + cat >/etc/eucalyptus/eucalyptus.local.conf < /dev/null 2>&1 + then + adduser --system --shell /bin/bash --home /var/lib/eucalyptus --group eucalyptus + fi + + if [ -z "$2" ] + then + # Some initial configuration + seed_local_conf + statoverride="$(dpkg-statoverride --list /usr/share/eucalyptus/euca_rootwrap || true)" + if [ "$statoverride" = 'root eucalyptus 04754 /usr/share/eucalyptus/euca_rootwrap' ] || \ + [ "$statoverride" = 'root eucalyptus 04750 /usr/share/eucalyptus/euca_rootwrap' ]; then + # Clean up packaged-installed statoverride that should *not* be here, + # if it precisely matches the statoverride we previously installed. + dpkg-statoverride --remove /usr/share/eucalyptus/euca_rootwrap + fi + fi + + if ! dpkg-statoverride --list /usr/lib/eucalyptus/euca_rootwrap; then + # Add nasty setuid, change group ownership + chown root:eucalyptus /usr/lib/eucalyptus/euca_rootwrap + chmod 04754 /usr/lib/eucalyptus/euca_rootwrap + fi + + chown -R eucalyptus:eucalyptus /var/lib/eucalyptus/ /var/log/eucalyptus + chmod 700 /var/lib/eucalyptus/keys + + if [ -e /etc/init/eucalyptus.conf ]; then + start eucalyptus || : + fi +fi + +#DEBHELPER# --- eucalyptus-1.6.2.orig/debian/source_eucalyptus.py +++ eucalyptus-1.6.2/debian/source_eucalyptus.py @@ -0,0 +1,61 @@ +import os.path, os + +from apport.hookutils import * + +def installed_packages(report): + packages=['vmbuilder', 'euca2ools', 'ec2-api-tools', 'ec2-ami-tools', 'eucalyptus-common', 'eucalyptus-sc', + 'eucalyptus-cloud', 'eucalyptus-walrus', 'eucalyptus-java-common', 'eucalyptus-cc', + 'eucalyptus-nc', 'eucalyptus-gl', 'uec-component-listener'] + + version = '' + for package in packages: + try: + vesion = packaging.get_versions(package) + except ValueError: + version = 'N/A' + if version is None: + version = 'N/A' + versions += '%s %s\n' %(package, version) + report['EucalyptusInstalledVersions'] = versions + +def add_info(report): + # Report on the versions that are installed, including: vmbuilder, ec2-api-tools + # ec2-ami-tools, euca2ools, and eucalyptus* + installed_packages(report) + + attach_file_if_exists(report, '/etc/eucalyptus/eucalyptus.conf', key='eucalyptus.conf') + attach_file_if_exists(report, '/etc/eucalyptus/eucalyptus.local.conf', key='eucalyptus.local.conf') + attach_file_if_exists(report, '/etc/eucalyptus/eucalyptus-cc.conf') + + # Do these contain any private data? They're all currently world-readable + # -mdz + attach_file_if_exists(report, '/var/log/eucalyptus/axis2c.log', key='EucalyptusAxis2cLog') + attach_file_if_exists(report, '/var/log/eucalyptus/cc.log', key='EucalyptusCCLog') + attach_file_if_exists(report, '/var/log/eucalyptus/cloud-debug.log', key='EucalyptusCloudDebugLog') + attach_file_if_exists(report, '/var/log/eucalyptus/cloud-output.log', key='EucalyptusCloudOutputLog') + attach_file_if_exists(report, '/var/log/eucalyptus/httpd-cc_error_log', key='EucalyptusHTTPDErrorLog') + + tags = [] + + ui.information("As part of the bug reporting process, you'll be asked a series of questions to help provide a more descriptive bug report. Please answer the following questions to the best of your ability. Afterwards, a browser will be opened to finish filling this as a bug in the Launchpad bug tracking system.") + + response = ui.yesno("Is this issue easily reproducable in the current version of Eucalytptus?") + if response == None: #user canceled + raise StopIteration + + if response == False: + report['EasilyReproduced'] = 'No' + elif rsponse == True: + report['EasilyReproduced'] = 'Yes' + ui.information("Please provide clear steps so that the Ubuntu Developers can reproduce your bug.") + + response = ui.yesno("Are you able to provide more information on how your UEC is setup") + if response == None: #use canceled + raise StopIteration + + if response == False: + report['UECDescSetup'] = 'No' + ui.information("It would be benefial to the bug report if you could provide how your UEC is setup.") + if response == True: + report['UECDescSetup'] = 'Yes' + ui.information("Please provide a detailed description of your UEC setup.") --- eucalyptus-1.6.2.orig/debian/eucalyptus-sc.install +++ eucalyptus-1.6.2/debian/eucalyptus-sc.install @@ -0,0 +1 @@ +/usr/share/eucalyptus/eucalyptus-storagecontroller-1.6.2.jar --- eucalyptus-1.6.2.orig/debian/wsdl_generator +++ eucalyptus-1.6.2/debian/wsdl_generator @@ -0,0 +1,85 @@ +#!/bin/sh +# +# Ideally, axis2 would be packaged for Ubuntu, and a build dependency of the +# eucalyptus package. +# +# However, axis2 is not feasible to package in Ubuntu (ask Thierry Carrez). +# +# This script is intended to be run by the Ubuntu eucalyptus package maintainer. +# +# It will download the source/binary tarball for axis2, and run WSDL2C.sh, which +# regenerates a bunch of C-stubs need for Eucalyptus. This only needs to be +# executed if any of the wsdl files change: +# * wsdl/eucalyptus_cc.wsdl +# * wsdl/eucalyptus_gl.wsdl +# * wsdl/eucalyptus_nc.wsdl +# +# -- Dustin Kirkland 2010-01-04 17:02:16 + +set -e +set -x + +ORIG_DIR="$PWD" +DEST="$ORIG_DIR/debian/patches/01-wsdl-stubs.patch" +if [ ! -f "$DEST" ]; then + echo + echo "Run '$0' from the root of the eucalyptus branch" + echo + exit 1 +fi + +# Create a sandbox +DIR=$(mktemp -d) +cd "$DIR" + +# Get the nasty axis2 tool +if [ -z "$AXIS2_HOME" ] || [ ! -d "$AXIS2_HOME" ]; then + wget -O eucalyptus-1.6.1-src-deps.tar.gz http://open.eucalyptus.com/downloads/127 + tar zxvf eucalyptus-1.6.1-src-deps.tar.gz + cd eucalyptus-src-deps + tar zxvf axis2-1.4.tgz + export AXIS2_HOME="$DIR"/eucalyptus-src-deps/axis2-1.4 + cd .. +fi + +# Grab the Ubuntu eucalyptus branch +bzr branch "$ORIG_DIR" ubuntu +cd "$DIR"/ubuntu + +# Reset the generated environment +rm -rf cluster/generated node/generated gatherlog/generated +mkdir -p cluster/generated node/generated gatherlog/generated + +# Generate the stubs +sh /usr/lib/axis2/bin/tools/wsdl2c/WSDL2C.sh -uri wsdl/eucalyptus_gl.wsdl -g -d adb -u -uw -f -o gatherlog/generated | grep -v 'the classpath' +sh /usr/lib/axis2/bin/tools/wsdl2c/WSDL2C.sh -uri wsdl/eucalyptus_gl.wsdl -sd -ss -d adb -u -uw -f -o gatherlog/generated | grep -v 'the classpath' +sh /usr/lib/axis2/bin/tools/wsdl2c/WSDL2C.sh -uri wsdl/eucalyptus_nc.wsdl -g -d adb -u -uw -f -o node/generated | grep -v 'the classpath' +sh /usr/lib/axis2/bin/tools/wsdl2c/WSDL2C.sh -uri wsdl/eucalyptus_nc.wsdl -sd -ss -d adb -u -uw -f -o node/generated | grep -v 'the classpath' +sh /usr/lib/axis2/bin/tools/wsdl2c/WSDL2C.sh -uri wsdl/eucalyptus_cc.wsdl -g -d adb -u -uw -f -o cluster/generated | grep -v 'the classpath' +sh /usr/lib/axis2/bin/tools/wsdl2c/WSDL2C.sh -uri wsdl/eucalyptus_nc.wsdl -g -d adb -u -uw -f -o cluster/generated | grep -v 'the classpath' +sh /usr/lib/axis2/bin/tools/wsdl2c/WSDL2C.sh -uri wsdl/eucalyptus_cc.wsdl -sd -ss -d adb -u -uw -f -o cluster/generated | grep -v 'the classpath' + +# Doctor the generated output like Eucalyptus does +./tools/add_marshalling.pl */generated/axis2_skel_*.c +patch -d cluster/generated -p1 < cluster/axis2_svc_generated.patch +patch -d node/generated -p1 < node/axis2_svc_generated.patch +find . | grep "axis2_svc_skel_.*.orig" | xargs -i rm -f {} + +# Generate the diff, and update the md5sums +bzr add cluster/generated node/generated gatherlog/generated +bzr diff -p1 | tee "$DEST" +cd "$ORIG_DIR" +md5sum wsdl/*.wsdl | tee debian/wsdl.md5sums + +# Clean up +rm -rf "$DIR" + +# Check work and commit +bzr diff | diffstat +echo +echo "SUCCESS: $DEST updated" +echo +echo "INFO: Update changelog, and debcommit!" +echo +echo " * debian/patches/01-wsdl-stubs.patch, debian/wsdl.md5sums: wsdl stubs updated" +echo --- eucalyptus-1.6.2.orig/debian/eucalyptus-udeb.install +++ eucalyptus-1.6.2/debian/eucalyptus-udeb.install @@ -0,0 +1,2 @@ +debian/local/euca_find_component usr/bin +/usr/lib/finish-install.d --- eucalyptus-1.6.2.orig/debian/eucalyptus-sc.eucalyptus-sc-publication.upstart +++ eucalyptus-1.6.2/debian/eucalyptus-sc.eucalyptus-sc-publication.upstart @@ -0,0 +1,19 @@ +# eucalyptus-sc-publication + +description "Eucalyptus storage controller publication" +author "Colin Watson , Dustin Kirkland " + +start on (started ssh and started avahi-daemon and eucalyptus-network-is-ready) + +respawn + +script + [ -f "/var/lib/eucalyptus/.ssh/authorized_keys" ] || { stop; exit 0; } + # Respawn, but not too fast + sleep 5 + . /etc/eucalyptus/eucalyptus.conf + . /etc/eucalyptus/eucalyptus.local.conf + . /etc/eucalyptus/eucalyptus-ipaddr.conf + . /etc/eucalyptus/eucalyptus-sc.conf + exec avahi-publish -s "$SC_NAME storage" _eucalyptus._tcp 8773 txtvers=1 protovers=1.5.0 type=storage ipaddr="$SC_IP_ADDR" +end script --- eucalyptus-1.6.2.orig/debian/rules +++ eucalyptus-1.6.2/debian/rules @@ -0,0 +1,82 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk +include /usr/share/cdbs/1/class/autotools.mk + +EUCALYPTUS=/ +JAVA_HOME=/usr/lib/jvm/default-java +AXIS2_CLASSPATH=$(shell echo /usr/share/eucalyptus/*.jar | tr \ :) +# The GWT compile doesn't like to run with a $DISPLAY that it can't reach. + +unexport DISPLAY +export EUCALYPTUS +export JAVA_HOME +export AXIS2_CLASSPATH + +DEB_CONFIGURE_EXTRA_FLAGS := --with-axis2=/usr/share/eucalyptus --with-axis2c=/usr/lib/axis2 --prefix=$(EUCALYPTUS) --with-interface-theme=ubuntu --enable-appliance-store + +makebuilddir/eucalyptus-common:: setup-libs + +setup-libs: + if md5sum -c debian/wsdl.md5sums; then \ + echo "SUCCESS: WSDL stubs are valid."; \ + else \ + echo "ERROR: WSDL stubs must be updated!"; \ + echo "HINT: ./debian/wsdl_generator"; \ + exit 1; \ + fi + cd clc && mkdir -p lib && \ + for jar in `cat ../debian/build-jars`; do \ + ln -fsv $$jar lib; done + touch setup-libs + +build/eucalyptus-udeb:: + $(MAKE) -C debian/local + +build/uec-component-listener:: + $(MAKE) -C debian/registration + +clean:: + $(MAKE) -C debian/local clean + $(MAKE) -C debian/registration clean + +install/eucalyptus-common:: + rm -f $(DEB_DESTDIR)/etc/init.d/eucalyptus + +install/eucalyptus-udeb:: + install -D debian/eucalyptus-udeb.finish-install \ + $(DEB_DESTDIR)/usr/lib/finish-install.d/60eucalyptus-udeb + +DEB_DH_INSTALLINIT_ARGS=--noscripts + +binary-install/eucalyptus-nc:: + dh_installinit -p$(cdbs_curpkg) --noscripts --name=eucalyptus-nc + dh_installinit -p$(cdbs_curpkg) --name=eucalyptus-nc-publication + +binary-install/eucalyptus-common:: + dh_installinit -p$(cdbs_curpkg) --noscripts --name=eucalyptus-network + dh_installinit -p$(cdbs_curpkg) --noscripts --name=eucalyptus + +binary-install/eucalyptus-cc:: + dh_installinit -p$(cdbs_curpkg) --name=eucalyptus-cc-publication + +binary-install/eucalyptus-cloud:: + dh_installinit -p$(cdbs_curpkg) --name=eucalyptus-cloud-publication + +binary-install/eucalyptus-walrus:: + dh_installinit -p$(cdbs_curpkg) --name=eucalyptus-walrus-publication + +binary-install/eucalyptus-sc:: + dh_installinit -p$(cdbs_curpkg) --name=eucalyptus-sc-publication + +binary-post-install/eucalyptus-cc:: + chmod 755 debian/$(cdbs_curpkg)/usr/lib/eucalyptus/eucalyptus-url + chmod 755 debian/$(cdbs_curpkg)/usr/share/eucalyptus/registration/* + +binary-post-install/eucalyptus-cloud:: + chmod 755 debian/$(cdbs_curpkg)/usr/share/eucalyptus/registration/* + +clean:: + rm -rf clc/lib setup-libs clc/modules/msgs/src/main/resources/msgs-binding.xml clc/modules/storage-controller/lib/liblvm2control.so clc/modules/storage-manager/lib/libfsstorage.so clc/modules/www/webapps/root.war node/test_nc node/test config.status clc/modules/storage-controller/include/edu_ucsb_eucalyptus_storage_LVM2Manager.h clc/modules/storage-controller/include/edu_ucsb_eucalyptus_storage_AOEManager.h clc/modules/storage-manager/include/edu_ucsb_eucalyptus_storage_fs_FileSystemStorageManager.h cluster/cc-client-policy.xml node/nc-client-policy.xml util/config.h config.log Makedefs clc/modules/bootstrap/eucalyptus-bootstrap.o clc/modules/bootstrap/eucalyptus-opts.o clc/modules/bootstrap/eucalyptus-cloud tools/eucalyptus-nc tools/eucalyptus-java-ws tools/eucalyptus-cc tools/euca_conf util/eucalyptus-config.h + --- eucalyptus-1.6.2.orig/debian/eucalyptus-sc.config +++ eucalyptus-1.6.2/debian/eucalyptus-sc.config @@ -0,0 +1,15 @@ +#! /bin/sh +set -e + +. /usr/share/debconf/confmodule + +if [ "$1" = configure ] && [ -z "$2" ]; then + db_get eucalyptus/cluster-name || true + if [ -z "$RET" ]; then + db_set eucalyptus/cluster-name "cluster1" + fi + db_input high eucalyptus/cluster-name || true + db_go +fi + +exit 0 --- eucalyptus-1.6.2.orig/debian/eucalyptus-nc.prerm +++ eucalyptus-1.6.2/debian/eucalyptus-nc.prerm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +if [ "$1" = "remove" ]; then + stop eucalyptus-nc-publication || true +fi + +#DEBHELPER# --- eucalyptus-1.6.2.orig/debian/eucalyptus-url +++ eucalyptus-1.6.2/debian/eucalyptus-url @@ -0,0 +1,12 @@ +#!/bin/sh -e + +# Print the administration URL in the MOTD +# Use an ip address URL for now; this could get prettier in the future, +# perhaps using the hostname. + +printf "\nWelcome to the Ubuntu Enterprise Cloud!\n" +printf " * Documentation: http://www.ubuntu.com/cloud\n" +if [ -r "/etc/init/eucalyptus-cloud.conf" ]; then + . /etc/eucalyptus/eucalyptus-ipaddr.conf + printf " * Administration: https://%s:8443/\n" "$CLOUD_IP_ADDR" +fi --- eucalyptus-1.6.2.orig/debian/eucalyptus-sc.postrm +++ eucalyptus-1.6.2/debian/eucalyptus-sc.postrm @@ -0,0 +1,11 @@ +#!/bin/sh -e + +case "$1" in +purge) + rm -rf /var/log/eucalyptus/sc-stats.log* \ + /var/lib/eucalyptus/volumes \ + /etc/eucalyptus/eucalyptus-sc.conf + ;; +esac + +#DEBHELPER# --- eucalyptus-1.6.2.orig/debian/copyright +++ eucalyptus-1.6.2/debian/copyright @@ -0,0 +1,82 @@ +This package was debianized by Soren Hansen on +Wed, 11 Feb 2009 02:11:00 +0200 + +It was downloaded from http://launchpad.net/eucalyptus + +Upstream Authors: + * Dan Nurmi + * Chris Grzegorczyk + * Graziano Obertelli + * Neil Soman + * Rich Wolski + * Dmitrii Zagorodnov + +Copyright: + Copyright (c) 2009 Eucalyptus Systems, Inc. + +clc/modules/core/src/main/java/org/hsqldb/HsqlSocketFactorySecure.java is +covered under the following copyright and license: + + Copyright (c) 2001-2008, The HSQL Development Group + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + + Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + Neither the name of the HSQL Development Group nor the names of its + contributors may be used to endorse or promote products derived from this + software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL HSQL DEVELOPMENT GROUP, HSQLDB.ORG, + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +debian/local/euca_find_component.c is derived from an example in Avahi, +which is copyright: + + Lennart Poettering + Trent Lloyd + Sebastien Estienne + Jakub Stachowski + James Willcox + Collabora Ltd. + + Modifications for eucalyptus-udeb are copyright 2009 Canonical Ltd. It is + licensed under the GNU Lesser General Public License version 2.1 or later, + which can be found at /usr/share/common-licenses/LGPL-2.1 on Debian systems. + +The rest of the Eucalyptus source code is covered by the GPLv3: + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation version 3 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + + On Debian systems, the complete text of the GNU General Public + License, version 3, can be found in /usr/share/common-licenses/GPL-3. + +The Debian packaging is copyright 2009, Soren Hansen , +Dustin Kirkland and is licensed under the same +license. --- eucalyptus-1.6.2.orig/debian/eucalyptus-common.preinst +++ eucalyptus-1.6.2/debian/eucalyptus-common.preinst @@ -0,0 +1,73 @@ +#!/bin/sh -e + +case $1 in + install|upgrade) + if dpkg --compare-versions "$2" lt 1.6.2~bzr1124-0ubuntu2 && [ -f /etc/eucalyptus/eucalyptus.conf ]; then + # When upgrading from existing installations, we need to mv the user's + # existing eucalyptus configuration to the new .local configuration file. + mv /etc/eucalyptus/eucalyptus.conf /etc/eucalyptus/eucalyptus.local.conf + # We now install a cleaner conffile eucalyptus.conf. + # This is a duplication of debian/eucalyptus.conf. Care should be taken to keep + # the two in sync. + cat >/etc/eucalyptus/eucalyptus.conf <" + +start on net-device-up +task +instance $IFACE +emits eucalyptus-network-is-ready + +script + default_route=$(ip route show to exact 0/0) + if [ -z "$default_route" ]; then + stop + exit 0 + fi + default_interface=$(echo $default_route | sed -e 's/^.*dev \([^ ]*\).*$/\1/') + addr_withprefix=$(ip addr show label $default_interface scope global | awk '$1 == "inet" { print $2 }') + addr=${addr_withprefix%%/*} + cat >/etc/eucalyptus/eucalyptus-ipaddr.conf <, Dustin Kirkland " + +start on started eucalyptus-cloud +stop on stopping eucalyptus-cloud + +respawn + +script + # Respawn, but not too fast + sleep 5 + . /etc/eucalyptus/eucalyptus.conf + . /etc/eucalyptus/eucalyptus.local.conf + . /etc/eucalyptus/eucalyptus-ipaddr.conf + exec avahi-publish -s "CLC" _eucalyptus._tcp 8773 txtvers=1 protovers=1.5.0 type=cloud ipaddr="$CLOUD_IP_ADDR" +end script --- eucalyptus-1.6.2.orig/debian/eucalyptus-nc.templates +++ eucalyptus-1.6.2/debian/eucalyptus-nc.templates @@ -0,0 +1,14 @@ +Template: eucalyptus-nc/no_vmx +Type: error +_Description: This hardware does not support virtualization acceleration + This system's CPU does not have support for virtualization acceleration, + which is strongly recommended for Eucalyptus Nodes. Eucalyptus running on + this hardware will be unaccelerated. + +Template: eucalyptus/cluster-name +Type: string +Default: cluster1 +_Description: Eucalyptus cluster name: + Enter a name for this cluster. The name should contain only ASCII letters, + digits, hyphens, and underscores. It will be shown to users as the name of + an availability zone. --- eucalyptus-1.6.2.orig/debian/eucalyptus-walrus.postinst +++ eucalyptus-1.6.2/debian/eucalyptus-walrus.postinst @@ -0,0 +1,23 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +if [ "$1" = "configure" ]; then + mkdir -p /var/lib/eucalyptus/bukkits + chown eucalyptus:eucalyptus /var/lib/eucalyptus/bukkits + EUCA_HOME=`getent passwd eucalyptus | cut -f6 -d:` + if ! [ -d "$EUCA_HOME/.ssh" ] + then + mkdir -p "$EUCA_HOME/.ssh" + chown eucalyptus "$EUCA_HOME/.ssh" + chmod 755 "$EUCA_HOME/.ssh" + fi + + if [ -e /etc/init/eucalyptus.conf ]; then + restart eucalyptus || : + fi +fi + +exit 0 --- eucalyptus-1.6.2.orig/debian/uec-component-listener.prerm +++ eucalyptus-1.6.2/debian/uec-component-listener.prerm @@ -0,0 +1,9 @@ +#!/bin/sh -e + +#DEBHELPER# + +if [ "$1" = "remove" ]; then + if [ -e /etc/init/uec-component-listener.conf ]; then + stop uec-component-listener || : + fi +fi --- eucalyptus-1.6.2.orig/debian/eucalyptus-cc.prerm +++ eucalyptus-1.6.2/debian/eucalyptus-cc.prerm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +if [ "$1" = "remove" ]; then + stop eucalyptus-cc-publication || true +fi + +#DEBHELPER# --- eucalyptus-1.6.2.orig/debian/eucalyptus-cloud.upstart +++ eucalyptus-1.6.2/debian/eucalyptus-cloud.upstart @@ -0,0 +1,29 @@ +# eucalyptus-cloud + +description "Eucalyptus cloud controller" +author "Matt Zimmerman " + +start on started eucalyptus +stop on stopping eucalyptus + +post-start script + timeout=60 + while [ $timeout -gt 0 ]; do + . /etc/eucalyptus/eucalyptus-ipaddr.conf + # Should this check something on :8773 instead? -mdz + if wget -q -T10 -t1 -O- --no-check-certificate \ + https://$CLOUD_IP_ADDR:8443/register | \ + grep CloudVersion; then + + # It's alive! Start uec-component-listener if no CC + if [ ! -d /usr/lib/axis2/services/EucalyptusCC ]; then + initctl start uec-component-listener + fi + exit 0 + fi + sleep 2 + timeout=$(($timeout-1)) + done + stop + exit 1 +end script --- eucalyptus-1.6.2.orig/debian/eucalyptus-sc.postinst +++ eucalyptus-1.6.2/debian/eucalyptus-sc.postinst @@ -0,0 +1,34 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +#DEBHELPER# + +if [ "$1" = "configure" ]; then + if [ -z "$2" ]; then + # Shared with CC; we keep a separate configuration file for this so + # that we can advertise the intended cluster name over Avahi. + db_get eucalyptus/cluster-name + if [ "$RET" ]; then + echo "SC_NAME=\"$RET\"" >> /etc/eucalyptus/eucalyptus-sc.conf + fi + fi + + EUCA_HOME=`getent passwd eucalyptus | cut -f6 -d:` + if ! [ -d "$EUCA_HOME/.ssh" ] + then + mkdir -p "$EUCA_HOME/.ssh" + chown eucalyptus "$EUCA_HOME/.ssh" + chmod 755 "$EUCA_HOME/.ssh" + fi + mkdir -p /var/lib/eucalyptus/volumes + chown eucalyptus:eucalyptus /var/lib/eucalyptus/volumes + + if [ -e /etc/init/eucalyptus.conf ]; then + restart eucalyptus || : + fi +fi + +exit 0 --- eucalyptus-1.6.2.orig/debian/eucalyptus-ipaddr.conf +++ eucalyptus-1.6.2/debian/eucalyptus-ipaddr.conf @@ -0,0 +1,26 @@ +# This file should be sourced by scripts that need access to +# the IP address of the cloud controller, such that the (albeit ugly) +# logic is in a single place, and consistent. + +default_route=$(ip route show to exact 0/0) +default_interface=$(echo $default_route | sed -e 's/^.*dev \([^ ]*\).*$/\1/') +addr_withprefix=$(ip addr show label $default_interface scope global | awk '$1 == "inet" { print $2 }') +addr=${addr_withprefix%%/*} + + +# In the default UEC, all of these components live on the same system. +# +# It is possible, however, to install each of (cloud, cc, walrus, sc, cloud) +# on separate hosts. The admin must ensure that the public key of +# eucalyptus@cloud is installed on each of the systems to be registered. +# +# This sourcable file can be used to statically configure these IPs, or use +# logic to discover the IPs of these services. +# +# Note that CC_IP_ADDR and SC_IP_ADDR can be a quoted, whitespace separated +# list of IP addresses. + +CC_IP_ADDR="$addr" +WALRUS_IP_ADDR="$addr" +SC_IP_ADDR="$addr" +CLOUD_IP_ADDR="$addr" --- eucalyptus-1.6.2.orig/debian/30-eucalyptus-nc.conf +++ eucalyptus-1.6.2/debian/30-eucalyptus-nc.conf @@ -0,0 +1,2 @@ +net.ipv4.ip_forward = 1 +net.bridge.bridge-nf-call-iptables = 1 --- eucalyptus-1.6.2.orig/debian/eucalyptus-gl.install +++ eucalyptus-1.6.2/debian/eucalyptus-gl.install @@ -0,0 +1 @@ +/usr/lib/axis2/services/EucalyptusGL --- eucalyptus-1.6.2.orig/debian/eucalyptus-common.prerm +++ eucalyptus-1.6.2/debian/eucalyptus-common.prerm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +if [ "$1" = "remove" ]; then + stop eucalyptus || true +fi + +#DEBHELPER# --- eucalyptus-1.6.2.orig/debian/eucalyptus-cc.eucalyptus-cc-publication.upstart +++ eucalyptus-1.6.2/debian/eucalyptus-cc.eucalyptus-cc-publication.upstart @@ -0,0 +1,19 @@ +# eucalyptus-cc-publication + +description "Eucalyptus cluster controller publication" +author "Matt Zimmerman , Dustin Kirkland " + +start on (started ssh and started avahi-daemon and eucalyptus-network-is-ready) + +respawn + +script + [ -f "/var/lib/eucalyptus/.ssh/authorized_keys" ] || { stop; exit 0; } + # Respawn, but not too fast + sleep 5 + . /etc/eucalyptus/eucalyptus.conf + . /etc/eucalyptus/eucalyptus.local.conf + . /etc/eucalyptus/eucalyptus-ipaddr.conf + . /etc/eucalyptus/eucalyptus-cc.conf + exec avahi-publish -s "$CC_NAME" _eucalyptus._tcp $CC_PORT txtvers=1 protovers=1.5.0 type=cluster ipaddr="$CC_IP_ADDR" +end script --- eucalyptus-1.6.2.orig/debian/compat +++ eucalyptus-1.6.2/debian/compat @@ -0,0 +1 @@ +7 --- eucalyptus-1.6.2.orig/debian/eucalyptus-udeb.finish-install +++ eucalyptus-1.6.2/debian/eucalyptus-udeb.finish-install @@ -0,0 +1,243 @@ +#! /bin/sh +set -e + +. /usr/share/debconf/confmodule + +question () { + owner="$1" + question="$2" + qtype="$3" + + if db_get "$2"; then + echo "$owner $question $qtype $RET" >>"$OUT" + fi +} + +made_preseed= +make_preseed_file () { + # Generate a preseed file from this installation suitable for publication by + # the cluster controller. The list of questions we copy is largely drawn + # from the installation guide. + + if [ "$made_preseed" ]; then + return + fi + made_preseed=1 + + OUT=/target/etc/eucalyptus/preseed/preseed.conf + mkdir -p "${OUT%/*}" + >"$OUT" + chroot /target chown eucalyptus:eucalyptus "${OUT#/target}" || true + chmod 600 "$OUT" + + cat >>"$OUT" <>"$OUT" + + question d-i mirror/protocol string + question d-i mirror/country string + question d-i mirror/http/hostname string + question d-i mirror/http/directory string + question d-i mirror/http/proxy string + question d-i mirror/http/mirror select + question d-i mirror/suite string + question d-i mirror/udeb/suite string + question d-i mirror/udeb/components multiselect + + question d-i clock-setup/utc boolean + question d-i time/zone string + question d-i clock-setup/ntp boolean + question d-i clock-setup/ntp-server string + + # TODO partitioning? + + question d-i base-installer/kernel/image string + question d-i passwd/root-login boolean + question d-i passwd/make-user boolean + ROOTPW="$(grep '^root:' /target/etc/shadow 2>/dev/null | head -n1 | cut -d: -f2)" + if [ -n "$ROOTPW" ] && [ "x$ROOTPW" != 'x*' ] && [ "x$ROOTPW" != 'x!' ]; then + echo "d-i passwd/root-password-crypted password $ROOTPW" >>"$OUT" + fi + ROOTPW= + if db_get passwd/make-user && [ "$RET" = true ]; then + question d-i passwd/user-fullname string + question d-i passwd/username string + if db_get passwd/username && [ -n "$RET" ]; then + USERPW="$(grep "^$RET:" /target/etc/shadow 2>/dev/null | head -n1 | cut -d: -f2)" + if [ -n "$USERPW" ] && [ "x$USERPW" != 'x*' ] && [ "x$USERPW" != 'x!' ]; then + echo "d-i passwd/user-password-crypted password $USERPW" >>"$OUT" + fi + USERPW= + fi + question d-i passwd/user-uid string + question d-i user-setup/allow-password-weak boolean + question d-i user-setup/encrypt-home boolean + question d-i passwd/user-default-groups string + fi + + question d-i apt-setup/restricted boolean + question d-i apt-setup/universe boolean + question d-i apt-setup/backports boolean + question d-i apt-setup/use_mirror boolean + question d-i 'apt-setup/services-select' multiselect + question d-i apt-setup/security_host string + question d-i apt-setup/security_path string + # TODO apt-setup/local*/{repository,comment,source,key} + question d-i debian-installer/allow_unauthenticated string + + # Tasks will be set differently during node installation. + question d-i pkgsel/upgrade select + question d-i pkgsel/language-packs multiselect + question d-i pkgsel/update-policy select + question popularity-contest popularity-contest/participate boolean + question d-i pkgsel/updatedb boolean + + question d-i grub-installer/skip boolean + question d-i lilo-installer/skip boolean + question d-i grub-installer/only_debian boolean + question d-i grub-installer/with_other_os boolean + question d-i grub-installer/bootdev string + # TODO grub password? + + question d-i finish-install/keep-consoles boolean + question d-i finish-install/reboot_in_progress note + question d-i cdrom-detect/eject boolean + question d-i debian-installer/exit/halt boolean + question d-i debian-installer/exit/poweroff boolean + + # This owner is a bit of a cheat, but it does at least mean that the + # question will be purged if all eucalyptus packages are purged. + case " $components " in + *' cluster '*) + question eucalyptus-common eucalyptus/cluster-name string + ;; + esac + + EUCA_HOME="$(chroot /target getent passwd eucalyptus | cut -f6 -d:)" + if [ "$EUCA_HOME" ] && [ "${EUCA_HOME#/}" != "$EUCA_HOME" ] && \ + [ -f "/target$EUCA_HOME/.ssh/id_rsa.pub" ]; then + PUBKEY="$(cat "/target$EUCA_HOME/.ssh/id_rsa.pub")" + i=1 + while db_get "eucalyptus/authorized-keys/$i" && [ "$RET" ]; do + echo "eucalyptus-common eucalyptus/authorized-keys/$i string $RET" >>"$OUT" + i=$(($i + 1)) + done + echo "eucalyptus-common eucalyptus/authorized-keys/$i string $PUBKEY" >>"$OUT" + fi +} + +install_parent_ssh_keys () { + # Allow SSH authentication by parent components. + EUCA_HOME="$(chroot /target getent passwd eucalyptus | cut -f6 -d:)" + if [ "$EUCA_HOME" ] && [ "${EUCA_HOME#/}" != "$EUCA_HOME" ]; then + i=1 + while db_get "eucalyptus/authorized-keys/$i" && [ "$RET" ]; do + chroot /target mkdir -m700 -p "$EUCA_HOME/.ssh" + echo "$RET" >> "/target$EUCA_HOME/.ssh/authorized_keys" + i=$(($i + 1)) + done + fi +} + +install_ssh_key () { + # Allow the component's SSH key to authenticate to itself. + EUCA_HOME="$(chroot /target getent passwd eucalyptus | cut -f6 -d:)" + if [ "$EUCA_HOME" ] && [ "${EUCA_HOME#/}" != "$EUCA_HOME" ] && \ + [ -f "/target$EUCA_HOME/.ssh/id_rsa.pub" ]; then + cat "/target$EUCA_HOME/.ssh/id_rsa.pub" \ + >>"/target/$EUCA_HOME/.ssh/authorized_keys" + fi + # Add the host's public keys to its own known_hosts + if [ -r /target/etc/ssh/ssh_host_rsa_key.pub ]; then + pubkey=$(cat /target/etc/ssh/ssh_host_rsa_key.pub) + printf "localhost %s\n" "$pubkey" >> /target/etc/ssh/ssh_known_hosts + if [ -r /target/etc/hostname ]; then + hostname=$(cat /target/etc/hostname) + printf "%s %s\n" "$hostname" "$pubkey" >> /target/etc/ssh/ssh_known_hosts + fi + fi +} + +set_conf_var () { + sed -i "s/^\\($1\\)=.*/\\1=\"$2\"/" \ + /target/etc/eucalyptus/eucalyptus.local.conf +} + +configure_interfaces () { + # Configure the public and private interfaces. + + db_get eucalyptus/public-interface + public_interface="$RET" + set_conf_var VNET_PUBINTERFACE "$public_interface" || true + + db_get eucalyptus/private-interface + private_interface="$RET" + set_conf_var VNET_PRIVINTERFACE "$private_interface" || true + + if [ "$private_interface" != "$public_interface" ]; then + cat >> /target/etc/network/interfaces <> /target/etc/network/interfaces <" + +start on (started ssh and started avahi-daemon and eucalyptus-network-is-ready) + +respawn + +script + [ -f "/var/lib/eucalyptus/.ssh/authorized_keys" ] || { stop; exit 0; } + [ -f "/etc/eucalyptus/eucalyptus-nc.conf" ] || { stop; exit 0; } + # Respawn, but not too fast + sleep 5 + . /etc/eucalyptus/eucalyptus.conf + . /etc/eucalyptus/eucalyptus.local.conf + . /etc/eucalyptus/eucalyptus-nc.conf + exec avahi-publish -s "$CC_NAME node" _eucalyptus._tcp $NC_PORT txtvers=1 protovers=1.5.0 type=node +end script --- eucalyptus-1.6.2.orig/debian/eucalyptus-cc.install +++ eucalyptus-1.6.2/debian/eucalyptus-cc.install @@ -0,0 +1,4 @@ +/usr/lib/axis2/services/EucalyptusCC +/var/lib/eucalyptus/keys/nc-client-policy.xml +debian/eucalyptus-url /usr/lib/eucalyptus +debian/registration/node /usr/share/eucalyptus/registration --- eucalyptus-1.6.2.orig/debian/preseed.xml +++ eucalyptus-1.6.2/debian/preseed.xml @@ -0,0 +1,8 @@ + + /preseed + /etc/eucalyptus/preseed/ + + org.mortbay.jetty.servlet.DefaultServlet + / + + --- eucalyptus-1.6.2.orig/debian/eucalyptus-common.eucalyptus.upstart +++ eucalyptus-1.6.2/debian/eucalyptus-common.eucalyptus.upstart @@ -0,0 +1,89 @@ +# eucalyptus + +description "Eucalyptus web services" +author "Matt Zimmerman , Dustin Kirkland " + +start on eucalyptus-network-is-ready +stop on runlevel [!2345] + +export CLEAN + +pre-start script + # Check if installed + [ -f /usr/sbin/euca_conf ] || { stop; exit 0; } + + # Ensure that the iptables module gets loaded here + iptables -t nat -L -n >/dev/null + iptables -L -n > /dev/null + + mkdir -p /var/run/eucalyptus/net + chown eucalyptus:eucalyptus /var/run/eucalyptus /var/run/eucalyptus/net + + . /etc/eucalyptus/eucalyptus.conf + . /etc/eucalyptus/eucalyptus.local.conf + + if [ "$EUCALYPTUS" = "not_configured" ]; then + echo "Eucalyptus is not configured yet" + exit 1 + fi + # Several components of Eucalyptus (NC, SC) need more loop devices + # than the arbitrarily low Ubuntu default of 8 + for i in $(seq 0 31); do + [ -b /dev/loop$i ] || (mknod -m 660 /dev/loop$i b 7 $i && chown root:disk /dev/loop$i) + done +end script + +script + . /etc/eucalyptus/eucalyptus.conf + + opts="-h $EUCALYPTUS -u $EUCA_USER --pidfile /var/run/eucalyptus/eucalyptus.pid -l $LOGLEVEL -L console-log" + services="" + + # If the -cloud package is not installed, disable the cloud service + if [ ! -f /usr/share/eucalyptus/eucalyptus-cloud-1.6.2.jar ]; then + opts="$opts --disable-cloud" + else + services="$services cloud" + fi + + # If the -walrus package is not installed, disable the walrus service + if [ ! -f /usr/share/eucalyptus/eucalyptus-walrus-1.6.2.jar ]; then + opts="$opts --disable-walrus" + else + services="$services walrus" + fi + + # If the -sc package is not installed, disable the storage controller + # service + if [ ! -f /usr/share/eucalyptus/eucalyptus-storagecontroller-1.6.2.jar ]; then + opts="$opts --disable-storage" + else + services="$services sc" + fi + + # handle eucalyptus.conf options + if [ "$DISABLE_DNS" = "Y" ]; then + opts="$opts --remote-dns" + fi + if [ "$DISABLE_EBS" = "Y" ]; then + opts="$opts --disable-ebs" + fi + + # Start the appropriate service(s) + if [ -n "$services" ]; then + # Cloud services to run + exec eucalyptus-cloud $opts + elif [ -r "/etc/init/eucalyptus-nc.conf" ] || [ -r "/etc/init/eucalyptus-cc.conf" ]; then + # Node or CC services to run + # Why do we sleep here, rather than emitting a signal? Such that we can run: + # 'status eucalyptus' and see if the eucalyptus services are running. + # Actually, "status eucalyptus" on the NC won't work until Upstart Bug #447654 + # gets fixed. Sorry. + exec sleep 999999999d + fi + + # If we're here, then we're not actually running any eucalyptus services + stop + exit 0 + +end script --- eucalyptus-1.6.2.orig/debian/eucalyptus-cc.templates +++ eucalyptus-1.6.2/debian/eucalyptus-cc.templates @@ -0,0 +1,83 @@ +Template: eucalyptus/cluster-name +Type: string +Default: cluster1 +_Description: Eucalyptus cluster name: + Enter a name for this cluster. The name should contain only ASCII letters, + digits, hyphens, and underscores. It will be shown to users as the name of + an availability zone. + +Template: eucalyptus/subnet +Type: string +Default: 172.19.0.0 +Description: Choose a subnet for your UEC instances: + The subnet should be set to an IP subnet that is free for eucalyptus to use + (i.e. no other system connected to your network directly is configured with + addresses from this subnet). + . + Examples: 192.168.144.0, 172.17.0.0, 10.0.0.0 + +Template: eucalyptus/netmask +Type: string +Default: 255.255.0.0 +Description: Choose a netmask for your UEC instances: + The netmask of subnet you specified. + . + Examples: 255.255.255.0, 255.255.240.0, 255.255.0.0 + +Template: eucalyptus/dns +Type: string +Default: 192.168.144.0 +Description: Choose a DNS for your UEC instances: + The DNS should be set to the IP address of a DNS server that your systems use + (usually safe to use the same DNS that is configured on the front-end). + +Template: eucalyptus/publicips +Type: string +Default: +Description: Provide a list of "public" IP's for your instances: + Eucalyptus requires a pool of IP addresses that can be dynamically assigned as + the "public" IPs of virtual machines. These IPs must be unused within their + Class C subnet, this system must have an interface configured with an address + on this subnet, and your prospective users must be able to connect to these + IPs from wherever they run the client tools. + . + Please specify one or more ranges of IP addresses, e.g.: + 192.168.1.100-192.168.1.199 + or + 192.168.2.50-192.168.2.99 192.168.2.150-192.168.2.199 + . + You may leave this blank if you have no IP addresses available, BUT you and + your users must then request the private addressing scheme when starting a + virtual machine instance. For ec2-run-instances and euca-run-instances, this + is done with the option "--addressing private". + +Template: eucalyptus/addrspernet +Type: string +Default: 32 +Description: Choose number of addresses per network/security group: + The number of addresses can be used to limit the number of instances that can + be attached to each named security group simultaneously. + +Template: eucalyptus/mode +Type: select +Default: MANAGED-NOVLAN +Choices: STATIC, SYSTEM, MANAGED, MANAGED-NOVLAN +Description: Networking mode for your cluster: + MANAGED and MANAGED-NOVLAN configure eucalyptus to fully manage + the VM networks, and enables the ability to use EBS, security groups + and dynamic public IP assignment (with and without vlan tagging of + security group networks, respectively). + . + In STATIC mode, you can manually configure a set of IP addresses that will be + allocated to VMs at boot time in a first come, first served manner. + . + If you would like UEC to not manage the VM network at all, choose SYSTEM. In + this mode, VM interfaces are attached directly to your physical ethernet by + way of a bridge, at which point they will typically invoke a DHCP client to + aquire an IP address. Use this mode if you wish to manage VM IPs yourself, or + allow the VMs to pick up an IP from a non-UEC managed DHCP server. + +Template: eucalyptus/cloud-address +Type: string +Description: Cloud controller address: + The IP address of the cloud controller, which should be preseeded in most cases --- eucalyptus-1.6.2.orig/debian/eucalyptus-cc.upstart +++ eucalyptus-1.6.2/debian/eucalyptus-cc.upstart @@ -0,0 +1,101 @@ +# eucalyptus-cc + +description "Eucalyptus cluster controller" +author "Matt Zimmerman " + +start on started eucalyptus +stop on stopping eucalyptus + +# These must be set in the apache2 environment -mdz +env HTTPD_CONF=/var/run/eucalyptus/httpd-cc.conf +env EUCALYPTUS=/ +env AXIS2C_HOME=/etc/eucalyptus/axis2 + +pre-start script + # clean up semaphores + rm -f /dev/shm/*eucalyptusCC* + [ "${CLEAN}" = 1 ] && rm -f /var/lib/eucalyptus/CC/* + + # Enable IP forwarding + sysctl -w net.ipv4.ip_forward=1 + + mkdir -p /var/run/eucalyptus/net + chown eucalyptus:eucalyptus /var/run/eucalyptus /var/run/eucalyptus/net + + . /etc/eucalyptus/eucalyptus.conf + . /etc/eucalyptus/eucalyptus.local.conf + + # Generate httpd.conf + AXIS2C_HOME=/etc/eucalyptus/axis2 + ALLOWED_IPS="all" + HTTPD_HOME="/" + tmp=$(tempfile) + + # let's configure the common parts for both CC and NC + cat $EUCALYPTUS/etc/eucalyptus/httpd.conf |sed "s|EUCALYPTUS|$EUCALYPTUS|"|sed "s|AXIS2C_HOME|$AXIS2C_HOME|"|sed "s|\(ServerRoot\).*|\1 "$HTTPD_HOME"|" |sed "s|EUCA_USER|$EUCA_USER|" >> $tmp + + # if we find authz load it (needed by ubuntu) + if [ -e $HTTPD_HOME/usr/lib/apache2/modules/mod_authz_host.so ]; then + echo "LoadModule authz_host_module /usr/lib/apache2/modules/mod_authz_host.so" >> $tmp + fi + + # let's configure the CC + cat $tmp |sed "s|\(Listen\).*|\1 $CC_PORT|"|sed "s|\(PidFile\).*|\1 $EUCALYPTUS/var/run/eucalyptus/eucalyptus-cc.pid|"|sed "s|\(Allow from\).*|\1 $ALLOWED_IPS|"|sed "s|\(ErrorLog\).*|\1 $EUCALYPTUS/var/log/eucalyptus/httpd-cc_error_log|"|sed "s|\(StartServers\).*|\1 5|"|sed "s|\(MinSpareServers\).*|\1 5|"|sed "s|\(MaxSpareServers\).*|\1 10|"|sed "s|\(MaxClients\).*|\1 8|" |sed "s|\(MinSpareThreads\).*|\1 25|" | sed "s|\(MaxSpareThreads\).*|\1 75|" | sed "s|\(ThreadsPerChild\).*|\1 1|" | sed "s|\(ThreadLimit\).*|\1 64|" > $HTTPD_CONF + + cat >>$HTTPD_CONF < + Order allow,deny + Allow from all + +EOF + +end script + +exec apache2 -f /var/run/eucalyptus/httpd-cc.conf -D FOREGROUND + +post-start script + timeout=60 + while [ $timeout -gt 0 ]; do + . /etc/eucalyptus/eucalyptus-ipaddr.conf + if wget -q -T10 -t1 -O- http://$CC_IP_ADDR:8774/axis2/services/ | \ + grep EucalyptusCC; then + + # It's alive! Start uec-component-listener if no CLC + if [ ! -f /usr/share/eucalyptus/eucalyptus-cloud-1.6.2.jar ]; then + initctl start uec-component-listener + fi + exit 0 + fi + sleep 2 + timeout=$(($timeout-1)) + done + stop + exit 1 +end script + +post-stop script + # clean up semaphores + rm -f /dev/shm/*eucalyptusCC* + [ "${CLEAN}" = 1 ] && rm -f /var/lib/eucalyptus/CC/* + + # kill vtund processes + for pidfile in /var/run/eucalyptus/vtund*.pid \ + /var/run/eucalyptus/net/euca-dhcp.pid; do + + if [ -s $pidfile ]; then + pid=$(cat $pidfile) + timeout=5 + while [ $timeout -gt 0 ] && ps $pid >/dev/null; do + kill $pid + sleep 1 + timeout=$(($timeout-1)) + done + fi + done + + rm -f /var/lib/eucalyptus/CC/* +end script --- eucalyptus-1.6.2.orig/debian/eucalyptus-walrus.upstart +++ eucalyptus-1.6.2/debian/eucalyptus-walrus.upstart @@ -0,0 +1,25 @@ +# eucalyptus-walrus + +description "Eucalyptus walrus" +author "Matt Zimmerman " + +start on started eucalyptus +stop on stopping eucalyptus + +post-start script + timeout=60 + while [ $timeout -gt 0 ]; do + . /etc/eucalyptus/eucalyptus-ipaddr.conf + if wget -q -T10 -t1 -O- \ + http://$WALRUS_IP_ADDR:8773/services/Heartbeat | \ + grep "^name=walrus.*enabled=true"; then + + # It's alive! + exit 0 + fi + sleep 2 + timeout=$(($timeout-1)) + done + stop + exit 1 +end script --- eucalyptus-1.6.2.orig/debian/eucalyptus.conf +++ eucalyptus-1.6.2/debian/eucalyptus.conf @@ -0,0 +1,60 @@ +# /etc/eucalyptus/eucalyptus.conf +# +# These are the Ubuntu Enterprise Cloud's default Eucalyptus parameters. + +# Affects: All +# See: **NOTE** below +EUCALYPTUS="/" +EUCA_USER="eucalyptus" + +# Affects: CLC, Walrus, SC +DISABLE_DNS="Y" +DISABLE_ISCSI="Y" + +# Affects: CC, NC +# See: **NOTE** below +ENABLE_WS_SECURITY="Y" +LOGLEVEL="DEBUG" +VNET_PUBINTERFACE="eth0" +VNET_PRIVINTERFACE="eth0" +VNET_MODE="MANAGED-NOVLAN" + +# Affects: CC +# See: **NOTE** below +CC_PORT="8774" +SCHEDPOLICY="ROUNDROBIN" +POWER_IDLETHRESH="300" +POWER_WAKETHRESH="300" +NC_SERVICE="axis2/services/EucalyptusNC" +VNET_DHCPDAEMON="/usr/sbin/dhcpd3" +VNET_DHCPUSER="dhcpd" +NODES="" +VNET_ADDRSPERNET="32" +#VNET_SUBNET="" +#VNET_NETMASK="" +#VNET_DNS="" +#VNET_PUBLICIPS="" + +# Affects: NC +NC_PORT="8775" +HYPERVISOR="kvm" +MANUAL_INSTANCES_CLEANUP=0 +VNET_BRIDGE="br0" +INSTANCE_PATH="/var/lib/eucalyptus/instances/" + + +########################################################################## +# +# Administrative overrides and customizations may go below, in accordance +# with the manpage for eucalyptus.conf(5). +# +# However, to modify Eucalyptus parameters, you are advised to use +# euca_conf(8), which will update eucalyptus.local.conf(5) and ensure +# smooth package upgrades. +# +# **NOTE**: To activate changes of these parameters on a CC, you must: +# sudo restart eucalyptus-cc CLEAN=1 +# HOWEVER, if you do this, all currently running virtual +# machines in this cluster will lose network connectivity. +# +########################################################################## --- eucalyptus-1.6.2.orig/debian/control +++ eucalyptus-1.6.2/debian/control @@ -0,0 +1,315 @@ +Source: eucalyptus +Section: admin +Priority: extra +Maintainer: Ubuntu Developers +Build-Depends: + ant, + ant-optional, + cdbs, + debhelper (>= 7), + default-jdk, + groovy, + junit, + libantlr-java, + libavahi-core-dev, + libavahi-client-dev, + libaxiom-java, + libaxis2c-dev, + libbackport-util-concurrent-java, + libbcprov-java, + libcap-dev, + libcommons-fileupload-java, + libcommons-httpclient-java, + libcommons-io-java, + libcommons-lang-java, + libcommons-pool-java (>= 1.4), + libcurl4-gnutls-dev, + libdebian-installer-dev, + libdnsjava-java, + libdrools-core-java, + libecj-java, + libeucalyptus-commons-ext-java (>= 0.5.0), + libgeronimo-j2ee-connector-1.5-spec-java, + libgeronimo-jpa-3.0-spec-java, + libgnumail-java, + libgoogle-collections-java, + libgwt-dev-java, + libgwt-user-java, + libhsqldb-java, + libjaxp1.3-java, + libjetty-java, + libjibx-java (>= 1.1.6a), + libjson-java, + liblog4j1.2-java, + libnetty-java, + librampart-dev (>=1.3.0-0ubuntu6), + libservlet2.5-java, + libssl-dev, + libvirt-dev, + libwsdl4j-java, + libwss4j-java, + libxalan2-java, + libxerces2-java, + libxml-security-java (>= 1.4.2-1ubuntu1), + pkg-config, + quilt, + zlib1g-dev +Standards-Version: 3.8.3 +Homepage: http://eucalyptus.cs.ucsb.edu/ +Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-core-dev/eucalyptus/ubuntu + +Package: eucalyptus-common +Architecture: any +Depends: + ${shlibs:Depends}, + ${misc:Depends}, + adduser, + openssh-server (>= 1:5.2p1-1ubuntu1), + openssh-client, + avahi-utils, + python +Recommends: + unzip +Description: Elastic Utility Computing Architecture - Common files + EUCALYPTUS is an open source service overlay that implements elastic + computing using existing resources. The goal of EUCALYPTUS is to allow + sites with existing clusters and server infrastructure to co-host an + elastic computing service that is interface-compatible with Amazon's EC2. + . + This package contains the common parts: you will need to install either + eucalyptus-cloud, eucalyptus-cc or eucalyptus-nc (or all of them). + +Package: eucalyptus-sc +Architecture: any +Depends: + ${shlibs:Depends}, + ${misc:Depends}, + eucalyptus-common, + eucalyptus-java-common +Suggests: aoetools +Description: Elastic Utility Computing Architecture - Storage controller + EUCALYPTUS is an open source service overlay that implements elastic + computing using existing resources. The goal of EUCALYPTUS is to allow + sites with existing clusters and server infrastructure to co-host an + elastic computing service that is interface-compatible with Amazon's EC2. + . + This package contains the storage controller part of eucalyptus. + +Package: eucalyptus-cloud +Architecture: any +Depends: + ${shlibs:Depends}, + ${misc:Depends}, + eucalyptus-common, + uec-component-listener, + eucalyptus-java-common +Recommends: + python-image-store-proxy, + postfix | mail-transport-agent +Replaces: + eucalyptus-cc (<= 1.6~bzr919-0ubuntu3), + eucalyptus-sc (<= 1.6~bzr919-0ubuntu3), + eucalyptus-walrus (<= 1.6~bzr919-0ubuntu3) +Description: Elastic Utility Computing Architecture - Cloud controller + EUCALYPTUS is an open source service overlay that implements elastic + computing using existing resources. The goal of EUCALYPTUS is to allow + sites with existing clusters and server infrastructure to co-host an + elastic computing service that is interface-compatible with Amazon's EC2. + . + This package contains the cloud controller part of eucalyptus. + +Package: eucalyptus-walrus +Architecture: any +Depends: + ${shlibs:Depends}, + ${misc:Depends}, + eucalyptus-common, + eucalyptus-java-common +Description: Elastic Utility Computing Architecture - Walrus (S3) + EUCALYPTUS is an open source service overlay that implements elastic + computing using existing resources. The goal of EUCALYPTUS is to allow + sites with existing clusters and server infrastructure to co-host an + elastic computing service that is interface-compatible with Amazon's EC2. + . + This package contains Walrus, the S3 part of eucalyptus. + +Package: eucalyptus-java-common +Architecture: any +Depends: + ${misc:Depends}, + ${shlibs:Depends}, + antlr3, + default-jre-headless | java5-runtime-headless, + dmsetup, + eucalyptus-common, + groovy, + janino, + junit, + libantlr-java, + libasm2-java, + libaxiom-java, + libbackport-util-concurrent-java, + libbcel-java, + libbcprov-java, + libbsf-java, + libc3p0-java, + libcglib-java, + libcommons-beanutils-java, + libcommons-cli-java, + libcommons-codec-java, + libcommons-collections3-java, + libcommons-discovery-java, + libcommons-fileupload-java, + libcommons-httpclient-java, + libcommons-io-java, + libcommons-jxpath-java, + libcommons-lang-java, + libcommons-logging-java, + libcommons-pool-java (>= 1.4), + libdnsjava-java, + libdom4j-java, + libdrools-core-java, + libecj-java, + libeucalyptus-commons-ext-java (>= 0.5.0), + libexcalibur-logkit-java, + libezmorph-java, + libgeronimo-ejb-3.0-spec-java, + libgeronimo-interceptor-3.0-spec-java, + libgeronimo-j2ee-connector-1.5-spec-java, + libgeronimo-jacc-1.1-spec-java, + libgeronimo-jms-1.1-spec-java, + libgeronimo-jpa-3.0-spec-java, + libgeronimo-jta-1.0.1b-spec-java, + libgnujaf-java, + libgnumail-java, + libgoogle-collections-java, + libgwt-user-java, + libhsqldb-java, + libjavassist-java, + libjaxen-java, + libjaxp1.3-java, + libjetty-java, + libjibx-java (>= 1.1.6a), + libjson-java, + libjug-java, + liblog4j1.2-java, + libmvel-java, + libnetty-java, + libproxool-java, + libregexp-java, + libservlet2.5-java, + libslf4j-java, + libwoodstox-java, + libwsdl4j-java, + libwss4j-java, + libxalan2-java, + libxerces2-java, + libxml-security-java (>= 1.4.2-1ubuntu1), + libxom-java, + libxpp3-java, + lvm2, + openssh-server, + vblade +Replaces: + eucalyptus-javadeps, + eucalyptus-cloud (<= 1.6.2~bzr1120-0ubuntu2), + eucalyptus-common +Description: Elastic Utility Computing Architecture - Common Java package + EUCALYPTUS is an open source service overlay that implements elastic + computing using existing resources. The goal of EUCALYPTUS is to allow + sites with existing clusters and server infrastructure to co-host an + elastic computing service that is interface-compatible with Amazon's EC2. + . + This package contains everything the java based packages share. + +Package: eucalyptus-cc +Architecture: any +Depends: + ${shlibs:Depends}, + ${misc:Depends}, + eucalyptus-common, + apache2, + libapache2-mod-axis2c, + eucalyptus-gl, + uec-component-listener, + wget +Recommends: + bridge-utils, + vlan, + powerwake, + dhcp3-server, + libpam-modules (>= 1.0.1-9ubuntu3) +Suggests: vtun +Conflicts: apache2-mpm-itk +Description: Elastic Utility Computing Architecture - Cluster controller + EUCALYPTUS is an open source service overlay that implements elastic + computing using existing resources. The goal of EUCALYPTUS is to allow + sites with existing clusters and server infrastructure to co-host an + elastic computing service that is interface-compatible with Amazon's EC2. + . + This package contains the cluster controller part of eucalyptus. + +Package: eucalyptus-nc +Architecture: any +Depends: + ${shlibs:Depends}, + ${misc:Depends}, + eucalyptus-common, + apache2-mpm-worker | apache2-mpm-prefork, + libvirt-bin (>= 0.7.2-4ubuntu5), + libapache2-mod-axis2c, + eucalyptus-gl, + adduser, + iptables +Suggests: aoetools +Recommends: + kvm, + vlan, + bridge-utils, + powernap +Conflicts: apache2-mpm-itk +Description: Elastic Utility Computing Architecture - Node controller + EUCALYPTUS is an open source service overlay that implements elastic + computing using existing resources. The goal of EUCALYPTUS is to allow + sites with existing clusters and server infrastructure to co-host an + elastic computing service that is interface-compatible with Amazon's EC2. + . + This package contains the node controller part of eucalyptus. + +Package: eucalyptus-gl +Architecture: any +Depends: + ${shlibs:Depends}, + ${misc:Depends}, + eucalyptus-common +Description: Elastic Utility Computing Architecture - Logging service + EUCALYPTUS is an open source service overlay that implements elastic + computing using existing resources. The goal of EUCALYPTUS is to allow + sites with existing clusters and server infrastructure to co-host an + elastic computing service that is interface-compatible with Amazon's EC2. + . + This package contains the internal log service of eucalyptus. + +Package: uec-component-listener +Architecture: any +Depends: + eucalyptus-common, + avahi-daemon, + ${shlibs:Depends}, + ${misc:Depends} +Description: Ubuntu Enterprise Cloud - Component listener + This package contains the component listener that is used to automatically + register new UEC components. + +Package: eucalyptus-udeb +XC-Package-Type: udeb +Section: debian-installer +Architecture: any +Depends: + ${shlibs:Depends}, + ${misc:Depends}, + configured-network, + wget-udeb +# after netcfg +XB-Installer-Menu-Item: 1850 +Description: Elastic Utility Computing Architecture - installer integration --- eucalyptus-1.6.2.orig/debian/build-jars +++ eucalyptus-1.6.2/debian/build-jars @@ -0,0 +1,44 @@ +/usr/share/java/commons-collections3.jar +/usr/share/java/geronimo-j2ee-connector-1.5-spec.jar +/usr/share/java/commons-codec.jar +/usr/share/java/commons-io.jar +/usr/share/java/jetty-util.jar +/usr/share/java/hsqldb.jar +/usr/share/java/jibx-bind.jar +/usr/share/java/backport-util-concurrent.jar +/usr/share/java/asm2.jar +/usr/share/java/antlr.jar +/usr/share/java/axiom-api.jar +/usr/share/java/axiom-dom.jar +/usr/share/java/axiom-impl.jar +/usr/share/java/bcprov.jar +/usr/share/java/commons-fileupload.jar +/usr/share/java/commons-httpclient.jar +/usr/share/java/commons-lang.jar +/usr/share/java/commons-pool.jar +/usr/share/java/commons-cli.jar +/usr/share/java/dnsjava.jar +/usr/share/java/drools-core.jar +/usr/share/java/drools-compiler.jar +/usr/share/eucalyptus/eucalyptus-commons-ext-0.4.jar +/usr/share/java/gnumail.jar +/usr/share/java/geronimo-jpa-3.0-spec.jar +/usr/share/java/google-collect.jar +/usr/share/java/groovy.jar +/usr/share/java/gwt-servlet.jar +/usr/share/java/gwt-user.jar +/usr/share/java/jaxp-1.3.jar +/usr/share/java/jetty.jar +/usr/share/java/jibx-run.jar +/usr/share/java/json-lib.jar +/usr/share/java/junit.jar +/usr/share/java/log4j-1.2.jar +/usr/share/java/netty.jar +/usr/share/java/servlet-api-2.5.jar +/usr/share/java/wss4j.jar +/usr/share/java/xalan2.jar +/usr/share/java/xercesImpl.jar +/usr/share/java/xml-security.jar +/usr/share/java/gwt-dev-linux.jar +/usr/share/java/ecj.jar +/usr/share/java/ant.jar --- eucalyptus-1.6.2.orig/debian/eucalyptus-walrus.postrm +++ eucalyptus-1.6.2/debian/eucalyptus-walrus.postrm @@ -0,0 +1,10 @@ +#!/bin/sh -e + +case "$1" in +purge) + rm -rf /var/log/eucalyptus/walrus-stats.log* \ + /var/lib/eucalyptus/bukkits + ;; +esac + +#DEBHELPER# --- eucalyptus-1.6.2.orig/debian/patches/01-wsdl-stubs.patch +++ eucalyptus-1.6.2/debian/patches/01-wsdl-stubs.patch @@ -0,0 +1,324717 @@ +=== added directory 'cluster/generated' +=== added file 'cluster/generated/adb_AssignAddress.c' +--- old/cluster/generated/adb_AssignAddress.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_AssignAddress.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_AssignAddress.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_AssignAddress.h" ++ ++ /* ++ * implmentation of the AssignAddress|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_AssignAddress ++ { ++ ++ axutil_qname_t* qname; ++ adb_assignAddressType_t* property_AssignAddress; ++ ++ ++ axis2_bool_t is_valid_AssignAddress; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_AssignAddress_t* AXIS2_CALL ++ adb_AssignAddress_create( ++ const axutil_env_t *env) ++ { ++ adb_AssignAddress_t *_AssignAddress = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _AssignAddress = (adb_AssignAddress_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_AssignAddress_t)); ++ ++ if(NULL == _AssignAddress) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_AssignAddress, 0, sizeof(adb_AssignAddress_t)); ++ ++ _AssignAddress->property_AssignAddress = NULL; ++ _AssignAddress->is_valid_AssignAddress = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "AssignAddress", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _AssignAddress->qname = qname; ++ ++ ++ return _AssignAddress; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_AssignAddress_free ( ++ adb_AssignAddress_t* _AssignAddress, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _AssignAddress, AXIS2_FAILURE); ++ ++ adb_AssignAddress_reset_AssignAddress(_AssignAddress, env); ++ ++ if(_AssignAddress->qname) ++ { ++ axutil_qname_free (_AssignAddress->qname, env); ++ _AssignAddress->qname = NULL; ++ } ++ ++ ++ if(_AssignAddress) ++ { ++ AXIS2_FREE(env->allocator, _AssignAddress); ++ _AssignAddress = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_AssignAddress_deserialize( ++ adb_AssignAddress_t* _AssignAddress, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _AssignAddress, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for AssignAddress : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _AssignAddress-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for AssignAddress : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_AssignAddress-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building AssignAddress element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "AssignAddress", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_assignAddressType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_assignAddressType_create(env); ++ ++ status = adb_assignAddressType_deserialize((adb_assignAddressType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element AssignAddress"); ++ } ++ else ++ { ++ status = adb_AssignAddress_set_AssignAddress(_AssignAddress, env, ++ (adb_assignAddressType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for AssignAddress "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element AssignAddress missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_AssignAddress_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_AssignAddress_declare_parent_namespaces( ++ adb_AssignAddress_t* _AssignAddress, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_AssignAddress_serialize( ++ adb_AssignAddress_t* _AssignAddress, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _AssignAddress, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "AssignAddress", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_AssignAddress->is_valid_AssignAddress) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("AssignAddress") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sAssignAddress xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("AssignAddress"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("AssignAddress"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing AssignAddress element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sAssignAddress", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_assignAddressType_serialize(_AssignAddress->property_AssignAddress, ++ env, current_node, parent_element, ++ adb_assignAddressType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for AssignAddress. ++ */ ++ adb_assignAddressType_t* AXIS2_CALL ++ adb_AssignAddress_get_AssignAddress( ++ adb_AssignAddress_t* _AssignAddress, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _AssignAddress, NULL); ++ ++ ++ return _AssignAddress->property_AssignAddress; ++ } ++ ++ /** ++ * setter for AssignAddress ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AssignAddress_set_AssignAddress( ++ adb_AssignAddress_t* _AssignAddress, ++ const axutil_env_t *env, ++ adb_assignAddressType_t* arg_AssignAddress) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _AssignAddress, AXIS2_FAILURE); ++ ++ if(_AssignAddress->is_valid_AssignAddress && ++ arg_AssignAddress == _AssignAddress->property_AssignAddress) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_AssignAddress_reset_AssignAddress(_AssignAddress, env); ++ ++ ++ if(NULL == arg_AssignAddress) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _AssignAddress->property_AssignAddress = arg_AssignAddress; ++ _AssignAddress->is_valid_AssignAddress = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for AssignAddress ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AssignAddress_reset_AssignAddress( ++ adb_AssignAddress_t* _AssignAddress, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _AssignAddress, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_AssignAddress->property_AssignAddress != NULL) ++ { ++ ++ ++ adb_assignAddressType_free(_AssignAddress->property_AssignAddress, env); ++ _AssignAddress->property_AssignAddress = NULL; ++ } ++ ++ ++ ++ _AssignAddress->is_valid_AssignAddress = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether AssignAddress is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_AssignAddress_is_AssignAddress_nil( ++ adb_AssignAddress_t* _AssignAddress, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _AssignAddress, AXIS2_TRUE); ++ ++ return !_AssignAddress->is_valid_AssignAddress; ++ } ++ ++ /** ++ * Set AssignAddress to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AssignAddress_set_AssignAddress_nil( ++ adb_AssignAddress_t* _AssignAddress, ++ const axutil_env_t *env) ++ { ++ return adb_AssignAddress_reset_AssignAddress(_AssignAddress, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_AssignAddress.h' +--- old/cluster/generated/adb_AssignAddress.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_AssignAddress.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_ASSIGNADDRESS_H ++ #define ADB_ASSIGNADDRESS_H ++ ++ /** ++ * adb_AssignAddress.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_AssignAddress class ++ */ ++ typedef struct adb_AssignAddress adb_AssignAddress_t; ++ ++ ++ #include "adb_assignAddressType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_AssignAddress_t ++ * @param env pointer to environment struct ++ * @return newly created adb_AssignAddress_t object ++ */ ++ adb_AssignAddress_t* AXIS2_CALL ++ adb_AssignAddress_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_AssignAddress_t object ++ * @param _AssignAddress adb_AssignAddress_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AssignAddress_free ( ++ adb_AssignAddress_t* _AssignAddress, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for AssignAddress. ++ * @param _AssignAddress adb_AssignAddress_t object ++ * @param env pointer to environment struct ++ * @return adb_assignAddressType_t* ++ */ ++ adb_assignAddressType_t* AXIS2_CALL ++ adb_AssignAddress_get_AssignAddress( ++ adb_AssignAddress_t* _AssignAddress, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for AssignAddress. ++ * @param _AssignAddress adb_AssignAddress_t object ++ * @param env pointer to environment struct ++ * @param arg_AssignAddress adb_assignAddressType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AssignAddress_set_AssignAddress( ++ adb_AssignAddress_t* _AssignAddress, ++ const axutil_env_t *env, ++ adb_assignAddressType_t* arg_AssignAddress); ++ ++ /** ++ * Resetter for AssignAddress ++ * @param _AssignAddress adb_AssignAddress_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AssignAddress_reset_AssignAddress( ++ adb_AssignAddress_t* _AssignAddress, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether AssignAddress is nill ++ * @param _AssignAddress adb_AssignAddress_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_AssignAddress_is_AssignAddress_nil( ++ adb_AssignAddress_t* _AssignAddress, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set AssignAddress to nill (currently the same as reset) ++ * @param _AssignAddress adb_AssignAddress_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AssignAddress_set_AssignAddress_nil( ++ adb_AssignAddress_t* _AssignAddress, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _AssignAddress adb_AssignAddress_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AssignAddress_deserialize( ++ adb_AssignAddress_t* _AssignAddress, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _AssignAddress adb_AssignAddress_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_AssignAddress_declare_parent_namespaces( ++ adb_AssignAddress_t* _AssignAddress, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _AssignAddress adb_AssignAddress_t object ++ * @param env pointer to environment struct ++ * @param AssignAddress_om_node node to serialize from ++ * @param AssignAddress_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_AssignAddress_serialize( ++ adb_AssignAddress_t* _AssignAddress, ++ const axutil_env_t *env, ++ axiom_node_t* AssignAddress_om_node, axiom_element_t *AssignAddress_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_AssignAddress is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_AssignAddress_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_ASSIGNADDRESS_H */ ++ ++ + +=== added file 'cluster/generated/adb_AssignAddressResponse.c' +--- old/cluster/generated/adb_AssignAddressResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_AssignAddressResponse.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_AssignAddressResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_AssignAddressResponse.h" ++ ++ /* ++ * implmentation of the AssignAddressResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_AssignAddressResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_assignAddressResponseType_t* property_AssignAddressResponse; ++ ++ ++ axis2_bool_t is_valid_AssignAddressResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_AssignAddressResponse_t* AXIS2_CALL ++ adb_AssignAddressResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_AssignAddressResponse_t *_AssignAddressResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _AssignAddressResponse = (adb_AssignAddressResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_AssignAddressResponse_t)); ++ ++ if(NULL == _AssignAddressResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_AssignAddressResponse, 0, sizeof(adb_AssignAddressResponse_t)); ++ ++ _AssignAddressResponse->property_AssignAddressResponse = NULL; ++ _AssignAddressResponse->is_valid_AssignAddressResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "AssignAddressResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _AssignAddressResponse->qname = qname; ++ ++ ++ return _AssignAddressResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_AssignAddressResponse_free ( ++ adb_AssignAddressResponse_t* _AssignAddressResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _AssignAddressResponse, AXIS2_FAILURE); ++ ++ adb_AssignAddressResponse_reset_AssignAddressResponse(_AssignAddressResponse, env); ++ ++ if(_AssignAddressResponse->qname) ++ { ++ axutil_qname_free (_AssignAddressResponse->qname, env); ++ _AssignAddressResponse->qname = NULL; ++ } ++ ++ ++ if(_AssignAddressResponse) ++ { ++ AXIS2_FREE(env->allocator, _AssignAddressResponse); ++ _AssignAddressResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_AssignAddressResponse_deserialize( ++ adb_AssignAddressResponse_t* _AssignAddressResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _AssignAddressResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for AssignAddressResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _AssignAddressResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for AssignAddressResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_AssignAddressResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building AssignAddressResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "AssignAddressResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_assignAddressResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_assignAddressResponseType_create(env); ++ ++ status = adb_assignAddressResponseType_deserialize((adb_assignAddressResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element AssignAddressResponse"); ++ } ++ else ++ { ++ status = adb_AssignAddressResponse_set_AssignAddressResponse(_AssignAddressResponse, env, ++ (adb_assignAddressResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for AssignAddressResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element AssignAddressResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_AssignAddressResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_AssignAddressResponse_declare_parent_namespaces( ++ adb_AssignAddressResponse_t* _AssignAddressResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_AssignAddressResponse_serialize( ++ adb_AssignAddressResponse_t* _AssignAddressResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _AssignAddressResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "AssignAddressResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_AssignAddressResponse->is_valid_AssignAddressResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("AssignAddressResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sAssignAddressResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("AssignAddressResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("AssignAddressResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing AssignAddressResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sAssignAddressResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_assignAddressResponseType_serialize(_AssignAddressResponse->property_AssignAddressResponse, ++ env, current_node, parent_element, ++ adb_assignAddressResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for AssignAddressResponse. ++ */ ++ adb_assignAddressResponseType_t* AXIS2_CALL ++ adb_AssignAddressResponse_get_AssignAddressResponse( ++ adb_AssignAddressResponse_t* _AssignAddressResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _AssignAddressResponse, NULL); ++ ++ ++ return _AssignAddressResponse->property_AssignAddressResponse; ++ } ++ ++ /** ++ * setter for AssignAddressResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AssignAddressResponse_set_AssignAddressResponse( ++ adb_AssignAddressResponse_t* _AssignAddressResponse, ++ const axutil_env_t *env, ++ adb_assignAddressResponseType_t* arg_AssignAddressResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _AssignAddressResponse, AXIS2_FAILURE); ++ ++ if(_AssignAddressResponse->is_valid_AssignAddressResponse && ++ arg_AssignAddressResponse == _AssignAddressResponse->property_AssignAddressResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_AssignAddressResponse_reset_AssignAddressResponse(_AssignAddressResponse, env); ++ ++ ++ if(NULL == arg_AssignAddressResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _AssignAddressResponse->property_AssignAddressResponse = arg_AssignAddressResponse; ++ _AssignAddressResponse->is_valid_AssignAddressResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for AssignAddressResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AssignAddressResponse_reset_AssignAddressResponse( ++ adb_AssignAddressResponse_t* _AssignAddressResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _AssignAddressResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_AssignAddressResponse->property_AssignAddressResponse != NULL) ++ { ++ ++ ++ adb_assignAddressResponseType_free(_AssignAddressResponse->property_AssignAddressResponse, env); ++ _AssignAddressResponse->property_AssignAddressResponse = NULL; ++ } ++ ++ ++ ++ _AssignAddressResponse->is_valid_AssignAddressResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether AssignAddressResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_AssignAddressResponse_is_AssignAddressResponse_nil( ++ adb_AssignAddressResponse_t* _AssignAddressResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _AssignAddressResponse, AXIS2_TRUE); ++ ++ return !_AssignAddressResponse->is_valid_AssignAddressResponse; ++ } ++ ++ /** ++ * Set AssignAddressResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AssignAddressResponse_set_AssignAddressResponse_nil( ++ adb_AssignAddressResponse_t* _AssignAddressResponse, ++ const axutil_env_t *env) ++ { ++ return adb_AssignAddressResponse_reset_AssignAddressResponse(_AssignAddressResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_AssignAddressResponse.h' +--- old/cluster/generated/adb_AssignAddressResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_AssignAddressResponse.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_ASSIGNADDRESSRESPONSE_H ++ #define ADB_ASSIGNADDRESSRESPONSE_H ++ ++ /** ++ * adb_AssignAddressResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_AssignAddressResponse class ++ */ ++ typedef struct adb_AssignAddressResponse adb_AssignAddressResponse_t; ++ ++ ++ #include "adb_assignAddressResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_AssignAddressResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_AssignAddressResponse_t object ++ */ ++ adb_AssignAddressResponse_t* AXIS2_CALL ++ adb_AssignAddressResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_AssignAddressResponse_t object ++ * @param _AssignAddressResponse adb_AssignAddressResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AssignAddressResponse_free ( ++ adb_AssignAddressResponse_t* _AssignAddressResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for AssignAddressResponse. ++ * @param _AssignAddressResponse adb_AssignAddressResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_assignAddressResponseType_t* ++ */ ++ adb_assignAddressResponseType_t* AXIS2_CALL ++ adb_AssignAddressResponse_get_AssignAddressResponse( ++ adb_AssignAddressResponse_t* _AssignAddressResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for AssignAddressResponse. ++ * @param _AssignAddressResponse adb_AssignAddressResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_AssignAddressResponse adb_assignAddressResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AssignAddressResponse_set_AssignAddressResponse( ++ adb_AssignAddressResponse_t* _AssignAddressResponse, ++ const axutil_env_t *env, ++ adb_assignAddressResponseType_t* arg_AssignAddressResponse); ++ ++ /** ++ * Resetter for AssignAddressResponse ++ * @param _AssignAddressResponse adb_AssignAddressResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AssignAddressResponse_reset_AssignAddressResponse( ++ adb_AssignAddressResponse_t* _AssignAddressResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether AssignAddressResponse is nill ++ * @param _AssignAddressResponse adb_AssignAddressResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_AssignAddressResponse_is_AssignAddressResponse_nil( ++ adb_AssignAddressResponse_t* _AssignAddressResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set AssignAddressResponse to nill (currently the same as reset) ++ * @param _AssignAddressResponse adb_AssignAddressResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AssignAddressResponse_set_AssignAddressResponse_nil( ++ adb_AssignAddressResponse_t* _AssignAddressResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _AssignAddressResponse adb_AssignAddressResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AssignAddressResponse_deserialize( ++ adb_AssignAddressResponse_t* _AssignAddressResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _AssignAddressResponse adb_AssignAddressResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_AssignAddressResponse_declare_parent_namespaces( ++ adb_AssignAddressResponse_t* _AssignAddressResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _AssignAddressResponse adb_AssignAddressResponse_t object ++ * @param env pointer to environment struct ++ * @param AssignAddressResponse_om_node node to serialize from ++ * @param AssignAddressResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_AssignAddressResponse_serialize( ++ adb_AssignAddressResponse_t* _AssignAddressResponse, ++ const axutil_env_t *env, ++ axiom_node_t* AssignAddressResponse_om_node, axiom_element_t *AssignAddressResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_AssignAddressResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_AssignAddressResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_ASSIGNADDRESSRESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_AttachVolume.c' +--- old/cluster/generated/adb_AttachVolume.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_AttachVolume.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_AttachVolume.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_AttachVolume.h" ++ ++ /* ++ * implmentation of the AttachVolume|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_AttachVolume ++ { ++ ++ axutil_qname_t* qname; ++ adb_attachVolumeType_t* property_AttachVolume; ++ ++ ++ axis2_bool_t is_valid_AttachVolume; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_AttachVolume_t* AXIS2_CALL ++ adb_AttachVolume_create( ++ const axutil_env_t *env) ++ { ++ adb_AttachVolume_t *_AttachVolume = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _AttachVolume = (adb_AttachVolume_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_AttachVolume_t)); ++ ++ if(NULL == _AttachVolume) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_AttachVolume, 0, sizeof(adb_AttachVolume_t)); ++ ++ _AttachVolume->property_AttachVolume = NULL; ++ _AttachVolume->is_valid_AttachVolume = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "AttachVolume", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _AttachVolume->qname = qname; ++ ++ ++ return _AttachVolume; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_AttachVolume_free ( ++ adb_AttachVolume_t* _AttachVolume, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _AttachVolume, AXIS2_FAILURE); ++ ++ adb_AttachVolume_reset_AttachVolume(_AttachVolume, env); ++ ++ if(_AttachVolume->qname) ++ { ++ axutil_qname_free (_AttachVolume->qname, env); ++ _AttachVolume->qname = NULL; ++ } ++ ++ ++ if(_AttachVolume) ++ { ++ AXIS2_FREE(env->allocator, _AttachVolume); ++ _AttachVolume = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_AttachVolume_deserialize( ++ adb_AttachVolume_t* _AttachVolume, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _AttachVolume, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for AttachVolume : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _AttachVolume-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for AttachVolume : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_AttachVolume-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building AttachVolume element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "AttachVolume", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_attachVolumeType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_attachVolumeType_create(env); ++ ++ status = adb_attachVolumeType_deserialize((adb_attachVolumeType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element AttachVolume"); ++ } ++ else ++ { ++ status = adb_AttachVolume_set_AttachVolume(_AttachVolume, env, ++ (adb_attachVolumeType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for AttachVolume "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element AttachVolume missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_AttachVolume_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_AttachVolume_declare_parent_namespaces( ++ adb_AttachVolume_t* _AttachVolume, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_AttachVolume_serialize( ++ adb_AttachVolume_t* _AttachVolume, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _AttachVolume, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "AttachVolume", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_AttachVolume->is_valid_AttachVolume) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("AttachVolume") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sAttachVolume xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("AttachVolume"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("AttachVolume"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing AttachVolume element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sAttachVolume", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_attachVolumeType_serialize(_AttachVolume->property_AttachVolume, ++ env, current_node, parent_element, ++ adb_attachVolumeType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for AttachVolume. ++ */ ++ adb_attachVolumeType_t* AXIS2_CALL ++ adb_AttachVolume_get_AttachVolume( ++ adb_AttachVolume_t* _AttachVolume, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _AttachVolume, NULL); ++ ++ ++ return _AttachVolume->property_AttachVolume; ++ } ++ ++ /** ++ * setter for AttachVolume ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AttachVolume_set_AttachVolume( ++ adb_AttachVolume_t* _AttachVolume, ++ const axutil_env_t *env, ++ adb_attachVolumeType_t* arg_AttachVolume) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _AttachVolume, AXIS2_FAILURE); ++ ++ if(_AttachVolume->is_valid_AttachVolume && ++ arg_AttachVolume == _AttachVolume->property_AttachVolume) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_AttachVolume_reset_AttachVolume(_AttachVolume, env); ++ ++ ++ if(NULL == arg_AttachVolume) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _AttachVolume->property_AttachVolume = arg_AttachVolume; ++ _AttachVolume->is_valid_AttachVolume = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for AttachVolume ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AttachVolume_reset_AttachVolume( ++ adb_AttachVolume_t* _AttachVolume, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _AttachVolume, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_AttachVolume->property_AttachVolume != NULL) ++ { ++ ++ ++ adb_attachVolumeType_free(_AttachVolume->property_AttachVolume, env); ++ _AttachVolume->property_AttachVolume = NULL; ++ } ++ ++ ++ ++ _AttachVolume->is_valid_AttachVolume = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether AttachVolume is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_AttachVolume_is_AttachVolume_nil( ++ adb_AttachVolume_t* _AttachVolume, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _AttachVolume, AXIS2_TRUE); ++ ++ return !_AttachVolume->is_valid_AttachVolume; ++ } ++ ++ /** ++ * Set AttachVolume to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AttachVolume_set_AttachVolume_nil( ++ adb_AttachVolume_t* _AttachVolume, ++ const axutil_env_t *env) ++ { ++ return adb_AttachVolume_reset_AttachVolume(_AttachVolume, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_AttachVolume.h' +--- old/cluster/generated/adb_AttachVolume.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_AttachVolume.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_ATTACHVOLUME_H ++ #define ADB_ATTACHVOLUME_H ++ ++ /** ++ * adb_AttachVolume.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_AttachVolume class ++ */ ++ typedef struct adb_AttachVolume adb_AttachVolume_t; ++ ++ ++ #include "adb_attachVolumeType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_AttachVolume_t ++ * @param env pointer to environment struct ++ * @return newly created adb_AttachVolume_t object ++ */ ++ adb_AttachVolume_t* AXIS2_CALL ++ adb_AttachVolume_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_AttachVolume_t object ++ * @param _AttachVolume adb_AttachVolume_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AttachVolume_free ( ++ adb_AttachVolume_t* _AttachVolume, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for AttachVolume. ++ * @param _AttachVolume adb_AttachVolume_t object ++ * @param env pointer to environment struct ++ * @return adb_attachVolumeType_t* ++ */ ++ adb_attachVolumeType_t* AXIS2_CALL ++ adb_AttachVolume_get_AttachVolume( ++ adb_AttachVolume_t* _AttachVolume, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for AttachVolume. ++ * @param _AttachVolume adb_AttachVolume_t object ++ * @param env pointer to environment struct ++ * @param arg_AttachVolume adb_attachVolumeType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AttachVolume_set_AttachVolume( ++ adb_AttachVolume_t* _AttachVolume, ++ const axutil_env_t *env, ++ adb_attachVolumeType_t* arg_AttachVolume); ++ ++ /** ++ * Resetter for AttachVolume ++ * @param _AttachVolume adb_AttachVolume_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AttachVolume_reset_AttachVolume( ++ adb_AttachVolume_t* _AttachVolume, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether AttachVolume is nill ++ * @param _AttachVolume adb_AttachVolume_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_AttachVolume_is_AttachVolume_nil( ++ adb_AttachVolume_t* _AttachVolume, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set AttachVolume to nill (currently the same as reset) ++ * @param _AttachVolume adb_AttachVolume_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AttachVolume_set_AttachVolume_nil( ++ adb_AttachVolume_t* _AttachVolume, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _AttachVolume adb_AttachVolume_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AttachVolume_deserialize( ++ adb_AttachVolume_t* _AttachVolume, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _AttachVolume adb_AttachVolume_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_AttachVolume_declare_parent_namespaces( ++ adb_AttachVolume_t* _AttachVolume, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _AttachVolume adb_AttachVolume_t object ++ * @param env pointer to environment struct ++ * @param AttachVolume_om_node node to serialize from ++ * @param AttachVolume_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_AttachVolume_serialize( ++ adb_AttachVolume_t* _AttachVolume, ++ const axutil_env_t *env, ++ axiom_node_t* AttachVolume_om_node, axiom_element_t *AttachVolume_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_AttachVolume is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_AttachVolume_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_ATTACHVOLUME_H */ ++ ++ + +=== added file 'cluster/generated/adb_AttachVolumeResponse.c' +--- old/cluster/generated/adb_AttachVolumeResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_AttachVolumeResponse.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_AttachVolumeResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_AttachVolumeResponse.h" ++ ++ /* ++ * implmentation of the AttachVolumeResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_AttachVolumeResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_attachVolumeResponseType_t* property_AttachVolumeResponse; ++ ++ ++ axis2_bool_t is_valid_AttachVolumeResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_AttachVolumeResponse_t* AXIS2_CALL ++ adb_AttachVolumeResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_AttachVolumeResponse_t *_AttachVolumeResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _AttachVolumeResponse = (adb_AttachVolumeResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_AttachVolumeResponse_t)); ++ ++ if(NULL == _AttachVolumeResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_AttachVolumeResponse, 0, sizeof(adb_AttachVolumeResponse_t)); ++ ++ _AttachVolumeResponse->property_AttachVolumeResponse = NULL; ++ _AttachVolumeResponse->is_valid_AttachVolumeResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "AttachVolumeResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _AttachVolumeResponse->qname = qname; ++ ++ ++ return _AttachVolumeResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_AttachVolumeResponse_free ( ++ adb_AttachVolumeResponse_t* _AttachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _AttachVolumeResponse, AXIS2_FAILURE); ++ ++ adb_AttachVolumeResponse_reset_AttachVolumeResponse(_AttachVolumeResponse, env); ++ ++ if(_AttachVolumeResponse->qname) ++ { ++ axutil_qname_free (_AttachVolumeResponse->qname, env); ++ _AttachVolumeResponse->qname = NULL; ++ } ++ ++ ++ if(_AttachVolumeResponse) ++ { ++ AXIS2_FREE(env->allocator, _AttachVolumeResponse); ++ _AttachVolumeResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_AttachVolumeResponse_deserialize( ++ adb_AttachVolumeResponse_t* _AttachVolumeResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _AttachVolumeResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for AttachVolumeResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _AttachVolumeResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for AttachVolumeResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_AttachVolumeResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building AttachVolumeResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "AttachVolumeResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_attachVolumeResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_attachVolumeResponseType_create(env); ++ ++ status = adb_attachVolumeResponseType_deserialize((adb_attachVolumeResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element AttachVolumeResponse"); ++ } ++ else ++ { ++ status = adb_AttachVolumeResponse_set_AttachVolumeResponse(_AttachVolumeResponse, env, ++ (adb_attachVolumeResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for AttachVolumeResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element AttachVolumeResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_AttachVolumeResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_AttachVolumeResponse_declare_parent_namespaces( ++ adb_AttachVolumeResponse_t* _AttachVolumeResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_AttachVolumeResponse_serialize( ++ adb_AttachVolumeResponse_t* _AttachVolumeResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _AttachVolumeResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "AttachVolumeResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_AttachVolumeResponse->is_valid_AttachVolumeResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("AttachVolumeResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sAttachVolumeResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("AttachVolumeResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("AttachVolumeResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing AttachVolumeResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sAttachVolumeResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_attachVolumeResponseType_serialize(_AttachVolumeResponse->property_AttachVolumeResponse, ++ env, current_node, parent_element, ++ adb_attachVolumeResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for AttachVolumeResponse. ++ */ ++ adb_attachVolumeResponseType_t* AXIS2_CALL ++ adb_AttachVolumeResponse_get_AttachVolumeResponse( ++ adb_AttachVolumeResponse_t* _AttachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _AttachVolumeResponse, NULL); ++ ++ ++ return _AttachVolumeResponse->property_AttachVolumeResponse; ++ } ++ ++ /** ++ * setter for AttachVolumeResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AttachVolumeResponse_set_AttachVolumeResponse( ++ adb_AttachVolumeResponse_t* _AttachVolumeResponse, ++ const axutil_env_t *env, ++ adb_attachVolumeResponseType_t* arg_AttachVolumeResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _AttachVolumeResponse, AXIS2_FAILURE); ++ ++ if(_AttachVolumeResponse->is_valid_AttachVolumeResponse && ++ arg_AttachVolumeResponse == _AttachVolumeResponse->property_AttachVolumeResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_AttachVolumeResponse_reset_AttachVolumeResponse(_AttachVolumeResponse, env); ++ ++ ++ if(NULL == arg_AttachVolumeResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _AttachVolumeResponse->property_AttachVolumeResponse = arg_AttachVolumeResponse; ++ _AttachVolumeResponse->is_valid_AttachVolumeResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for AttachVolumeResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AttachVolumeResponse_reset_AttachVolumeResponse( ++ adb_AttachVolumeResponse_t* _AttachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _AttachVolumeResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_AttachVolumeResponse->property_AttachVolumeResponse != NULL) ++ { ++ ++ ++ adb_attachVolumeResponseType_free(_AttachVolumeResponse->property_AttachVolumeResponse, env); ++ _AttachVolumeResponse->property_AttachVolumeResponse = NULL; ++ } ++ ++ ++ ++ _AttachVolumeResponse->is_valid_AttachVolumeResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether AttachVolumeResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_AttachVolumeResponse_is_AttachVolumeResponse_nil( ++ adb_AttachVolumeResponse_t* _AttachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _AttachVolumeResponse, AXIS2_TRUE); ++ ++ return !_AttachVolumeResponse->is_valid_AttachVolumeResponse; ++ } ++ ++ /** ++ * Set AttachVolumeResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AttachVolumeResponse_set_AttachVolumeResponse_nil( ++ adb_AttachVolumeResponse_t* _AttachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ return adb_AttachVolumeResponse_reset_AttachVolumeResponse(_AttachVolumeResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_AttachVolumeResponse.h' +--- old/cluster/generated/adb_AttachVolumeResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_AttachVolumeResponse.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_ATTACHVOLUMERESPONSE_H ++ #define ADB_ATTACHVOLUMERESPONSE_H ++ ++ /** ++ * adb_AttachVolumeResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_AttachVolumeResponse class ++ */ ++ typedef struct adb_AttachVolumeResponse adb_AttachVolumeResponse_t; ++ ++ ++ #include "adb_attachVolumeResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_AttachVolumeResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_AttachVolumeResponse_t object ++ */ ++ adb_AttachVolumeResponse_t* AXIS2_CALL ++ adb_AttachVolumeResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_AttachVolumeResponse_t object ++ * @param _AttachVolumeResponse adb_AttachVolumeResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AttachVolumeResponse_free ( ++ adb_AttachVolumeResponse_t* _AttachVolumeResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for AttachVolumeResponse. ++ * @param _AttachVolumeResponse adb_AttachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_attachVolumeResponseType_t* ++ */ ++ adb_attachVolumeResponseType_t* AXIS2_CALL ++ adb_AttachVolumeResponse_get_AttachVolumeResponse( ++ adb_AttachVolumeResponse_t* _AttachVolumeResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for AttachVolumeResponse. ++ * @param _AttachVolumeResponse adb_AttachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_AttachVolumeResponse adb_attachVolumeResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AttachVolumeResponse_set_AttachVolumeResponse( ++ adb_AttachVolumeResponse_t* _AttachVolumeResponse, ++ const axutil_env_t *env, ++ adb_attachVolumeResponseType_t* arg_AttachVolumeResponse); ++ ++ /** ++ * Resetter for AttachVolumeResponse ++ * @param _AttachVolumeResponse adb_AttachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AttachVolumeResponse_reset_AttachVolumeResponse( ++ adb_AttachVolumeResponse_t* _AttachVolumeResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether AttachVolumeResponse is nill ++ * @param _AttachVolumeResponse adb_AttachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_AttachVolumeResponse_is_AttachVolumeResponse_nil( ++ adb_AttachVolumeResponse_t* _AttachVolumeResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set AttachVolumeResponse to nill (currently the same as reset) ++ * @param _AttachVolumeResponse adb_AttachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AttachVolumeResponse_set_AttachVolumeResponse_nil( ++ adb_AttachVolumeResponse_t* _AttachVolumeResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _AttachVolumeResponse adb_AttachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_AttachVolumeResponse_deserialize( ++ adb_AttachVolumeResponse_t* _AttachVolumeResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _AttachVolumeResponse adb_AttachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_AttachVolumeResponse_declare_parent_namespaces( ++ adb_AttachVolumeResponse_t* _AttachVolumeResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _AttachVolumeResponse adb_AttachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @param AttachVolumeResponse_om_node node to serialize from ++ * @param AttachVolumeResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_AttachVolumeResponse_serialize( ++ adb_AttachVolumeResponse_t* _AttachVolumeResponse, ++ const axutil_env_t *env, ++ axiom_node_t* AttachVolumeResponse_om_node, axiom_element_t *AttachVolumeResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_AttachVolumeResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_AttachVolumeResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_ATTACHVOLUMERESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ConfigureNetwork.c' +--- old/cluster/generated/adb_ConfigureNetwork.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ConfigureNetwork.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ConfigureNetwork.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ConfigureNetwork.h" ++ ++ /* ++ * implmentation of the ConfigureNetwork|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ConfigureNetwork ++ { ++ ++ axutil_qname_t* qname; ++ adb_configureNetworkType_t* property_ConfigureNetwork; ++ ++ ++ axis2_bool_t is_valid_ConfigureNetwork; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ConfigureNetwork_t* AXIS2_CALL ++ adb_ConfigureNetwork_create( ++ const axutil_env_t *env) ++ { ++ adb_ConfigureNetwork_t *_ConfigureNetwork = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ConfigureNetwork = (adb_ConfigureNetwork_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ConfigureNetwork_t)); ++ ++ if(NULL == _ConfigureNetwork) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ConfigureNetwork, 0, sizeof(adb_ConfigureNetwork_t)); ++ ++ _ConfigureNetwork->property_ConfigureNetwork = NULL; ++ _ConfigureNetwork->is_valid_ConfigureNetwork = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ConfigureNetwork", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ConfigureNetwork->qname = qname; ++ ++ ++ return _ConfigureNetwork; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ConfigureNetwork_free ( ++ adb_ConfigureNetwork_t* _ConfigureNetwork, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ConfigureNetwork, AXIS2_FAILURE); ++ ++ adb_ConfigureNetwork_reset_ConfigureNetwork(_ConfigureNetwork, env); ++ ++ if(_ConfigureNetwork->qname) ++ { ++ axutil_qname_free (_ConfigureNetwork->qname, env); ++ _ConfigureNetwork->qname = NULL; ++ } ++ ++ ++ if(_ConfigureNetwork) ++ { ++ AXIS2_FREE(env->allocator, _ConfigureNetwork); ++ _ConfigureNetwork = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ConfigureNetwork_deserialize( ++ adb_ConfigureNetwork_t* _ConfigureNetwork, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ConfigureNetwork, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ConfigureNetwork : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ConfigureNetwork-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ConfigureNetwork : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ConfigureNetwork-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ConfigureNetwork element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ConfigureNetwork", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_configureNetworkType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_configureNetworkType_create(env); ++ ++ status = adb_configureNetworkType_deserialize((adb_configureNetworkType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ConfigureNetwork"); ++ } ++ else ++ { ++ status = adb_ConfigureNetwork_set_ConfigureNetwork(_ConfigureNetwork, env, ++ (adb_configureNetworkType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ConfigureNetwork "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ConfigureNetwork missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ConfigureNetwork_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ConfigureNetwork_declare_parent_namespaces( ++ adb_ConfigureNetwork_t* _ConfigureNetwork, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ConfigureNetwork_serialize( ++ adb_ConfigureNetwork_t* _ConfigureNetwork, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ConfigureNetwork, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ConfigureNetwork", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ConfigureNetwork->is_valid_ConfigureNetwork) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ConfigureNetwork") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sConfigureNetwork xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ConfigureNetwork"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ConfigureNetwork"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ConfigureNetwork element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sConfigureNetwork", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_configureNetworkType_serialize(_ConfigureNetwork->property_ConfigureNetwork, ++ env, current_node, parent_element, ++ adb_configureNetworkType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ConfigureNetwork. ++ */ ++ adb_configureNetworkType_t* AXIS2_CALL ++ adb_ConfigureNetwork_get_ConfigureNetwork( ++ adb_ConfigureNetwork_t* _ConfigureNetwork, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ConfigureNetwork, NULL); ++ ++ ++ return _ConfigureNetwork->property_ConfigureNetwork; ++ } ++ ++ /** ++ * setter for ConfigureNetwork ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ConfigureNetwork_set_ConfigureNetwork( ++ adb_ConfigureNetwork_t* _ConfigureNetwork, ++ const axutil_env_t *env, ++ adb_configureNetworkType_t* arg_ConfigureNetwork) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ConfigureNetwork, AXIS2_FAILURE); ++ ++ if(_ConfigureNetwork->is_valid_ConfigureNetwork && ++ arg_ConfigureNetwork == _ConfigureNetwork->property_ConfigureNetwork) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ConfigureNetwork_reset_ConfigureNetwork(_ConfigureNetwork, env); ++ ++ ++ if(NULL == arg_ConfigureNetwork) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ConfigureNetwork->property_ConfigureNetwork = arg_ConfigureNetwork; ++ _ConfigureNetwork->is_valid_ConfigureNetwork = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ConfigureNetwork ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ConfigureNetwork_reset_ConfigureNetwork( ++ adb_ConfigureNetwork_t* _ConfigureNetwork, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ConfigureNetwork, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ConfigureNetwork->property_ConfigureNetwork != NULL) ++ { ++ ++ ++ adb_configureNetworkType_free(_ConfigureNetwork->property_ConfigureNetwork, env); ++ _ConfigureNetwork->property_ConfigureNetwork = NULL; ++ } ++ ++ ++ ++ _ConfigureNetwork->is_valid_ConfigureNetwork = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ConfigureNetwork is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ConfigureNetwork_is_ConfigureNetwork_nil( ++ adb_ConfigureNetwork_t* _ConfigureNetwork, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ConfigureNetwork, AXIS2_TRUE); ++ ++ return !_ConfigureNetwork->is_valid_ConfigureNetwork; ++ } ++ ++ /** ++ * Set ConfigureNetwork to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ConfigureNetwork_set_ConfigureNetwork_nil( ++ adb_ConfigureNetwork_t* _ConfigureNetwork, ++ const axutil_env_t *env) ++ { ++ return adb_ConfigureNetwork_reset_ConfigureNetwork(_ConfigureNetwork, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ConfigureNetwork.h' +--- old/cluster/generated/adb_ConfigureNetwork.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ConfigureNetwork.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_CONFIGURENETWORK_H ++ #define ADB_CONFIGURENETWORK_H ++ ++ /** ++ * adb_ConfigureNetwork.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ConfigureNetwork class ++ */ ++ typedef struct adb_ConfigureNetwork adb_ConfigureNetwork_t; ++ ++ ++ #include "adb_configureNetworkType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ConfigureNetwork_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ConfigureNetwork_t object ++ */ ++ adb_ConfigureNetwork_t* AXIS2_CALL ++ adb_ConfigureNetwork_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ConfigureNetwork_t object ++ * @param _ConfigureNetwork adb_ConfigureNetwork_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ConfigureNetwork_free ( ++ adb_ConfigureNetwork_t* _ConfigureNetwork, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ConfigureNetwork. ++ * @param _ConfigureNetwork adb_ConfigureNetwork_t object ++ * @param env pointer to environment struct ++ * @return adb_configureNetworkType_t* ++ */ ++ adb_configureNetworkType_t* AXIS2_CALL ++ adb_ConfigureNetwork_get_ConfigureNetwork( ++ adb_ConfigureNetwork_t* _ConfigureNetwork, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ConfigureNetwork. ++ * @param _ConfigureNetwork adb_ConfigureNetwork_t object ++ * @param env pointer to environment struct ++ * @param arg_ConfigureNetwork adb_configureNetworkType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ConfigureNetwork_set_ConfigureNetwork( ++ adb_ConfigureNetwork_t* _ConfigureNetwork, ++ const axutil_env_t *env, ++ adb_configureNetworkType_t* arg_ConfigureNetwork); ++ ++ /** ++ * Resetter for ConfigureNetwork ++ * @param _ConfigureNetwork adb_ConfigureNetwork_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ConfigureNetwork_reset_ConfigureNetwork( ++ adb_ConfigureNetwork_t* _ConfigureNetwork, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ConfigureNetwork is nill ++ * @param _ConfigureNetwork adb_ConfigureNetwork_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ConfigureNetwork_is_ConfigureNetwork_nil( ++ adb_ConfigureNetwork_t* _ConfigureNetwork, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ConfigureNetwork to nill (currently the same as reset) ++ * @param _ConfigureNetwork adb_ConfigureNetwork_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ConfigureNetwork_set_ConfigureNetwork_nil( ++ adb_ConfigureNetwork_t* _ConfigureNetwork, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ConfigureNetwork adb_ConfigureNetwork_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ConfigureNetwork_deserialize( ++ adb_ConfigureNetwork_t* _ConfigureNetwork, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ConfigureNetwork adb_ConfigureNetwork_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ConfigureNetwork_declare_parent_namespaces( ++ adb_ConfigureNetwork_t* _ConfigureNetwork, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ConfigureNetwork adb_ConfigureNetwork_t object ++ * @param env pointer to environment struct ++ * @param ConfigureNetwork_om_node node to serialize from ++ * @param ConfigureNetwork_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ConfigureNetwork_serialize( ++ adb_ConfigureNetwork_t* _ConfigureNetwork, ++ const axutil_env_t *env, ++ axiom_node_t* ConfigureNetwork_om_node, axiom_element_t *ConfigureNetwork_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ConfigureNetwork is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ConfigureNetwork_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_CONFIGURENETWORK_H */ ++ ++ + +=== added file 'cluster/generated/adb_ConfigureNetworkResponse.c' +--- old/cluster/generated/adb_ConfigureNetworkResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ConfigureNetworkResponse.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ConfigureNetworkResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ConfigureNetworkResponse.h" ++ ++ /* ++ * implmentation of the ConfigureNetworkResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ConfigureNetworkResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_configureNetworkResponseType_t* property_ConfigureNetworkResponse; ++ ++ ++ axis2_bool_t is_valid_ConfigureNetworkResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ConfigureNetworkResponse_t* AXIS2_CALL ++ adb_ConfigureNetworkResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_ConfigureNetworkResponse_t *_ConfigureNetworkResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ConfigureNetworkResponse = (adb_ConfigureNetworkResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ConfigureNetworkResponse_t)); ++ ++ if(NULL == _ConfigureNetworkResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ConfigureNetworkResponse, 0, sizeof(adb_ConfigureNetworkResponse_t)); ++ ++ _ConfigureNetworkResponse->property_ConfigureNetworkResponse = NULL; ++ _ConfigureNetworkResponse->is_valid_ConfigureNetworkResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ConfigureNetworkResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ConfigureNetworkResponse->qname = qname; ++ ++ ++ return _ConfigureNetworkResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ConfigureNetworkResponse_free ( ++ adb_ConfigureNetworkResponse_t* _ConfigureNetworkResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ConfigureNetworkResponse, AXIS2_FAILURE); ++ ++ adb_ConfigureNetworkResponse_reset_ConfigureNetworkResponse(_ConfigureNetworkResponse, env); ++ ++ if(_ConfigureNetworkResponse->qname) ++ { ++ axutil_qname_free (_ConfigureNetworkResponse->qname, env); ++ _ConfigureNetworkResponse->qname = NULL; ++ } ++ ++ ++ if(_ConfigureNetworkResponse) ++ { ++ AXIS2_FREE(env->allocator, _ConfigureNetworkResponse); ++ _ConfigureNetworkResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ConfigureNetworkResponse_deserialize( ++ adb_ConfigureNetworkResponse_t* _ConfigureNetworkResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ConfigureNetworkResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ConfigureNetworkResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ConfigureNetworkResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ConfigureNetworkResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ConfigureNetworkResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ConfigureNetworkResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ConfigureNetworkResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_configureNetworkResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_configureNetworkResponseType_create(env); ++ ++ status = adb_configureNetworkResponseType_deserialize((adb_configureNetworkResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ConfigureNetworkResponse"); ++ } ++ else ++ { ++ status = adb_ConfigureNetworkResponse_set_ConfigureNetworkResponse(_ConfigureNetworkResponse, env, ++ (adb_configureNetworkResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ConfigureNetworkResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ConfigureNetworkResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ConfigureNetworkResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ConfigureNetworkResponse_declare_parent_namespaces( ++ adb_ConfigureNetworkResponse_t* _ConfigureNetworkResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ConfigureNetworkResponse_serialize( ++ adb_ConfigureNetworkResponse_t* _ConfigureNetworkResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ConfigureNetworkResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ConfigureNetworkResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ConfigureNetworkResponse->is_valid_ConfigureNetworkResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ConfigureNetworkResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sConfigureNetworkResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ConfigureNetworkResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ConfigureNetworkResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ConfigureNetworkResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sConfigureNetworkResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_configureNetworkResponseType_serialize(_ConfigureNetworkResponse->property_ConfigureNetworkResponse, ++ env, current_node, parent_element, ++ adb_configureNetworkResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ConfigureNetworkResponse. ++ */ ++ adb_configureNetworkResponseType_t* AXIS2_CALL ++ adb_ConfigureNetworkResponse_get_ConfigureNetworkResponse( ++ adb_ConfigureNetworkResponse_t* _ConfigureNetworkResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ConfigureNetworkResponse, NULL); ++ ++ ++ return _ConfigureNetworkResponse->property_ConfigureNetworkResponse; ++ } ++ ++ /** ++ * setter for ConfigureNetworkResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ConfigureNetworkResponse_set_ConfigureNetworkResponse( ++ adb_ConfigureNetworkResponse_t* _ConfigureNetworkResponse, ++ const axutil_env_t *env, ++ adb_configureNetworkResponseType_t* arg_ConfigureNetworkResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ConfigureNetworkResponse, AXIS2_FAILURE); ++ ++ if(_ConfigureNetworkResponse->is_valid_ConfigureNetworkResponse && ++ arg_ConfigureNetworkResponse == _ConfigureNetworkResponse->property_ConfigureNetworkResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ConfigureNetworkResponse_reset_ConfigureNetworkResponse(_ConfigureNetworkResponse, env); ++ ++ ++ if(NULL == arg_ConfigureNetworkResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ConfigureNetworkResponse->property_ConfigureNetworkResponse = arg_ConfigureNetworkResponse; ++ _ConfigureNetworkResponse->is_valid_ConfigureNetworkResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ConfigureNetworkResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ConfigureNetworkResponse_reset_ConfigureNetworkResponse( ++ adb_ConfigureNetworkResponse_t* _ConfigureNetworkResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ConfigureNetworkResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ConfigureNetworkResponse->property_ConfigureNetworkResponse != NULL) ++ { ++ ++ ++ adb_configureNetworkResponseType_free(_ConfigureNetworkResponse->property_ConfigureNetworkResponse, env); ++ _ConfigureNetworkResponse->property_ConfigureNetworkResponse = NULL; ++ } ++ ++ ++ ++ _ConfigureNetworkResponse->is_valid_ConfigureNetworkResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ConfigureNetworkResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ConfigureNetworkResponse_is_ConfigureNetworkResponse_nil( ++ adb_ConfigureNetworkResponse_t* _ConfigureNetworkResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ConfigureNetworkResponse, AXIS2_TRUE); ++ ++ return !_ConfigureNetworkResponse->is_valid_ConfigureNetworkResponse; ++ } ++ ++ /** ++ * Set ConfigureNetworkResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ConfigureNetworkResponse_set_ConfigureNetworkResponse_nil( ++ adb_ConfigureNetworkResponse_t* _ConfigureNetworkResponse, ++ const axutil_env_t *env) ++ { ++ return adb_ConfigureNetworkResponse_reset_ConfigureNetworkResponse(_ConfigureNetworkResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ConfigureNetworkResponse.h' +--- old/cluster/generated/adb_ConfigureNetworkResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ConfigureNetworkResponse.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_CONFIGURENETWORKRESPONSE_H ++ #define ADB_CONFIGURENETWORKRESPONSE_H ++ ++ /** ++ * adb_ConfigureNetworkResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ConfigureNetworkResponse class ++ */ ++ typedef struct adb_ConfigureNetworkResponse adb_ConfigureNetworkResponse_t; ++ ++ ++ #include "adb_configureNetworkResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ConfigureNetworkResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ConfigureNetworkResponse_t object ++ */ ++ adb_ConfigureNetworkResponse_t* AXIS2_CALL ++ adb_ConfigureNetworkResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ConfigureNetworkResponse_t object ++ * @param _ConfigureNetworkResponse adb_ConfigureNetworkResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ConfigureNetworkResponse_free ( ++ adb_ConfigureNetworkResponse_t* _ConfigureNetworkResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ConfigureNetworkResponse. ++ * @param _ConfigureNetworkResponse adb_ConfigureNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_configureNetworkResponseType_t* ++ */ ++ adb_configureNetworkResponseType_t* AXIS2_CALL ++ adb_ConfigureNetworkResponse_get_ConfigureNetworkResponse( ++ adb_ConfigureNetworkResponse_t* _ConfigureNetworkResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ConfigureNetworkResponse. ++ * @param _ConfigureNetworkResponse adb_ConfigureNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_ConfigureNetworkResponse adb_configureNetworkResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ConfigureNetworkResponse_set_ConfigureNetworkResponse( ++ adb_ConfigureNetworkResponse_t* _ConfigureNetworkResponse, ++ const axutil_env_t *env, ++ adb_configureNetworkResponseType_t* arg_ConfigureNetworkResponse); ++ ++ /** ++ * Resetter for ConfigureNetworkResponse ++ * @param _ConfigureNetworkResponse adb_ConfigureNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ConfigureNetworkResponse_reset_ConfigureNetworkResponse( ++ adb_ConfigureNetworkResponse_t* _ConfigureNetworkResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ConfigureNetworkResponse is nill ++ * @param _ConfigureNetworkResponse adb_ConfigureNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ConfigureNetworkResponse_is_ConfigureNetworkResponse_nil( ++ adb_ConfigureNetworkResponse_t* _ConfigureNetworkResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ConfigureNetworkResponse to nill (currently the same as reset) ++ * @param _ConfigureNetworkResponse adb_ConfigureNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ConfigureNetworkResponse_set_ConfigureNetworkResponse_nil( ++ adb_ConfigureNetworkResponse_t* _ConfigureNetworkResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ConfigureNetworkResponse adb_ConfigureNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ConfigureNetworkResponse_deserialize( ++ adb_ConfigureNetworkResponse_t* _ConfigureNetworkResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ConfigureNetworkResponse adb_ConfigureNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ConfigureNetworkResponse_declare_parent_namespaces( ++ adb_ConfigureNetworkResponse_t* _ConfigureNetworkResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ConfigureNetworkResponse adb_ConfigureNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @param ConfigureNetworkResponse_om_node node to serialize from ++ * @param ConfigureNetworkResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ConfigureNetworkResponse_serialize( ++ adb_ConfigureNetworkResponse_t* _ConfigureNetworkResponse, ++ const axutil_env_t *env, ++ axiom_node_t* ConfigureNetworkResponse_om_node, axiom_element_t *ConfigureNetworkResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ConfigureNetworkResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ConfigureNetworkResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_CONFIGURENETWORKRESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_DescribeInstances.c' +--- old/cluster/generated/adb_DescribeInstances.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_DescribeInstances.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_DescribeInstances.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_DescribeInstances.h" ++ ++ /* ++ * implmentation of the DescribeInstances|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_DescribeInstances ++ { ++ ++ axutil_qname_t* qname; ++ adb_describeInstancesType_t* property_DescribeInstances; ++ ++ ++ axis2_bool_t is_valid_DescribeInstances; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_DescribeInstances_t* AXIS2_CALL ++ adb_DescribeInstances_create( ++ const axutil_env_t *env) ++ { ++ adb_DescribeInstances_t *_DescribeInstances = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _DescribeInstances = (adb_DescribeInstances_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_DescribeInstances_t)); ++ ++ if(NULL == _DescribeInstances) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_DescribeInstances, 0, sizeof(adb_DescribeInstances_t)); ++ ++ _DescribeInstances->property_DescribeInstances = NULL; ++ _DescribeInstances->is_valid_DescribeInstances = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "DescribeInstances", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _DescribeInstances->qname = qname; ++ ++ ++ return _DescribeInstances; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeInstances_free ( ++ adb_DescribeInstances_t* _DescribeInstances, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeInstances, AXIS2_FAILURE); ++ ++ adb_DescribeInstances_reset_DescribeInstances(_DescribeInstances, env); ++ ++ if(_DescribeInstances->qname) ++ { ++ axutil_qname_free (_DescribeInstances->qname, env); ++ _DescribeInstances->qname = NULL; ++ } ++ ++ ++ if(_DescribeInstances) ++ { ++ AXIS2_FREE(env->allocator, _DescribeInstances); ++ _DescribeInstances = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeInstances_deserialize( ++ adb_DescribeInstances_t* _DescribeInstances, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeInstances, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for DescribeInstances : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _DescribeInstances-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for DescribeInstances : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_DescribeInstances-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building DescribeInstances element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "DescribeInstances", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_describeInstancesType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_describeInstancesType_create(env); ++ ++ status = adb_describeInstancesType_deserialize((adb_describeInstancesType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element DescribeInstances"); ++ } ++ else ++ { ++ status = adb_DescribeInstances_set_DescribeInstances(_DescribeInstances, env, ++ (adb_describeInstancesType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for DescribeInstances "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element DescribeInstances missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribeInstances_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_DescribeInstances_declare_parent_namespaces( ++ adb_DescribeInstances_t* _DescribeInstances, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_DescribeInstances_serialize( ++ adb_DescribeInstances_t* _DescribeInstances, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _DescribeInstances, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "DescribeInstances", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_DescribeInstances->is_valid_DescribeInstances) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("DescribeInstances") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sDescribeInstances xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("DescribeInstances"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("DescribeInstances"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing DescribeInstances element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sDescribeInstances", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_describeInstancesType_serialize(_DescribeInstances->property_DescribeInstances, ++ env, current_node, parent_element, ++ adb_describeInstancesType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for DescribeInstances. ++ */ ++ adb_describeInstancesType_t* AXIS2_CALL ++ adb_DescribeInstances_get_DescribeInstances( ++ adb_DescribeInstances_t* _DescribeInstances, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _DescribeInstances, NULL); ++ ++ ++ return _DescribeInstances->property_DescribeInstances; ++ } ++ ++ /** ++ * setter for DescribeInstances ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeInstances_set_DescribeInstances( ++ adb_DescribeInstances_t* _DescribeInstances, ++ const axutil_env_t *env, ++ adb_describeInstancesType_t* arg_DescribeInstances) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeInstances, AXIS2_FAILURE); ++ ++ if(_DescribeInstances->is_valid_DescribeInstances && ++ arg_DescribeInstances == _DescribeInstances->property_DescribeInstances) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_DescribeInstances_reset_DescribeInstances(_DescribeInstances, env); ++ ++ ++ if(NULL == arg_DescribeInstances) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _DescribeInstances->property_DescribeInstances = arg_DescribeInstances; ++ _DescribeInstances->is_valid_DescribeInstances = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for DescribeInstances ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeInstances_reset_DescribeInstances( ++ adb_DescribeInstances_t* _DescribeInstances, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeInstances, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_DescribeInstances->property_DescribeInstances != NULL) ++ { ++ ++ ++ adb_describeInstancesType_free(_DescribeInstances->property_DescribeInstances, env); ++ _DescribeInstances->property_DescribeInstances = NULL; ++ } ++ ++ ++ ++ _DescribeInstances->is_valid_DescribeInstances = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether DescribeInstances is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribeInstances_is_DescribeInstances_nil( ++ adb_DescribeInstances_t* _DescribeInstances, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeInstances, AXIS2_TRUE); ++ ++ return !_DescribeInstances->is_valid_DescribeInstances; ++ } ++ ++ /** ++ * Set DescribeInstances to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeInstances_set_DescribeInstances_nil( ++ adb_DescribeInstances_t* _DescribeInstances, ++ const axutil_env_t *env) ++ { ++ return adb_DescribeInstances_reset_DescribeInstances(_DescribeInstances, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_DescribeInstances.h' +--- old/cluster/generated/adb_DescribeInstances.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_DescribeInstances.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_DESCRIBEINSTANCES_H ++ #define ADB_DESCRIBEINSTANCES_H ++ ++ /** ++ * adb_DescribeInstances.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_DescribeInstances class ++ */ ++ typedef struct adb_DescribeInstances adb_DescribeInstances_t; ++ ++ ++ #include "adb_describeInstancesType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_DescribeInstances_t ++ * @param env pointer to environment struct ++ * @return newly created adb_DescribeInstances_t object ++ */ ++ adb_DescribeInstances_t* AXIS2_CALL ++ adb_DescribeInstances_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_DescribeInstances_t object ++ * @param _DescribeInstances adb_DescribeInstances_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeInstances_free ( ++ adb_DescribeInstances_t* _DescribeInstances, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for DescribeInstances. ++ * @param _DescribeInstances adb_DescribeInstances_t object ++ * @param env pointer to environment struct ++ * @return adb_describeInstancesType_t* ++ */ ++ adb_describeInstancesType_t* AXIS2_CALL ++ adb_DescribeInstances_get_DescribeInstances( ++ adb_DescribeInstances_t* _DescribeInstances, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for DescribeInstances. ++ * @param _DescribeInstances adb_DescribeInstances_t object ++ * @param env pointer to environment struct ++ * @param arg_DescribeInstances adb_describeInstancesType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeInstances_set_DescribeInstances( ++ adb_DescribeInstances_t* _DescribeInstances, ++ const axutil_env_t *env, ++ adb_describeInstancesType_t* arg_DescribeInstances); ++ ++ /** ++ * Resetter for DescribeInstances ++ * @param _DescribeInstances adb_DescribeInstances_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeInstances_reset_DescribeInstances( ++ adb_DescribeInstances_t* _DescribeInstances, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether DescribeInstances is nill ++ * @param _DescribeInstances adb_DescribeInstances_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribeInstances_is_DescribeInstances_nil( ++ adb_DescribeInstances_t* _DescribeInstances, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set DescribeInstances to nill (currently the same as reset) ++ * @param _DescribeInstances adb_DescribeInstances_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeInstances_set_DescribeInstances_nil( ++ adb_DescribeInstances_t* _DescribeInstances, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _DescribeInstances adb_DescribeInstances_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeInstances_deserialize( ++ adb_DescribeInstances_t* _DescribeInstances, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _DescribeInstances adb_DescribeInstances_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_DescribeInstances_declare_parent_namespaces( ++ adb_DescribeInstances_t* _DescribeInstances, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _DescribeInstances adb_DescribeInstances_t object ++ * @param env pointer to environment struct ++ * @param DescribeInstances_om_node node to serialize from ++ * @param DescribeInstances_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_DescribeInstances_serialize( ++ adb_DescribeInstances_t* _DescribeInstances, ++ const axutil_env_t *env, ++ axiom_node_t* DescribeInstances_om_node, axiom_element_t *DescribeInstances_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_DescribeInstances is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribeInstances_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_DESCRIBEINSTANCES_H */ ++ ++ + +=== added file 'cluster/generated/adb_DescribeInstancesResponse.c' +--- old/cluster/generated/adb_DescribeInstancesResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_DescribeInstancesResponse.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_DescribeInstancesResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_DescribeInstancesResponse.h" ++ ++ /* ++ * implmentation of the DescribeInstancesResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_DescribeInstancesResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_describeInstancesResponseType_t* property_DescribeInstancesResponse; ++ ++ ++ axis2_bool_t is_valid_DescribeInstancesResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_DescribeInstancesResponse_t* AXIS2_CALL ++ adb_DescribeInstancesResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_DescribeInstancesResponse_t *_DescribeInstancesResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _DescribeInstancesResponse = (adb_DescribeInstancesResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_DescribeInstancesResponse_t)); ++ ++ if(NULL == _DescribeInstancesResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_DescribeInstancesResponse, 0, sizeof(adb_DescribeInstancesResponse_t)); ++ ++ _DescribeInstancesResponse->property_DescribeInstancesResponse = NULL; ++ _DescribeInstancesResponse->is_valid_DescribeInstancesResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "DescribeInstancesResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _DescribeInstancesResponse->qname = qname; ++ ++ ++ return _DescribeInstancesResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeInstancesResponse_free ( ++ adb_DescribeInstancesResponse_t* _DescribeInstancesResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeInstancesResponse, AXIS2_FAILURE); ++ ++ adb_DescribeInstancesResponse_reset_DescribeInstancesResponse(_DescribeInstancesResponse, env); ++ ++ if(_DescribeInstancesResponse->qname) ++ { ++ axutil_qname_free (_DescribeInstancesResponse->qname, env); ++ _DescribeInstancesResponse->qname = NULL; ++ } ++ ++ ++ if(_DescribeInstancesResponse) ++ { ++ AXIS2_FREE(env->allocator, _DescribeInstancesResponse); ++ _DescribeInstancesResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeInstancesResponse_deserialize( ++ adb_DescribeInstancesResponse_t* _DescribeInstancesResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeInstancesResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for DescribeInstancesResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _DescribeInstancesResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for DescribeInstancesResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_DescribeInstancesResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building DescribeInstancesResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "DescribeInstancesResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_describeInstancesResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_describeInstancesResponseType_create(env); ++ ++ status = adb_describeInstancesResponseType_deserialize((adb_describeInstancesResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element DescribeInstancesResponse"); ++ } ++ else ++ { ++ status = adb_DescribeInstancesResponse_set_DescribeInstancesResponse(_DescribeInstancesResponse, env, ++ (adb_describeInstancesResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for DescribeInstancesResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element DescribeInstancesResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribeInstancesResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_DescribeInstancesResponse_declare_parent_namespaces( ++ adb_DescribeInstancesResponse_t* _DescribeInstancesResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_DescribeInstancesResponse_serialize( ++ adb_DescribeInstancesResponse_t* _DescribeInstancesResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _DescribeInstancesResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "DescribeInstancesResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_DescribeInstancesResponse->is_valid_DescribeInstancesResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("DescribeInstancesResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sDescribeInstancesResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("DescribeInstancesResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("DescribeInstancesResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing DescribeInstancesResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sDescribeInstancesResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_describeInstancesResponseType_serialize(_DescribeInstancesResponse->property_DescribeInstancesResponse, ++ env, current_node, parent_element, ++ adb_describeInstancesResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for DescribeInstancesResponse. ++ */ ++ adb_describeInstancesResponseType_t* AXIS2_CALL ++ adb_DescribeInstancesResponse_get_DescribeInstancesResponse( ++ adb_DescribeInstancesResponse_t* _DescribeInstancesResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _DescribeInstancesResponse, NULL); ++ ++ ++ return _DescribeInstancesResponse->property_DescribeInstancesResponse; ++ } ++ ++ /** ++ * setter for DescribeInstancesResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeInstancesResponse_set_DescribeInstancesResponse( ++ adb_DescribeInstancesResponse_t* _DescribeInstancesResponse, ++ const axutil_env_t *env, ++ adb_describeInstancesResponseType_t* arg_DescribeInstancesResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeInstancesResponse, AXIS2_FAILURE); ++ ++ if(_DescribeInstancesResponse->is_valid_DescribeInstancesResponse && ++ arg_DescribeInstancesResponse == _DescribeInstancesResponse->property_DescribeInstancesResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_DescribeInstancesResponse_reset_DescribeInstancesResponse(_DescribeInstancesResponse, env); ++ ++ ++ if(NULL == arg_DescribeInstancesResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _DescribeInstancesResponse->property_DescribeInstancesResponse = arg_DescribeInstancesResponse; ++ _DescribeInstancesResponse->is_valid_DescribeInstancesResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for DescribeInstancesResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeInstancesResponse_reset_DescribeInstancesResponse( ++ adb_DescribeInstancesResponse_t* _DescribeInstancesResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeInstancesResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_DescribeInstancesResponse->property_DescribeInstancesResponse != NULL) ++ { ++ ++ ++ adb_describeInstancesResponseType_free(_DescribeInstancesResponse->property_DescribeInstancesResponse, env); ++ _DescribeInstancesResponse->property_DescribeInstancesResponse = NULL; ++ } ++ ++ ++ ++ _DescribeInstancesResponse->is_valid_DescribeInstancesResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether DescribeInstancesResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribeInstancesResponse_is_DescribeInstancesResponse_nil( ++ adb_DescribeInstancesResponse_t* _DescribeInstancesResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeInstancesResponse, AXIS2_TRUE); ++ ++ return !_DescribeInstancesResponse->is_valid_DescribeInstancesResponse; ++ } ++ ++ /** ++ * Set DescribeInstancesResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeInstancesResponse_set_DescribeInstancesResponse_nil( ++ adb_DescribeInstancesResponse_t* _DescribeInstancesResponse, ++ const axutil_env_t *env) ++ { ++ return adb_DescribeInstancesResponse_reset_DescribeInstancesResponse(_DescribeInstancesResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_DescribeInstancesResponse.h' +--- old/cluster/generated/adb_DescribeInstancesResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_DescribeInstancesResponse.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_DESCRIBEINSTANCESRESPONSE_H ++ #define ADB_DESCRIBEINSTANCESRESPONSE_H ++ ++ /** ++ * adb_DescribeInstancesResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_DescribeInstancesResponse class ++ */ ++ typedef struct adb_DescribeInstancesResponse adb_DescribeInstancesResponse_t; ++ ++ ++ #include "adb_describeInstancesResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_DescribeInstancesResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_DescribeInstancesResponse_t object ++ */ ++ adb_DescribeInstancesResponse_t* AXIS2_CALL ++ adb_DescribeInstancesResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_DescribeInstancesResponse_t object ++ * @param _DescribeInstancesResponse adb_DescribeInstancesResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeInstancesResponse_free ( ++ adb_DescribeInstancesResponse_t* _DescribeInstancesResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for DescribeInstancesResponse. ++ * @param _DescribeInstancesResponse adb_DescribeInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_describeInstancesResponseType_t* ++ */ ++ adb_describeInstancesResponseType_t* AXIS2_CALL ++ adb_DescribeInstancesResponse_get_DescribeInstancesResponse( ++ adb_DescribeInstancesResponse_t* _DescribeInstancesResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for DescribeInstancesResponse. ++ * @param _DescribeInstancesResponse adb_DescribeInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_DescribeInstancesResponse adb_describeInstancesResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeInstancesResponse_set_DescribeInstancesResponse( ++ adb_DescribeInstancesResponse_t* _DescribeInstancesResponse, ++ const axutil_env_t *env, ++ adb_describeInstancesResponseType_t* arg_DescribeInstancesResponse); ++ ++ /** ++ * Resetter for DescribeInstancesResponse ++ * @param _DescribeInstancesResponse adb_DescribeInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeInstancesResponse_reset_DescribeInstancesResponse( ++ adb_DescribeInstancesResponse_t* _DescribeInstancesResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether DescribeInstancesResponse is nill ++ * @param _DescribeInstancesResponse adb_DescribeInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribeInstancesResponse_is_DescribeInstancesResponse_nil( ++ adb_DescribeInstancesResponse_t* _DescribeInstancesResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set DescribeInstancesResponse to nill (currently the same as reset) ++ * @param _DescribeInstancesResponse adb_DescribeInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeInstancesResponse_set_DescribeInstancesResponse_nil( ++ adb_DescribeInstancesResponse_t* _DescribeInstancesResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _DescribeInstancesResponse adb_DescribeInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeInstancesResponse_deserialize( ++ adb_DescribeInstancesResponse_t* _DescribeInstancesResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _DescribeInstancesResponse adb_DescribeInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_DescribeInstancesResponse_declare_parent_namespaces( ++ adb_DescribeInstancesResponse_t* _DescribeInstancesResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _DescribeInstancesResponse adb_DescribeInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @param DescribeInstancesResponse_om_node node to serialize from ++ * @param DescribeInstancesResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_DescribeInstancesResponse_serialize( ++ adb_DescribeInstancesResponse_t* _DescribeInstancesResponse, ++ const axutil_env_t *env, ++ axiom_node_t* DescribeInstancesResponse_om_node, axiom_element_t *DescribeInstancesResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_DescribeInstancesResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribeInstancesResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_DESCRIBEINSTANCESRESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_DescribeNetworks.c' +--- old/cluster/generated/adb_DescribeNetworks.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_DescribeNetworks.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_DescribeNetworks.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_DescribeNetworks.h" ++ ++ /* ++ * implmentation of the DescribeNetworks|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_DescribeNetworks ++ { ++ ++ axutil_qname_t* qname; ++ adb_describeNetworksType_t* property_DescribeNetworks; ++ ++ ++ axis2_bool_t is_valid_DescribeNetworks; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_DescribeNetworks_t* AXIS2_CALL ++ adb_DescribeNetworks_create( ++ const axutil_env_t *env) ++ { ++ adb_DescribeNetworks_t *_DescribeNetworks = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _DescribeNetworks = (adb_DescribeNetworks_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_DescribeNetworks_t)); ++ ++ if(NULL == _DescribeNetworks) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_DescribeNetworks, 0, sizeof(adb_DescribeNetworks_t)); ++ ++ _DescribeNetworks->property_DescribeNetworks = NULL; ++ _DescribeNetworks->is_valid_DescribeNetworks = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "DescribeNetworks", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _DescribeNetworks->qname = qname; ++ ++ ++ return _DescribeNetworks; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeNetworks_free ( ++ adb_DescribeNetworks_t* _DescribeNetworks, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeNetworks, AXIS2_FAILURE); ++ ++ adb_DescribeNetworks_reset_DescribeNetworks(_DescribeNetworks, env); ++ ++ if(_DescribeNetworks->qname) ++ { ++ axutil_qname_free (_DescribeNetworks->qname, env); ++ _DescribeNetworks->qname = NULL; ++ } ++ ++ ++ if(_DescribeNetworks) ++ { ++ AXIS2_FREE(env->allocator, _DescribeNetworks); ++ _DescribeNetworks = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeNetworks_deserialize( ++ adb_DescribeNetworks_t* _DescribeNetworks, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeNetworks, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for DescribeNetworks : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _DescribeNetworks-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for DescribeNetworks : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_DescribeNetworks-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building DescribeNetworks element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "DescribeNetworks", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_describeNetworksType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_describeNetworksType_create(env); ++ ++ status = adb_describeNetworksType_deserialize((adb_describeNetworksType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element DescribeNetworks"); ++ } ++ else ++ { ++ status = adb_DescribeNetworks_set_DescribeNetworks(_DescribeNetworks, env, ++ (adb_describeNetworksType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for DescribeNetworks "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element DescribeNetworks missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribeNetworks_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_DescribeNetworks_declare_parent_namespaces( ++ adb_DescribeNetworks_t* _DescribeNetworks, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_DescribeNetworks_serialize( ++ adb_DescribeNetworks_t* _DescribeNetworks, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _DescribeNetworks, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "DescribeNetworks", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_DescribeNetworks->is_valid_DescribeNetworks) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("DescribeNetworks") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sDescribeNetworks xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("DescribeNetworks"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("DescribeNetworks"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing DescribeNetworks element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sDescribeNetworks", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_describeNetworksType_serialize(_DescribeNetworks->property_DescribeNetworks, ++ env, current_node, parent_element, ++ adb_describeNetworksType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for DescribeNetworks. ++ */ ++ adb_describeNetworksType_t* AXIS2_CALL ++ adb_DescribeNetworks_get_DescribeNetworks( ++ adb_DescribeNetworks_t* _DescribeNetworks, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _DescribeNetworks, NULL); ++ ++ ++ return _DescribeNetworks->property_DescribeNetworks; ++ } ++ ++ /** ++ * setter for DescribeNetworks ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeNetworks_set_DescribeNetworks( ++ adb_DescribeNetworks_t* _DescribeNetworks, ++ const axutil_env_t *env, ++ adb_describeNetworksType_t* arg_DescribeNetworks) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeNetworks, AXIS2_FAILURE); ++ ++ if(_DescribeNetworks->is_valid_DescribeNetworks && ++ arg_DescribeNetworks == _DescribeNetworks->property_DescribeNetworks) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_DescribeNetworks_reset_DescribeNetworks(_DescribeNetworks, env); ++ ++ ++ if(NULL == arg_DescribeNetworks) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _DescribeNetworks->property_DescribeNetworks = arg_DescribeNetworks; ++ _DescribeNetworks->is_valid_DescribeNetworks = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for DescribeNetworks ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeNetworks_reset_DescribeNetworks( ++ adb_DescribeNetworks_t* _DescribeNetworks, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeNetworks, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_DescribeNetworks->property_DescribeNetworks != NULL) ++ { ++ ++ ++ adb_describeNetworksType_free(_DescribeNetworks->property_DescribeNetworks, env); ++ _DescribeNetworks->property_DescribeNetworks = NULL; ++ } ++ ++ ++ ++ _DescribeNetworks->is_valid_DescribeNetworks = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether DescribeNetworks is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribeNetworks_is_DescribeNetworks_nil( ++ adb_DescribeNetworks_t* _DescribeNetworks, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeNetworks, AXIS2_TRUE); ++ ++ return !_DescribeNetworks->is_valid_DescribeNetworks; ++ } ++ ++ /** ++ * Set DescribeNetworks to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeNetworks_set_DescribeNetworks_nil( ++ adb_DescribeNetworks_t* _DescribeNetworks, ++ const axutil_env_t *env) ++ { ++ return adb_DescribeNetworks_reset_DescribeNetworks(_DescribeNetworks, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_DescribeNetworks.h' +--- old/cluster/generated/adb_DescribeNetworks.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_DescribeNetworks.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_DESCRIBENETWORKS_H ++ #define ADB_DESCRIBENETWORKS_H ++ ++ /** ++ * adb_DescribeNetworks.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_DescribeNetworks class ++ */ ++ typedef struct adb_DescribeNetworks adb_DescribeNetworks_t; ++ ++ ++ #include "adb_describeNetworksType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_DescribeNetworks_t ++ * @param env pointer to environment struct ++ * @return newly created adb_DescribeNetworks_t object ++ */ ++ adb_DescribeNetworks_t* AXIS2_CALL ++ adb_DescribeNetworks_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_DescribeNetworks_t object ++ * @param _DescribeNetworks adb_DescribeNetworks_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeNetworks_free ( ++ adb_DescribeNetworks_t* _DescribeNetworks, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for DescribeNetworks. ++ * @param _DescribeNetworks adb_DescribeNetworks_t object ++ * @param env pointer to environment struct ++ * @return adb_describeNetworksType_t* ++ */ ++ adb_describeNetworksType_t* AXIS2_CALL ++ adb_DescribeNetworks_get_DescribeNetworks( ++ adb_DescribeNetworks_t* _DescribeNetworks, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for DescribeNetworks. ++ * @param _DescribeNetworks adb_DescribeNetworks_t object ++ * @param env pointer to environment struct ++ * @param arg_DescribeNetworks adb_describeNetworksType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeNetworks_set_DescribeNetworks( ++ adb_DescribeNetworks_t* _DescribeNetworks, ++ const axutil_env_t *env, ++ adb_describeNetworksType_t* arg_DescribeNetworks); ++ ++ /** ++ * Resetter for DescribeNetworks ++ * @param _DescribeNetworks adb_DescribeNetworks_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeNetworks_reset_DescribeNetworks( ++ adb_DescribeNetworks_t* _DescribeNetworks, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether DescribeNetworks is nill ++ * @param _DescribeNetworks adb_DescribeNetworks_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribeNetworks_is_DescribeNetworks_nil( ++ adb_DescribeNetworks_t* _DescribeNetworks, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set DescribeNetworks to nill (currently the same as reset) ++ * @param _DescribeNetworks adb_DescribeNetworks_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeNetworks_set_DescribeNetworks_nil( ++ adb_DescribeNetworks_t* _DescribeNetworks, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _DescribeNetworks adb_DescribeNetworks_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeNetworks_deserialize( ++ adb_DescribeNetworks_t* _DescribeNetworks, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _DescribeNetworks adb_DescribeNetworks_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_DescribeNetworks_declare_parent_namespaces( ++ adb_DescribeNetworks_t* _DescribeNetworks, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _DescribeNetworks adb_DescribeNetworks_t object ++ * @param env pointer to environment struct ++ * @param DescribeNetworks_om_node node to serialize from ++ * @param DescribeNetworks_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_DescribeNetworks_serialize( ++ adb_DescribeNetworks_t* _DescribeNetworks, ++ const axutil_env_t *env, ++ axiom_node_t* DescribeNetworks_om_node, axiom_element_t *DescribeNetworks_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_DescribeNetworks is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribeNetworks_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_DESCRIBENETWORKS_H */ ++ ++ + +=== added file 'cluster/generated/adb_DescribeNetworksResponse.c' +--- old/cluster/generated/adb_DescribeNetworksResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_DescribeNetworksResponse.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_DescribeNetworksResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_DescribeNetworksResponse.h" ++ ++ /* ++ * implmentation of the DescribeNetworksResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_DescribeNetworksResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_describeNetworksResponseType_t* property_DescribeNetworksResponse; ++ ++ ++ axis2_bool_t is_valid_DescribeNetworksResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_DescribeNetworksResponse_t* AXIS2_CALL ++ adb_DescribeNetworksResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_DescribeNetworksResponse_t *_DescribeNetworksResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _DescribeNetworksResponse = (adb_DescribeNetworksResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_DescribeNetworksResponse_t)); ++ ++ if(NULL == _DescribeNetworksResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_DescribeNetworksResponse, 0, sizeof(adb_DescribeNetworksResponse_t)); ++ ++ _DescribeNetworksResponse->property_DescribeNetworksResponse = NULL; ++ _DescribeNetworksResponse->is_valid_DescribeNetworksResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "DescribeNetworksResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _DescribeNetworksResponse->qname = qname; ++ ++ ++ return _DescribeNetworksResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeNetworksResponse_free ( ++ adb_DescribeNetworksResponse_t* _DescribeNetworksResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeNetworksResponse, AXIS2_FAILURE); ++ ++ adb_DescribeNetworksResponse_reset_DescribeNetworksResponse(_DescribeNetworksResponse, env); ++ ++ if(_DescribeNetworksResponse->qname) ++ { ++ axutil_qname_free (_DescribeNetworksResponse->qname, env); ++ _DescribeNetworksResponse->qname = NULL; ++ } ++ ++ ++ if(_DescribeNetworksResponse) ++ { ++ AXIS2_FREE(env->allocator, _DescribeNetworksResponse); ++ _DescribeNetworksResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeNetworksResponse_deserialize( ++ adb_DescribeNetworksResponse_t* _DescribeNetworksResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeNetworksResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for DescribeNetworksResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _DescribeNetworksResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for DescribeNetworksResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_DescribeNetworksResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building DescribeNetworksResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "DescribeNetworksResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_describeNetworksResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_describeNetworksResponseType_create(env); ++ ++ status = adb_describeNetworksResponseType_deserialize((adb_describeNetworksResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element DescribeNetworksResponse"); ++ } ++ else ++ { ++ status = adb_DescribeNetworksResponse_set_DescribeNetworksResponse(_DescribeNetworksResponse, env, ++ (adb_describeNetworksResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for DescribeNetworksResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element DescribeNetworksResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribeNetworksResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_DescribeNetworksResponse_declare_parent_namespaces( ++ adb_DescribeNetworksResponse_t* _DescribeNetworksResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_DescribeNetworksResponse_serialize( ++ adb_DescribeNetworksResponse_t* _DescribeNetworksResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _DescribeNetworksResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "DescribeNetworksResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_DescribeNetworksResponse->is_valid_DescribeNetworksResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("DescribeNetworksResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sDescribeNetworksResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("DescribeNetworksResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("DescribeNetworksResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing DescribeNetworksResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sDescribeNetworksResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_describeNetworksResponseType_serialize(_DescribeNetworksResponse->property_DescribeNetworksResponse, ++ env, current_node, parent_element, ++ adb_describeNetworksResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for DescribeNetworksResponse. ++ */ ++ adb_describeNetworksResponseType_t* AXIS2_CALL ++ adb_DescribeNetworksResponse_get_DescribeNetworksResponse( ++ adb_DescribeNetworksResponse_t* _DescribeNetworksResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _DescribeNetworksResponse, NULL); ++ ++ ++ return _DescribeNetworksResponse->property_DescribeNetworksResponse; ++ } ++ ++ /** ++ * setter for DescribeNetworksResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeNetworksResponse_set_DescribeNetworksResponse( ++ adb_DescribeNetworksResponse_t* _DescribeNetworksResponse, ++ const axutil_env_t *env, ++ adb_describeNetworksResponseType_t* arg_DescribeNetworksResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeNetworksResponse, AXIS2_FAILURE); ++ ++ if(_DescribeNetworksResponse->is_valid_DescribeNetworksResponse && ++ arg_DescribeNetworksResponse == _DescribeNetworksResponse->property_DescribeNetworksResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_DescribeNetworksResponse_reset_DescribeNetworksResponse(_DescribeNetworksResponse, env); ++ ++ ++ if(NULL == arg_DescribeNetworksResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _DescribeNetworksResponse->property_DescribeNetworksResponse = arg_DescribeNetworksResponse; ++ _DescribeNetworksResponse->is_valid_DescribeNetworksResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for DescribeNetworksResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeNetworksResponse_reset_DescribeNetworksResponse( ++ adb_DescribeNetworksResponse_t* _DescribeNetworksResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeNetworksResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_DescribeNetworksResponse->property_DescribeNetworksResponse != NULL) ++ { ++ ++ ++ adb_describeNetworksResponseType_free(_DescribeNetworksResponse->property_DescribeNetworksResponse, env); ++ _DescribeNetworksResponse->property_DescribeNetworksResponse = NULL; ++ } ++ ++ ++ ++ _DescribeNetworksResponse->is_valid_DescribeNetworksResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether DescribeNetworksResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribeNetworksResponse_is_DescribeNetworksResponse_nil( ++ adb_DescribeNetworksResponse_t* _DescribeNetworksResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeNetworksResponse, AXIS2_TRUE); ++ ++ return !_DescribeNetworksResponse->is_valid_DescribeNetworksResponse; ++ } ++ ++ /** ++ * Set DescribeNetworksResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeNetworksResponse_set_DescribeNetworksResponse_nil( ++ adb_DescribeNetworksResponse_t* _DescribeNetworksResponse, ++ const axutil_env_t *env) ++ { ++ return adb_DescribeNetworksResponse_reset_DescribeNetworksResponse(_DescribeNetworksResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_DescribeNetworksResponse.h' +--- old/cluster/generated/adb_DescribeNetworksResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_DescribeNetworksResponse.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_DESCRIBENETWORKSRESPONSE_H ++ #define ADB_DESCRIBENETWORKSRESPONSE_H ++ ++ /** ++ * adb_DescribeNetworksResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_DescribeNetworksResponse class ++ */ ++ typedef struct adb_DescribeNetworksResponse adb_DescribeNetworksResponse_t; ++ ++ ++ #include "adb_describeNetworksResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_DescribeNetworksResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_DescribeNetworksResponse_t object ++ */ ++ adb_DescribeNetworksResponse_t* AXIS2_CALL ++ adb_DescribeNetworksResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_DescribeNetworksResponse_t object ++ * @param _DescribeNetworksResponse adb_DescribeNetworksResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeNetworksResponse_free ( ++ adb_DescribeNetworksResponse_t* _DescribeNetworksResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for DescribeNetworksResponse. ++ * @param _DescribeNetworksResponse adb_DescribeNetworksResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_describeNetworksResponseType_t* ++ */ ++ adb_describeNetworksResponseType_t* AXIS2_CALL ++ adb_DescribeNetworksResponse_get_DescribeNetworksResponse( ++ adb_DescribeNetworksResponse_t* _DescribeNetworksResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for DescribeNetworksResponse. ++ * @param _DescribeNetworksResponse adb_DescribeNetworksResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_DescribeNetworksResponse adb_describeNetworksResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeNetworksResponse_set_DescribeNetworksResponse( ++ adb_DescribeNetworksResponse_t* _DescribeNetworksResponse, ++ const axutil_env_t *env, ++ adb_describeNetworksResponseType_t* arg_DescribeNetworksResponse); ++ ++ /** ++ * Resetter for DescribeNetworksResponse ++ * @param _DescribeNetworksResponse adb_DescribeNetworksResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeNetworksResponse_reset_DescribeNetworksResponse( ++ adb_DescribeNetworksResponse_t* _DescribeNetworksResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether DescribeNetworksResponse is nill ++ * @param _DescribeNetworksResponse adb_DescribeNetworksResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribeNetworksResponse_is_DescribeNetworksResponse_nil( ++ adb_DescribeNetworksResponse_t* _DescribeNetworksResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set DescribeNetworksResponse to nill (currently the same as reset) ++ * @param _DescribeNetworksResponse adb_DescribeNetworksResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeNetworksResponse_set_DescribeNetworksResponse_nil( ++ adb_DescribeNetworksResponse_t* _DescribeNetworksResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _DescribeNetworksResponse adb_DescribeNetworksResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeNetworksResponse_deserialize( ++ adb_DescribeNetworksResponse_t* _DescribeNetworksResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _DescribeNetworksResponse adb_DescribeNetworksResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_DescribeNetworksResponse_declare_parent_namespaces( ++ adb_DescribeNetworksResponse_t* _DescribeNetworksResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _DescribeNetworksResponse adb_DescribeNetworksResponse_t object ++ * @param env pointer to environment struct ++ * @param DescribeNetworksResponse_om_node node to serialize from ++ * @param DescribeNetworksResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_DescribeNetworksResponse_serialize( ++ adb_DescribeNetworksResponse_t* _DescribeNetworksResponse, ++ const axutil_env_t *env, ++ axiom_node_t* DescribeNetworksResponse_om_node, axiom_element_t *DescribeNetworksResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_DescribeNetworksResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribeNetworksResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_DESCRIBENETWORKSRESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_DescribePublicAddresses.c' +--- old/cluster/generated/adb_DescribePublicAddresses.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_DescribePublicAddresses.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_DescribePublicAddresses.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_DescribePublicAddresses.h" ++ ++ /* ++ * implmentation of the DescribePublicAddresses|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_DescribePublicAddresses ++ { ++ ++ axutil_qname_t* qname; ++ adb_describePublicAddressesType_t* property_DescribePublicAddresses; ++ ++ ++ axis2_bool_t is_valid_DescribePublicAddresses; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_DescribePublicAddresses_t* AXIS2_CALL ++ adb_DescribePublicAddresses_create( ++ const axutil_env_t *env) ++ { ++ adb_DescribePublicAddresses_t *_DescribePublicAddresses = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _DescribePublicAddresses = (adb_DescribePublicAddresses_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_DescribePublicAddresses_t)); ++ ++ if(NULL == _DescribePublicAddresses) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_DescribePublicAddresses, 0, sizeof(adb_DescribePublicAddresses_t)); ++ ++ _DescribePublicAddresses->property_DescribePublicAddresses = NULL; ++ _DescribePublicAddresses->is_valid_DescribePublicAddresses = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "DescribePublicAddresses", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _DescribePublicAddresses->qname = qname; ++ ++ ++ return _DescribePublicAddresses; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_DescribePublicAddresses_free ( ++ adb_DescribePublicAddresses_t* _DescribePublicAddresses, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribePublicAddresses, AXIS2_FAILURE); ++ ++ adb_DescribePublicAddresses_reset_DescribePublicAddresses(_DescribePublicAddresses, env); ++ ++ if(_DescribePublicAddresses->qname) ++ { ++ axutil_qname_free (_DescribePublicAddresses->qname, env); ++ _DescribePublicAddresses->qname = NULL; ++ } ++ ++ ++ if(_DescribePublicAddresses) ++ { ++ AXIS2_FREE(env->allocator, _DescribePublicAddresses); ++ _DescribePublicAddresses = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_DescribePublicAddresses_deserialize( ++ adb_DescribePublicAddresses_t* _DescribePublicAddresses, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribePublicAddresses, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for DescribePublicAddresses : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _DescribePublicAddresses-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for DescribePublicAddresses : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_DescribePublicAddresses-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building DescribePublicAddresses element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "DescribePublicAddresses", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_describePublicAddressesType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_describePublicAddressesType_create(env); ++ ++ status = adb_describePublicAddressesType_deserialize((adb_describePublicAddressesType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element DescribePublicAddresses"); ++ } ++ else ++ { ++ status = adb_DescribePublicAddresses_set_DescribePublicAddresses(_DescribePublicAddresses, env, ++ (adb_describePublicAddressesType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for DescribePublicAddresses "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element DescribePublicAddresses missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribePublicAddresses_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_DescribePublicAddresses_declare_parent_namespaces( ++ adb_DescribePublicAddresses_t* _DescribePublicAddresses, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_DescribePublicAddresses_serialize( ++ adb_DescribePublicAddresses_t* _DescribePublicAddresses, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _DescribePublicAddresses, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "DescribePublicAddresses", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_DescribePublicAddresses->is_valid_DescribePublicAddresses) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("DescribePublicAddresses") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sDescribePublicAddresses xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("DescribePublicAddresses"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("DescribePublicAddresses"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing DescribePublicAddresses element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sDescribePublicAddresses", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_describePublicAddressesType_serialize(_DescribePublicAddresses->property_DescribePublicAddresses, ++ env, current_node, parent_element, ++ adb_describePublicAddressesType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for DescribePublicAddresses. ++ */ ++ adb_describePublicAddressesType_t* AXIS2_CALL ++ adb_DescribePublicAddresses_get_DescribePublicAddresses( ++ adb_DescribePublicAddresses_t* _DescribePublicAddresses, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _DescribePublicAddresses, NULL); ++ ++ ++ return _DescribePublicAddresses->property_DescribePublicAddresses; ++ } ++ ++ /** ++ * setter for DescribePublicAddresses ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribePublicAddresses_set_DescribePublicAddresses( ++ adb_DescribePublicAddresses_t* _DescribePublicAddresses, ++ const axutil_env_t *env, ++ adb_describePublicAddressesType_t* arg_DescribePublicAddresses) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribePublicAddresses, AXIS2_FAILURE); ++ ++ if(_DescribePublicAddresses->is_valid_DescribePublicAddresses && ++ arg_DescribePublicAddresses == _DescribePublicAddresses->property_DescribePublicAddresses) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_DescribePublicAddresses_reset_DescribePublicAddresses(_DescribePublicAddresses, env); ++ ++ ++ if(NULL == arg_DescribePublicAddresses) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _DescribePublicAddresses->property_DescribePublicAddresses = arg_DescribePublicAddresses; ++ _DescribePublicAddresses->is_valid_DescribePublicAddresses = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for DescribePublicAddresses ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribePublicAddresses_reset_DescribePublicAddresses( ++ adb_DescribePublicAddresses_t* _DescribePublicAddresses, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribePublicAddresses, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_DescribePublicAddresses->property_DescribePublicAddresses != NULL) ++ { ++ ++ ++ adb_describePublicAddressesType_free(_DescribePublicAddresses->property_DescribePublicAddresses, env); ++ _DescribePublicAddresses->property_DescribePublicAddresses = NULL; ++ } ++ ++ ++ ++ _DescribePublicAddresses->is_valid_DescribePublicAddresses = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether DescribePublicAddresses is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribePublicAddresses_is_DescribePublicAddresses_nil( ++ adb_DescribePublicAddresses_t* _DescribePublicAddresses, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _DescribePublicAddresses, AXIS2_TRUE); ++ ++ return !_DescribePublicAddresses->is_valid_DescribePublicAddresses; ++ } ++ ++ /** ++ * Set DescribePublicAddresses to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribePublicAddresses_set_DescribePublicAddresses_nil( ++ adb_DescribePublicAddresses_t* _DescribePublicAddresses, ++ const axutil_env_t *env) ++ { ++ return adb_DescribePublicAddresses_reset_DescribePublicAddresses(_DescribePublicAddresses, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_DescribePublicAddresses.h' +--- old/cluster/generated/adb_DescribePublicAddresses.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_DescribePublicAddresses.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_DESCRIBEPUBLICADDRESSES_H ++ #define ADB_DESCRIBEPUBLICADDRESSES_H ++ ++ /** ++ * adb_DescribePublicAddresses.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_DescribePublicAddresses class ++ */ ++ typedef struct adb_DescribePublicAddresses adb_DescribePublicAddresses_t; ++ ++ ++ #include "adb_describePublicAddressesType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_DescribePublicAddresses_t ++ * @param env pointer to environment struct ++ * @return newly created adb_DescribePublicAddresses_t object ++ */ ++ adb_DescribePublicAddresses_t* AXIS2_CALL ++ adb_DescribePublicAddresses_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_DescribePublicAddresses_t object ++ * @param _DescribePublicAddresses adb_DescribePublicAddresses_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribePublicAddresses_free ( ++ adb_DescribePublicAddresses_t* _DescribePublicAddresses, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for DescribePublicAddresses. ++ * @param _DescribePublicAddresses adb_DescribePublicAddresses_t object ++ * @param env pointer to environment struct ++ * @return adb_describePublicAddressesType_t* ++ */ ++ adb_describePublicAddressesType_t* AXIS2_CALL ++ adb_DescribePublicAddresses_get_DescribePublicAddresses( ++ adb_DescribePublicAddresses_t* _DescribePublicAddresses, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for DescribePublicAddresses. ++ * @param _DescribePublicAddresses adb_DescribePublicAddresses_t object ++ * @param env pointer to environment struct ++ * @param arg_DescribePublicAddresses adb_describePublicAddressesType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribePublicAddresses_set_DescribePublicAddresses( ++ adb_DescribePublicAddresses_t* _DescribePublicAddresses, ++ const axutil_env_t *env, ++ adb_describePublicAddressesType_t* arg_DescribePublicAddresses); ++ ++ /** ++ * Resetter for DescribePublicAddresses ++ * @param _DescribePublicAddresses adb_DescribePublicAddresses_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribePublicAddresses_reset_DescribePublicAddresses( ++ adb_DescribePublicAddresses_t* _DescribePublicAddresses, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether DescribePublicAddresses is nill ++ * @param _DescribePublicAddresses adb_DescribePublicAddresses_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribePublicAddresses_is_DescribePublicAddresses_nil( ++ adb_DescribePublicAddresses_t* _DescribePublicAddresses, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set DescribePublicAddresses to nill (currently the same as reset) ++ * @param _DescribePublicAddresses adb_DescribePublicAddresses_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribePublicAddresses_set_DescribePublicAddresses_nil( ++ adb_DescribePublicAddresses_t* _DescribePublicAddresses, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _DescribePublicAddresses adb_DescribePublicAddresses_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribePublicAddresses_deserialize( ++ adb_DescribePublicAddresses_t* _DescribePublicAddresses, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _DescribePublicAddresses adb_DescribePublicAddresses_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_DescribePublicAddresses_declare_parent_namespaces( ++ adb_DescribePublicAddresses_t* _DescribePublicAddresses, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _DescribePublicAddresses adb_DescribePublicAddresses_t object ++ * @param env pointer to environment struct ++ * @param DescribePublicAddresses_om_node node to serialize from ++ * @param DescribePublicAddresses_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_DescribePublicAddresses_serialize( ++ adb_DescribePublicAddresses_t* _DescribePublicAddresses, ++ const axutil_env_t *env, ++ axiom_node_t* DescribePublicAddresses_om_node, axiom_element_t *DescribePublicAddresses_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_DescribePublicAddresses is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribePublicAddresses_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_DESCRIBEPUBLICADDRESSES_H */ ++ ++ + +=== added file 'cluster/generated/adb_DescribePublicAddressesResponse.c' +--- old/cluster/generated/adb_DescribePublicAddressesResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_DescribePublicAddressesResponse.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_DescribePublicAddressesResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_DescribePublicAddressesResponse.h" ++ ++ /* ++ * implmentation of the DescribePublicAddressesResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_DescribePublicAddressesResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_describePublicAddressesResponseType_t* property_DescribePublicAddressesResponse; ++ ++ ++ axis2_bool_t is_valid_DescribePublicAddressesResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_DescribePublicAddressesResponse_t* AXIS2_CALL ++ adb_DescribePublicAddressesResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_DescribePublicAddressesResponse_t *_DescribePublicAddressesResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _DescribePublicAddressesResponse = (adb_DescribePublicAddressesResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_DescribePublicAddressesResponse_t)); ++ ++ if(NULL == _DescribePublicAddressesResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_DescribePublicAddressesResponse, 0, sizeof(adb_DescribePublicAddressesResponse_t)); ++ ++ _DescribePublicAddressesResponse->property_DescribePublicAddressesResponse = NULL; ++ _DescribePublicAddressesResponse->is_valid_DescribePublicAddressesResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "DescribePublicAddressesResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _DescribePublicAddressesResponse->qname = qname; ++ ++ ++ return _DescribePublicAddressesResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_DescribePublicAddressesResponse_free ( ++ adb_DescribePublicAddressesResponse_t* _DescribePublicAddressesResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribePublicAddressesResponse, AXIS2_FAILURE); ++ ++ adb_DescribePublicAddressesResponse_reset_DescribePublicAddressesResponse(_DescribePublicAddressesResponse, env); ++ ++ if(_DescribePublicAddressesResponse->qname) ++ { ++ axutil_qname_free (_DescribePublicAddressesResponse->qname, env); ++ _DescribePublicAddressesResponse->qname = NULL; ++ } ++ ++ ++ if(_DescribePublicAddressesResponse) ++ { ++ AXIS2_FREE(env->allocator, _DescribePublicAddressesResponse); ++ _DescribePublicAddressesResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_DescribePublicAddressesResponse_deserialize( ++ adb_DescribePublicAddressesResponse_t* _DescribePublicAddressesResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribePublicAddressesResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for DescribePublicAddressesResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _DescribePublicAddressesResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for DescribePublicAddressesResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_DescribePublicAddressesResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building DescribePublicAddressesResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "DescribePublicAddressesResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_describePublicAddressesResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_describePublicAddressesResponseType_create(env); ++ ++ status = adb_describePublicAddressesResponseType_deserialize((adb_describePublicAddressesResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element DescribePublicAddressesResponse"); ++ } ++ else ++ { ++ status = adb_DescribePublicAddressesResponse_set_DescribePublicAddressesResponse(_DescribePublicAddressesResponse, env, ++ (adb_describePublicAddressesResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for DescribePublicAddressesResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element DescribePublicAddressesResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribePublicAddressesResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_DescribePublicAddressesResponse_declare_parent_namespaces( ++ adb_DescribePublicAddressesResponse_t* _DescribePublicAddressesResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_DescribePublicAddressesResponse_serialize( ++ adb_DescribePublicAddressesResponse_t* _DescribePublicAddressesResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _DescribePublicAddressesResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "DescribePublicAddressesResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_DescribePublicAddressesResponse->is_valid_DescribePublicAddressesResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("DescribePublicAddressesResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sDescribePublicAddressesResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("DescribePublicAddressesResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("DescribePublicAddressesResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing DescribePublicAddressesResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sDescribePublicAddressesResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_describePublicAddressesResponseType_serialize(_DescribePublicAddressesResponse->property_DescribePublicAddressesResponse, ++ env, current_node, parent_element, ++ adb_describePublicAddressesResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for DescribePublicAddressesResponse. ++ */ ++ adb_describePublicAddressesResponseType_t* AXIS2_CALL ++ adb_DescribePublicAddressesResponse_get_DescribePublicAddressesResponse( ++ adb_DescribePublicAddressesResponse_t* _DescribePublicAddressesResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _DescribePublicAddressesResponse, NULL); ++ ++ ++ return _DescribePublicAddressesResponse->property_DescribePublicAddressesResponse; ++ } ++ ++ /** ++ * setter for DescribePublicAddressesResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribePublicAddressesResponse_set_DescribePublicAddressesResponse( ++ adb_DescribePublicAddressesResponse_t* _DescribePublicAddressesResponse, ++ const axutil_env_t *env, ++ adb_describePublicAddressesResponseType_t* arg_DescribePublicAddressesResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribePublicAddressesResponse, AXIS2_FAILURE); ++ ++ if(_DescribePublicAddressesResponse->is_valid_DescribePublicAddressesResponse && ++ arg_DescribePublicAddressesResponse == _DescribePublicAddressesResponse->property_DescribePublicAddressesResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_DescribePublicAddressesResponse_reset_DescribePublicAddressesResponse(_DescribePublicAddressesResponse, env); ++ ++ ++ if(NULL == arg_DescribePublicAddressesResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _DescribePublicAddressesResponse->property_DescribePublicAddressesResponse = arg_DescribePublicAddressesResponse; ++ _DescribePublicAddressesResponse->is_valid_DescribePublicAddressesResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for DescribePublicAddressesResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribePublicAddressesResponse_reset_DescribePublicAddressesResponse( ++ adb_DescribePublicAddressesResponse_t* _DescribePublicAddressesResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribePublicAddressesResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_DescribePublicAddressesResponse->property_DescribePublicAddressesResponse != NULL) ++ { ++ ++ ++ adb_describePublicAddressesResponseType_free(_DescribePublicAddressesResponse->property_DescribePublicAddressesResponse, env); ++ _DescribePublicAddressesResponse->property_DescribePublicAddressesResponse = NULL; ++ } ++ ++ ++ ++ _DescribePublicAddressesResponse->is_valid_DescribePublicAddressesResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether DescribePublicAddressesResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribePublicAddressesResponse_is_DescribePublicAddressesResponse_nil( ++ adb_DescribePublicAddressesResponse_t* _DescribePublicAddressesResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _DescribePublicAddressesResponse, AXIS2_TRUE); ++ ++ return !_DescribePublicAddressesResponse->is_valid_DescribePublicAddressesResponse; ++ } ++ ++ /** ++ * Set DescribePublicAddressesResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribePublicAddressesResponse_set_DescribePublicAddressesResponse_nil( ++ adb_DescribePublicAddressesResponse_t* _DescribePublicAddressesResponse, ++ const axutil_env_t *env) ++ { ++ return adb_DescribePublicAddressesResponse_reset_DescribePublicAddressesResponse(_DescribePublicAddressesResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_DescribePublicAddressesResponse.h' +--- old/cluster/generated/adb_DescribePublicAddressesResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_DescribePublicAddressesResponse.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_DESCRIBEPUBLICADDRESSESRESPONSE_H ++ #define ADB_DESCRIBEPUBLICADDRESSESRESPONSE_H ++ ++ /** ++ * adb_DescribePublicAddressesResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_DescribePublicAddressesResponse class ++ */ ++ typedef struct adb_DescribePublicAddressesResponse adb_DescribePublicAddressesResponse_t; ++ ++ ++ #include "adb_describePublicAddressesResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_DescribePublicAddressesResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_DescribePublicAddressesResponse_t object ++ */ ++ adb_DescribePublicAddressesResponse_t* AXIS2_CALL ++ adb_DescribePublicAddressesResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_DescribePublicAddressesResponse_t object ++ * @param _DescribePublicAddressesResponse adb_DescribePublicAddressesResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribePublicAddressesResponse_free ( ++ adb_DescribePublicAddressesResponse_t* _DescribePublicAddressesResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for DescribePublicAddressesResponse. ++ * @param _DescribePublicAddressesResponse adb_DescribePublicAddressesResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_describePublicAddressesResponseType_t* ++ */ ++ adb_describePublicAddressesResponseType_t* AXIS2_CALL ++ adb_DescribePublicAddressesResponse_get_DescribePublicAddressesResponse( ++ adb_DescribePublicAddressesResponse_t* _DescribePublicAddressesResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for DescribePublicAddressesResponse. ++ * @param _DescribePublicAddressesResponse adb_DescribePublicAddressesResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_DescribePublicAddressesResponse adb_describePublicAddressesResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribePublicAddressesResponse_set_DescribePublicAddressesResponse( ++ adb_DescribePublicAddressesResponse_t* _DescribePublicAddressesResponse, ++ const axutil_env_t *env, ++ adb_describePublicAddressesResponseType_t* arg_DescribePublicAddressesResponse); ++ ++ /** ++ * Resetter for DescribePublicAddressesResponse ++ * @param _DescribePublicAddressesResponse adb_DescribePublicAddressesResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribePublicAddressesResponse_reset_DescribePublicAddressesResponse( ++ adb_DescribePublicAddressesResponse_t* _DescribePublicAddressesResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether DescribePublicAddressesResponse is nill ++ * @param _DescribePublicAddressesResponse adb_DescribePublicAddressesResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribePublicAddressesResponse_is_DescribePublicAddressesResponse_nil( ++ adb_DescribePublicAddressesResponse_t* _DescribePublicAddressesResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set DescribePublicAddressesResponse to nill (currently the same as reset) ++ * @param _DescribePublicAddressesResponse adb_DescribePublicAddressesResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribePublicAddressesResponse_set_DescribePublicAddressesResponse_nil( ++ adb_DescribePublicAddressesResponse_t* _DescribePublicAddressesResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _DescribePublicAddressesResponse adb_DescribePublicAddressesResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribePublicAddressesResponse_deserialize( ++ adb_DescribePublicAddressesResponse_t* _DescribePublicAddressesResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _DescribePublicAddressesResponse adb_DescribePublicAddressesResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_DescribePublicAddressesResponse_declare_parent_namespaces( ++ adb_DescribePublicAddressesResponse_t* _DescribePublicAddressesResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _DescribePublicAddressesResponse adb_DescribePublicAddressesResponse_t object ++ * @param env pointer to environment struct ++ * @param DescribePublicAddressesResponse_om_node node to serialize from ++ * @param DescribePublicAddressesResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_DescribePublicAddressesResponse_serialize( ++ adb_DescribePublicAddressesResponse_t* _DescribePublicAddressesResponse, ++ const axutil_env_t *env, ++ axiom_node_t* DescribePublicAddressesResponse_om_node, axiom_element_t *DescribePublicAddressesResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_DescribePublicAddressesResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribePublicAddressesResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_DESCRIBEPUBLICADDRESSESRESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_DescribeResources.c' +--- old/cluster/generated/adb_DescribeResources.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_DescribeResources.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_DescribeResources.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_DescribeResources.h" ++ ++ /* ++ * implmentation of the DescribeResources|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_DescribeResources ++ { ++ ++ axutil_qname_t* qname; ++ adb_describeResourcesType_t* property_DescribeResources; ++ ++ ++ axis2_bool_t is_valid_DescribeResources; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_DescribeResources_t* AXIS2_CALL ++ adb_DescribeResources_create( ++ const axutil_env_t *env) ++ { ++ adb_DescribeResources_t *_DescribeResources = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _DescribeResources = (adb_DescribeResources_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_DescribeResources_t)); ++ ++ if(NULL == _DescribeResources) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_DescribeResources, 0, sizeof(adb_DescribeResources_t)); ++ ++ _DescribeResources->property_DescribeResources = NULL; ++ _DescribeResources->is_valid_DescribeResources = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "DescribeResources", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _DescribeResources->qname = qname; ++ ++ ++ return _DescribeResources; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeResources_free ( ++ adb_DescribeResources_t* _DescribeResources, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeResources, AXIS2_FAILURE); ++ ++ adb_DescribeResources_reset_DescribeResources(_DescribeResources, env); ++ ++ if(_DescribeResources->qname) ++ { ++ axutil_qname_free (_DescribeResources->qname, env); ++ _DescribeResources->qname = NULL; ++ } ++ ++ ++ if(_DescribeResources) ++ { ++ AXIS2_FREE(env->allocator, _DescribeResources); ++ _DescribeResources = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeResources_deserialize( ++ adb_DescribeResources_t* _DescribeResources, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeResources, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for DescribeResources : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _DescribeResources-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for DescribeResources : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_DescribeResources-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building DescribeResources element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "DescribeResources", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_describeResourcesType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_describeResourcesType_create(env); ++ ++ status = adb_describeResourcesType_deserialize((adb_describeResourcesType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element DescribeResources"); ++ } ++ else ++ { ++ status = adb_DescribeResources_set_DescribeResources(_DescribeResources, env, ++ (adb_describeResourcesType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for DescribeResources "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element DescribeResources missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribeResources_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_DescribeResources_declare_parent_namespaces( ++ adb_DescribeResources_t* _DescribeResources, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_DescribeResources_serialize( ++ adb_DescribeResources_t* _DescribeResources, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _DescribeResources, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "DescribeResources", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_DescribeResources->is_valid_DescribeResources) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("DescribeResources") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sDescribeResources xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("DescribeResources"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("DescribeResources"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing DescribeResources element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sDescribeResources", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_describeResourcesType_serialize(_DescribeResources->property_DescribeResources, ++ env, current_node, parent_element, ++ adb_describeResourcesType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for DescribeResources. ++ */ ++ adb_describeResourcesType_t* AXIS2_CALL ++ adb_DescribeResources_get_DescribeResources( ++ adb_DescribeResources_t* _DescribeResources, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _DescribeResources, NULL); ++ ++ ++ return _DescribeResources->property_DescribeResources; ++ } ++ ++ /** ++ * setter for DescribeResources ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeResources_set_DescribeResources( ++ adb_DescribeResources_t* _DescribeResources, ++ const axutil_env_t *env, ++ adb_describeResourcesType_t* arg_DescribeResources) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeResources, AXIS2_FAILURE); ++ ++ if(_DescribeResources->is_valid_DescribeResources && ++ arg_DescribeResources == _DescribeResources->property_DescribeResources) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_DescribeResources_reset_DescribeResources(_DescribeResources, env); ++ ++ ++ if(NULL == arg_DescribeResources) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _DescribeResources->property_DescribeResources = arg_DescribeResources; ++ _DescribeResources->is_valid_DescribeResources = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for DescribeResources ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeResources_reset_DescribeResources( ++ adb_DescribeResources_t* _DescribeResources, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeResources, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_DescribeResources->property_DescribeResources != NULL) ++ { ++ ++ ++ adb_describeResourcesType_free(_DescribeResources->property_DescribeResources, env); ++ _DescribeResources->property_DescribeResources = NULL; ++ } ++ ++ ++ ++ _DescribeResources->is_valid_DescribeResources = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether DescribeResources is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribeResources_is_DescribeResources_nil( ++ adb_DescribeResources_t* _DescribeResources, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeResources, AXIS2_TRUE); ++ ++ return !_DescribeResources->is_valid_DescribeResources; ++ } ++ ++ /** ++ * Set DescribeResources to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeResources_set_DescribeResources_nil( ++ adb_DescribeResources_t* _DescribeResources, ++ const axutil_env_t *env) ++ { ++ return adb_DescribeResources_reset_DescribeResources(_DescribeResources, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_DescribeResources.h' +--- old/cluster/generated/adb_DescribeResources.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_DescribeResources.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_DESCRIBERESOURCES_H ++ #define ADB_DESCRIBERESOURCES_H ++ ++ /** ++ * adb_DescribeResources.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_DescribeResources class ++ */ ++ typedef struct adb_DescribeResources adb_DescribeResources_t; ++ ++ ++ #include "adb_describeResourcesType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_DescribeResources_t ++ * @param env pointer to environment struct ++ * @return newly created adb_DescribeResources_t object ++ */ ++ adb_DescribeResources_t* AXIS2_CALL ++ adb_DescribeResources_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_DescribeResources_t object ++ * @param _DescribeResources adb_DescribeResources_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeResources_free ( ++ adb_DescribeResources_t* _DescribeResources, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for DescribeResources. ++ * @param _DescribeResources adb_DescribeResources_t object ++ * @param env pointer to environment struct ++ * @return adb_describeResourcesType_t* ++ */ ++ adb_describeResourcesType_t* AXIS2_CALL ++ adb_DescribeResources_get_DescribeResources( ++ adb_DescribeResources_t* _DescribeResources, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for DescribeResources. ++ * @param _DescribeResources adb_DescribeResources_t object ++ * @param env pointer to environment struct ++ * @param arg_DescribeResources adb_describeResourcesType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeResources_set_DescribeResources( ++ adb_DescribeResources_t* _DescribeResources, ++ const axutil_env_t *env, ++ adb_describeResourcesType_t* arg_DescribeResources); ++ ++ /** ++ * Resetter for DescribeResources ++ * @param _DescribeResources adb_DescribeResources_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeResources_reset_DescribeResources( ++ adb_DescribeResources_t* _DescribeResources, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether DescribeResources is nill ++ * @param _DescribeResources adb_DescribeResources_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribeResources_is_DescribeResources_nil( ++ adb_DescribeResources_t* _DescribeResources, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set DescribeResources to nill (currently the same as reset) ++ * @param _DescribeResources adb_DescribeResources_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeResources_set_DescribeResources_nil( ++ adb_DescribeResources_t* _DescribeResources, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _DescribeResources adb_DescribeResources_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeResources_deserialize( ++ adb_DescribeResources_t* _DescribeResources, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _DescribeResources adb_DescribeResources_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_DescribeResources_declare_parent_namespaces( ++ adb_DescribeResources_t* _DescribeResources, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _DescribeResources adb_DescribeResources_t object ++ * @param env pointer to environment struct ++ * @param DescribeResources_om_node node to serialize from ++ * @param DescribeResources_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_DescribeResources_serialize( ++ adb_DescribeResources_t* _DescribeResources, ++ const axutil_env_t *env, ++ axiom_node_t* DescribeResources_om_node, axiom_element_t *DescribeResources_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_DescribeResources is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribeResources_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_DESCRIBERESOURCES_H */ ++ ++ + +=== added file 'cluster/generated/adb_DescribeResourcesResponse.c' +--- old/cluster/generated/adb_DescribeResourcesResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_DescribeResourcesResponse.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_DescribeResourcesResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_DescribeResourcesResponse.h" ++ ++ /* ++ * implmentation of the DescribeResourcesResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_DescribeResourcesResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_describeResourcesResponseType_t* property_DescribeResourcesResponse; ++ ++ ++ axis2_bool_t is_valid_DescribeResourcesResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_DescribeResourcesResponse_t* AXIS2_CALL ++ adb_DescribeResourcesResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_DescribeResourcesResponse_t *_DescribeResourcesResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _DescribeResourcesResponse = (adb_DescribeResourcesResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_DescribeResourcesResponse_t)); ++ ++ if(NULL == _DescribeResourcesResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_DescribeResourcesResponse, 0, sizeof(adb_DescribeResourcesResponse_t)); ++ ++ _DescribeResourcesResponse->property_DescribeResourcesResponse = NULL; ++ _DescribeResourcesResponse->is_valid_DescribeResourcesResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "DescribeResourcesResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _DescribeResourcesResponse->qname = qname; ++ ++ ++ return _DescribeResourcesResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeResourcesResponse_free ( ++ adb_DescribeResourcesResponse_t* _DescribeResourcesResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeResourcesResponse, AXIS2_FAILURE); ++ ++ adb_DescribeResourcesResponse_reset_DescribeResourcesResponse(_DescribeResourcesResponse, env); ++ ++ if(_DescribeResourcesResponse->qname) ++ { ++ axutil_qname_free (_DescribeResourcesResponse->qname, env); ++ _DescribeResourcesResponse->qname = NULL; ++ } ++ ++ ++ if(_DescribeResourcesResponse) ++ { ++ AXIS2_FREE(env->allocator, _DescribeResourcesResponse); ++ _DescribeResourcesResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeResourcesResponse_deserialize( ++ adb_DescribeResourcesResponse_t* _DescribeResourcesResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeResourcesResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for DescribeResourcesResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _DescribeResourcesResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for DescribeResourcesResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_DescribeResourcesResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building DescribeResourcesResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "DescribeResourcesResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_describeResourcesResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_describeResourcesResponseType_create(env); ++ ++ status = adb_describeResourcesResponseType_deserialize((adb_describeResourcesResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element DescribeResourcesResponse"); ++ } ++ else ++ { ++ status = adb_DescribeResourcesResponse_set_DescribeResourcesResponse(_DescribeResourcesResponse, env, ++ (adb_describeResourcesResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for DescribeResourcesResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element DescribeResourcesResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribeResourcesResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_DescribeResourcesResponse_declare_parent_namespaces( ++ adb_DescribeResourcesResponse_t* _DescribeResourcesResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_DescribeResourcesResponse_serialize( ++ adb_DescribeResourcesResponse_t* _DescribeResourcesResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _DescribeResourcesResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "DescribeResourcesResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_DescribeResourcesResponse->is_valid_DescribeResourcesResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("DescribeResourcesResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sDescribeResourcesResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("DescribeResourcesResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("DescribeResourcesResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing DescribeResourcesResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sDescribeResourcesResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_describeResourcesResponseType_serialize(_DescribeResourcesResponse->property_DescribeResourcesResponse, ++ env, current_node, parent_element, ++ adb_describeResourcesResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for DescribeResourcesResponse. ++ */ ++ adb_describeResourcesResponseType_t* AXIS2_CALL ++ adb_DescribeResourcesResponse_get_DescribeResourcesResponse( ++ adb_DescribeResourcesResponse_t* _DescribeResourcesResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _DescribeResourcesResponse, NULL); ++ ++ ++ return _DescribeResourcesResponse->property_DescribeResourcesResponse; ++ } ++ ++ /** ++ * setter for DescribeResourcesResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeResourcesResponse_set_DescribeResourcesResponse( ++ adb_DescribeResourcesResponse_t* _DescribeResourcesResponse, ++ const axutil_env_t *env, ++ adb_describeResourcesResponseType_t* arg_DescribeResourcesResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeResourcesResponse, AXIS2_FAILURE); ++ ++ if(_DescribeResourcesResponse->is_valid_DescribeResourcesResponse && ++ arg_DescribeResourcesResponse == _DescribeResourcesResponse->property_DescribeResourcesResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_DescribeResourcesResponse_reset_DescribeResourcesResponse(_DescribeResourcesResponse, env); ++ ++ ++ if(NULL == arg_DescribeResourcesResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _DescribeResourcesResponse->property_DescribeResourcesResponse = arg_DescribeResourcesResponse; ++ _DescribeResourcesResponse->is_valid_DescribeResourcesResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for DescribeResourcesResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeResourcesResponse_reset_DescribeResourcesResponse( ++ adb_DescribeResourcesResponse_t* _DescribeResourcesResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeResourcesResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_DescribeResourcesResponse->property_DescribeResourcesResponse != NULL) ++ { ++ ++ ++ adb_describeResourcesResponseType_free(_DescribeResourcesResponse->property_DescribeResourcesResponse, env); ++ _DescribeResourcesResponse->property_DescribeResourcesResponse = NULL; ++ } ++ ++ ++ ++ _DescribeResourcesResponse->is_valid_DescribeResourcesResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether DescribeResourcesResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribeResourcesResponse_is_DescribeResourcesResponse_nil( ++ adb_DescribeResourcesResponse_t* _DescribeResourcesResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _DescribeResourcesResponse, AXIS2_TRUE); ++ ++ return !_DescribeResourcesResponse->is_valid_DescribeResourcesResponse; ++ } ++ ++ /** ++ * Set DescribeResourcesResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeResourcesResponse_set_DescribeResourcesResponse_nil( ++ adb_DescribeResourcesResponse_t* _DescribeResourcesResponse, ++ const axutil_env_t *env) ++ { ++ return adb_DescribeResourcesResponse_reset_DescribeResourcesResponse(_DescribeResourcesResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_DescribeResourcesResponse.h' +--- old/cluster/generated/adb_DescribeResourcesResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_DescribeResourcesResponse.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_DESCRIBERESOURCESRESPONSE_H ++ #define ADB_DESCRIBERESOURCESRESPONSE_H ++ ++ /** ++ * adb_DescribeResourcesResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_DescribeResourcesResponse class ++ */ ++ typedef struct adb_DescribeResourcesResponse adb_DescribeResourcesResponse_t; ++ ++ ++ #include "adb_describeResourcesResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_DescribeResourcesResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_DescribeResourcesResponse_t object ++ */ ++ adb_DescribeResourcesResponse_t* AXIS2_CALL ++ adb_DescribeResourcesResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_DescribeResourcesResponse_t object ++ * @param _DescribeResourcesResponse adb_DescribeResourcesResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeResourcesResponse_free ( ++ adb_DescribeResourcesResponse_t* _DescribeResourcesResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for DescribeResourcesResponse. ++ * @param _DescribeResourcesResponse adb_DescribeResourcesResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_describeResourcesResponseType_t* ++ */ ++ adb_describeResourcesResponseType_t* AXIS2_CALL ++ adb_DescribeResourcesResponse_get_DescribeResourcesResponse( ++ adb_DescribeResourcesResponse_t* _DescribeResourcesResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for DescribeResourcesResponse. ++ * @param _DescribeResourcesResponse adb_DescribeResourcesResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_DescribeResourcesResponse adb_describeResourcesResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeResourcesResponse_set_DescribeResourcesResponse( ++ adb_DescribeResourcesResponse_t* _DescribeResourcesResponse, ++ const axutil_env_t *env, ++ adb_describeResourcesResponseType_t* arg_DescribeResourcesResponse); ++ ++ /** ++ * Resetter for DescribeResourcesResponse ++ * @param _DescribeResourcesResponse adb_DescribeResourcesResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeResourcesResponse_reset_DescribeResourcesResponse( ++ adb_DescribeResourcesResponse_t* _DescribeResourcesResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether DescribeResourcesResponse is nill ++ * @param _DescribeResourcesResponse adb_DescribeResourcesResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribeResourcesResponse_is_DescribeResourcesResponse_nil( ++ adb_DescribeResourcesResponse_t* _DescribeResourcesResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set DescribeResourcesResponse to nill (currently the same as reset) ++ * @param _DescribeResourcesResponse adb_DescribeResourcesResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeResourcesResponse_set_DescribeResourcesResponse_nil( ++ adb_DescribeResourcesResponse_t* _DescribeResourcesResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _DescribeResourcesResponse adb_DescribeResourcesResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DescribeResourcesResponse_deserialize( ++ adb_DescribeResourcesResponse_t* _DescribeResourcesResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _DescribeResourcesResponse adb_DescribeResourcesResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_DescribeResourcesResponse_declare_parent_namespaces( ++ adb_DescribeResourcesResponse_t* _DescribeResourcesResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _DescribeResourcesResponse adb_DescribeResourcesResponse_t object ++ * @param env pointer to environment struct ++ * @param DescribeResourcesResponse_om_node node to serialize from ++ * @param DescribeResourcesResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_DescribeResourcesResponse_serialize( ++ adb_DescribeResourcesResponse_t* _DescribeResourcesResponse, ++ const axutil_env_t *env, ++ axiom_node_t* DescribeResourcesResponse_om_node, axiom_element_t *DescribeResourcesResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_DescribeResourcesResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DescribeResourcesResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_DESCRIBERESOURCESRESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_DetachVolume.c' +--- old/cluster/generated/adb_DetachVolume.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_DetachVolume.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_DetachVolume.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_DetachVolume.h" ++ ++ /* ++ * implmentation of the DetachVolume|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_DetachVolume ++ { ++ ++ axutil_qname_t* qname; ++ adb_detachVolumeType_t* property_DetachVolume; ++ ++ ++ axis2_bool_t is_valid_DetachVolume; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_DetachVolume_t* AXIS2_CALL ++ adb_DetachVolume_create( ++ const axutil_env_t *env) ++ { ++ adb_DetachVolume_t *_DetachVolume = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _DetachVolume = (adb_DetachVolume_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_DetachVolume_t)); ++ ++ if(NULL == _DetachVolume) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_DetachVolume, 0, sizeof(adb_DetachVolume_t)); ++ ++ _DetachVolume->property_DetachVolume = NULL; ++ _DetachVolume->is_valid_DetachVolume = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "DetachVolume", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _DetachVolume->qname = qname; ++ ++ ++ return _DetachVolume; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_DetachVolume_free ( ++ adb_DetachVolume_t* _DetachVolume, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DetachVolume, AXIS2_FAILURE); ++ ++ adb_DetachVolume_reset_DetachVolume(_DetachVolume, env); ++ ++ if(_DetachVolume->qname) ++ { ++ axutil_qname_free (_DetachVolume->qname, env); ++ _DetachVolume->qname = NULL; ++ } ++ ++ ++ if(_DetachVolume) ++ { ++ AXIS2_FREE(env->allocator, _DetachVolume); ++ _DetachVolume = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_DetachVolume_deserialize( ++ adb_DetachVolume_t* _DetachVolume, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DetachVolume, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for DetachVolume : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _DetachVolume-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for DetachVolume : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_DetachVolume-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building DetachVolume element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "DetachVolume", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_detachVolumeType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_detachVolumeType_create(env); ++ ++ status = adb_detachVolumeType_deserialize((adb_detachVolumeType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element DetachVolume"); ++ } ++ else ++ { ++ status = adb_DetachVolume_set_DetachVolume(_DetachVolume, env, ++ (adb_detachVolumeType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for DetachVolume "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element DetachVolume missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_DetachVolume_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_DetachVolume_declare_parent_namespaces( ++ adb_DetachVolume_t* _DetachVolume, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_DetachVolume_serialize( ++ adb_DetachVolume_t* _DetachVolume, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _DetachVolume, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "DetachVolume", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_DetachVolume->is_valid_DetachVolume) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("DetachVolume") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sDetachVolume xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("DetachVolume"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("DetachVolume"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing DetachVolume element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sDetachVolume", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_detachVolumeType_serialize(_DetachVolume->property_DetachVolume, ++ env, current_node, parent_element, ++ adb_detachVolumeType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for DetachVolume. ++ */ ++ adb_detachVolumeType_t* AXIS2_CALL ++ adb_DetachVolume_get_DetachVolume( ++ adb_DetachVolume_t* _DetachVolume, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _DetachVolume, NULL); ++ ++ ++ return _DetachVolume->property_DetachVolume; ++ } ++ ++ /** ++ * setter for DetachVolume ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DetachVolume_set_DetachVolume( ++ adb_DetachVolume_t* _DetachVolume, ++ const axutil_env_t *env, ++ adb_detachVolumeType_t* arg_DetachVolume) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DetachVolume, AXIS2_FAILURE); ++ ++ if(_DetachVolume->is_valid_DetachVolume && ++ arg_DetachVolume == _DetachVolume->property_DetachVolume) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_DetachVolume_reset_DetachVolume(_DetachVolume, env); ++ ++ ++ if(NULL == arg_DetachVolume) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _DetachVolume->property_DetachVolume = arg_DetachVolume; ++ _DetachVolume->is_valid_DetachVolume = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for DetachVolume ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DetachVolume_reset_DetachVolume( ++ adb_DetachVolume_t* _DetachVolume, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DetachVolume, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_DetachVolume->property_DetachVolume != NULL) ++ { ++ ++ ++ adb_detachVolumeType_free(_DetachVolume->property_DetachVolume, env); ++ _DetachVolume->property_DetachVolume = NULL; ++ } ++ ++ ++ ++ _DetachVolume->is_valid_DetachVolume = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether DetachVolume is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DetachVolume_is_DetachVolume_nil( ++ adb_DetachVolume_t* _DetachVolume, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _DetachVolume, AXIS2_TRUE); ++ ++ return !_DetachVolume->is_valid_DetachVolume; ++ } ++ ++ /** ++ * Set DetachVolume to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DetachVolume_set_DetachVolume_nil( ++ adb_DetachVolume_t* _DetachVolume, ++ const axutil_env_t *env) ++ { ++ return adb_DetachVolume_reset_DetachVolume(_DetachVolume, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_DetachVolume.h' +--- old/cluster/generated/adb_DetachVolume.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_DetachVolume.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_DETACHVOLUME_H ++ #define ADB_DETACHVOLUME_H ++ ++ /** ++ * adb_DetachVolume.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_DetachVolume class ++ */ ++ typedef struct adb_DetachVolume adb_DetachVolume_t; ++ ++ ++ #include "adb_detachVolumeType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_DetachVolume_t ++ * @param env pointer to environment struct ++ * @return newly created adb_DetachVolume_t object ++ */ ++ adb_DetachVolume_t* AXIS2_CALL ++ adb_DetachVolume_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_DetachVolume_t object ++ * @param _DetachVolume adb_DetachVolume_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DetachVolume_free ( ++ adb_DetachVolume_t* _DetachVolume, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for DetachVolume. ++ * @param _DetachVolume adb_DetachVolume_t object ++ * @param env pointer to environment struct ++ * @return adb_detachVolumeType_t* ++ */ ++ adb_detachVolumeType_t* AXIS2_CALL ++ adb_DetachVolume_get_DetachVolume( ++ adb_DetachVolume_t* _DetachVolume, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for DetachVolume. ++ * @param _DetachVolume adb_DetachVolume_t object ++ * @param env pointer to environment struct ++ * @param arg_DetachVolume adb_detachVolumeType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DetachVolume_set_DetachVolume( ++ adb_DetachVolume_t* _DetachVolume, ++ const axutil_env_t *env, ++ adb_detachVolumeType_t* arg_DetachVolume); ++ ++ /** ++ * Resetter for DetachVolume ++ * @param _DetachVolume adb_DetachVolume_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DetachVolume_reset_DetachVolume( ++ adb_DetachVolume_t* _DetachVolume, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether DetachVolume is nill ++ * @param _DetachVolume adb_DetachVolume_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DetachVolume_is_DetachVolume_nil( ++ adb_DetachVolume_t* _DetachVolume, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set DetachVolume to nill (currently the same as reset) ++ * @param _DetachVolume adb_DetachVolume_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DetachVolume_set_DetachVolume_nil( ++ adb_DetachVolume_t* _DetachVolume, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _DetachVolume adb_DetachVolume_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DetachVolume_deserialize( ++ adb_DetachVolume_t* _DetachVolume, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _DetachVolume adb_DetachVolume_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_DetachVolume_declare_parent_namespaces( ++ adb_DetachVolume_t* _DetachVolume, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _DetachVolume adb_DetachVolume_t object ++ * @param env pointer to environment struct ++ * @param DetachVolume_om_node node to serialize from ++ * @param DetachVolume_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_DetachVolume_serialize( ++ adb_DetachVolume_t* _DetachVolume, ++ const axutil_env_t *env, ++ axiom_node_t* DetachVolume_om_node, axiom_element_t *DetachVolume_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_DetachVolume is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DetachVolume_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_DETACHVOLUME_H */ ++ ++ + +=== added file 'cluster/generated/adb_DetachVolumeResponse.c' +--- old/cluster/generated/adb_DetachVolumeResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_DetachVolumeResponse.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_DetachVolumeResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_DetachVolumeResponse.h" ++ ++ /* ++ * implmentation of the DetachVolumeResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_DetachVolumeResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_detachVolumeResponseType_t* property_DetachVolumeResponse; ++ ++ ++ axis2_bool_t is_valid_DetachVolumeResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_DetachVolumeResponse_t* AXIS2_CALL ++ adb_DetachVolumeResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_DetachVolumeResponse_t *_DetachVolumeResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _DetachVolumeResponse = (adb_DetachVolumeResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_DetachVolumeResponse_t)); ++ ++ if(NULL == _DetachVolumeResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_DetachVolumeResponse, 0, sizeof(adb_DetachVolumeResponse_t)); ++ ++ _DetachVolumeResponse->property_DetachVolumeResponse = NULL; ++ _DetachVolumeResponse->is_valid_DetachVolumeResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "DetachVolumeResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _DetachVolumeResponse->qname = qname; ++ ++ ++ return _DetachVolumeResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_DetachVolumeResponse_free ( ++ adb_DetachVolumeResponse_t* _DetachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DetachVolumeResponse, AXIS2_FAILURE); ++ ++ adb_DetachVolumeResponse_reset_DetachVolumeResponse(_DetachVolumeResponse, env); ++ ++ if(_DetachVolumeResponse->qname) ++ { ++ axutil_qname_free (_DetachVolumeResponse->qname, env); ++ _DetachVolumeResponse->qname = NULL; ++ } ++ ++ ++ if(_DetachVolumeResponse) ++ { ++ AXIS2_FREE(env->allocator, _DetachVolumeResponse); ++ _DetachVolumeResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_DetachVolumeResponse_deserialize( ++ adb_DetachVolumeResponse_t* _DetachVolumeResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DetachVolumeResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for DetachVolumeResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _DetachVolumeResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for DetachVolumeResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_DetachVolumeResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building DetachVolumeResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "DetachVolumeResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_detachVolumeResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_detachVolumeResponseType_create(env); ++ ++ status = adb_detachVolumeResponseType_deserialize((adb_detachVolumeResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element DetachVolumeResponse"); ++ } ++ else ++ { ++ status = adb_DetachVolumeResponse_set_DetachVolumeResponse(_DetachVolumeResponse, env, ++ (adb_detachVolumeResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for DetachVolumeResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element DetachVolumeResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_DetachVolumeResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_DetachVolumeResponse_declare_parent_namespaces( ++ adb_DetachVolumeResponse_t* _DetachVolumeResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_DetachVolumeResponse_serialize( ++ adb_DetachVolumeResponse_t* _DetachVolumeResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _DetachVolumeResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "DetachVolumeResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_DetachVolumeResponse->is_valid_DetachVolumeResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("DetachVolumeResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sDetachVolumeResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("DetachVolumeResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("DetachVolumeResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing DetachVolumeResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sDetachVolumeResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_detachVolumeResponseType_serialize(_DetachVolumeResponse->property_DetachVolumeResponse, ++ env, current_node, parent_element, ++ adb_detachVolumeResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for DetachVolumeResponse. ++ */ ++ adb_detachVolumeResponseType_t* AXIS2_CALL ++ adb_DetachVolumeResponse_get_DetachVolumeResponse( ++ adb_DetachVolumeResponse_t* _DetachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _DetachVolumeResponse, NULL); ++ ++ ++ return _DetachVolumeResponse->property_DetachVolumeResponse; ++ } ++ ++ /** ++ * setter for DetachVolumeResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DetachVolumeResponse_set_DetachVolumeResponse( ++ adb_DetachVolumeResponse_t* _DetachVolumeResponse, ++ const axutil_env_t *env, ++ adb_detachVolumeResponseType_t* arg_DetachVolumeResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DetachVolumeResponse, AXIS2_FAILURE); ++ ++ if(_DetachVolumeResponse->is_valid_DetachVolumeResponse && ++ arg_DetachVolumeResponse == _DetachVolumeResponse->property_DetachVolumeResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_DetachVolumeResponse_reset_DetachVolumeResponse(_DetachVolumeResponse, env); ++ ++ ++ if(NULL == arg_DetachVolumeResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _DetachVolumeResponse->property_DetachVolumeResponse = arg_DetachVolumeResponse; ++ _DetachVolumeResponse->is_valid_DetachVolumeResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for DetachVolumeResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DetachVolumeResponse_reset_DetachVolumeResponse( ++ adb_DetachVolumeResponse_t* _DetachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _DetachVolumeResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_DetachVolumeResponse->property_DetachVolumeResponse != NULL) ++ { ++ ++ ++ adb_detachVolumeResponseType_free(_DetachVolumeResponse->property_DetachVolumeResponse, env); ++ _DetachVolumeResponse->property_DetachVolumeResponse = NULL; ++ } ++ ++ ++ ++ _DetachVolumeResponse->is_valid_DetachVolumeResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether DetachVolumeResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DetachVolumeResponse_is_DetachVolumeResponse_nil( ++ adb_DetachVolumeResponse_t* _DetachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _DetachVolumeResponse, AXIS2_TRUE); ++ ++ return !_DetachVolumeResponse->is_valid_DetachVolumeResponse; ++ } ++ ++ /** ++ * Set DetachVolumeResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DetachVolumeResponse_set_DetachVolumeResponse_nil( ++ adb_DetachVolumeResponse_t* _DetachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ return adb_DetachVolumeResponse_reset_DetachVolumeResponse(_DetachVolumeResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_DetachVolumeResponse.h' +--- old/cluster/generated/adb_DetachVolumeResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_DetachVolumeResponse.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_DETACHVOLUMERESPONSE_H ++ #define ADB_DETACHVOLUMERESPONSE_H ++ ++ /** ++ * adb_DetachVolumeResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_DetachVolumeResponse class ++ */ ++ typedef struct adb_DetachVolumeResponse adb_DetachVolumeResponse_t; ++ ++ ++ #include "adb_detachVolumeResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_DetachVolumeResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_DetachVolumeResponse_t object ++ */ ++ adb_DetachVolumeResponse_t* AXIS2_CALL ++ adb_DetachVolumeResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_DetachVolumeResponse_t object ++ * @param _DetachVolumeResponse adb_DetachVolumeResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DetachVolumeResponse_free ( ++ adb_DetachVolumeResponse_t* _DetachVolumeResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for DetachVolumeResponse. ++ * @param _DetachVolumeResponse adb_DetachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_detachVolumeResponseType_t* ++ */ ++ adb_detachVolumeResponseType_t* AXIS2_CALL ++ adb_DetachVolumeResponse_get_DetachVolumeResponse( ++ adb_DetachVolumeResponse_t* _DetachVolumeResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for DetachVolumeResponse. ++ * @param _DetachVolumeResponse adb_DetachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_DetachVolumeResponse adb_detachVolumeResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DetachVolumeResponse_set_DetachVolumeResponse( ++ adb_DetachVolumeResponse_t* _DetachVolumeResponse, ++ const axutil_env_t *env, ++ adb_detachVolumeResponseType_t* arg_DetachVolumeResponse); ++ ++ /** ++ * Resetter for DetachVolumeResponse ++ * @param _DetachVolumeResponse adb_DetachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DetachVolumeResponse_reset_DetachVolumeResponse( ++ adb_DetachVolumeResponse_t* _DetachVolumeResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether DetachVolumeResponse is nill ++ * @param _DetachVolumeResponse adb_DetachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DetachVolumeResponse_is_DetachVolumeResponse_nil( ++ adb_DetachVolumeResponse_t* _DetachVolumeResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set DetachVolumeResponse to nill (currently the same as reset) ++ * @param _DetachVolumeResponse adb_DetachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DetachVolumeResponse_set_DetachVolumeResponse_nil( ++ adb_DetachVolumeResponse_t* _DetachVolumeResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _DetachVolumeResponse adb_DetachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_DetachVolumeResponse_deserialize( ++ adb_DetachVolumeResponse_t* _DetachVolumeResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _DetachVolumeResponse adb_DetachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_DetachVolumeResponse_declare_parent_namespaces( ++ adb_DetachVolumeResponse_t* _DetachVolumeResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _DetachVolumeResponse adb_DetachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @param DetachVolumeResponse_om_node node to serialize from ++ * @param DetachVolumeResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_DetachVolumeResponse_serialize( ++ adb_DetachVolumeResponse_t* _DetachVolumeResponse, ++ const axutil_env_t *env, ++ axiom_node_t* DetachVolumeResponse_om_node, axiom_element_t *DetachVolumeResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_DetachVolumeResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_DetachVolumeResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_DETACHVOLUMERESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_GetConsoleOutput.c' +--- old/cluster/generated/adb_GetConsoleOutput.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_GetConsoleOutput.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_GetConsoleOutput.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_GetConsoleOutput.h" ++ ++ /* ++ * implmentation of the GetConsoleOutput|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_GetConsoleOutput ++ { ++ ++ axutil_qname_t* qname; ++ adb_getConsoleOutputType_t* property_GetConsoleOutput; ++ ++ ++ axis2_bool_t is_valid_GetConsoleOutput; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_GetConsoleOutput_t* AXIS2_CALL ++ adb_GetConsoleOutput_create( ++ const axutil_env_t *env) ++ { ++ adb_GetConsoleOutput_t *_GetConsoleOutput = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _GetConsoleOutput = (adb_GetConsoleOutput_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_GetConsoleOutput_t)); ++ ++ if(NULL == _GetConsoleOutput) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_GetConsoleOutput, 0, sizeof(adb_GetConsoleOutput_t)); ++ ++ _GetConsoleOutput->property_GetConsoleOutput = NULL; ++ _GetConsoleOutput->is_valid_GetConsoleOutput = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "GetConsoleOutput", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _GetConsoleOutput->qname = qname; ++ ++ ++ return _GetConsoleOutput; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_GetConsoleOutput_free ( ++ adb_GetConsoleOutput_t* _GetConsoleOutput, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _GetConsoleOutput, AXIS2_FAILURE); ++ ++ adb_GetConsoleOutput_reset_GetConsoleOutput(_GetConsoleOutput, env); ++ ++ if(_GetConsoleOutput->qname) ++ { ++ axutil_qname_free (_GetConsoleOutput->qname, env); ++ _GetConsoleOutput->qname = NULL; ++ } ++ ++ ++ if(_GetConsoleOutput) ++ { ++ AXIS2_FREE(env->allocator, _GetConsoleOutput); ++ _GetConsoleOutput = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_GetConsoleOutput_deserialize( ++ adb_GetConsoleOutput_t* _GetConsoleOutput, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _GetConsoleOutput, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for GetConsoleOutput : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _GetConsoleOutput-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for GetConsoleOutput : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_GetConsoleOutput-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building GetConsoleOutput element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "GetConsoleOutput", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_getConsoleOutputType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_getConsoleOutputType_create(env); ++ ++ status = adb_getConsoleOutputType_deserialize((adb_getConsoleOutputType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element GetConsoleOutput"); ++ } ++ else ++ { ++ status = adb_GetConsoleOutput_set_GetConsoleOutput(_GetConsoleOutput, env, ++ (adb_getConsoleOutputType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for GetConsoleOutput "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element GetConsoleOutput missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_GetConsoleOutput_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_GetConsoleOutput_declare_parent_namespaces( ++ adb_GetConsoleOutput_t* _GetConsoleOutput, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_GetConsoleOutput_serialize( ++ adb_GetConsoleOutput_t* _GetConsoleOutput, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _GetConsoleOutput, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "GetConsoleOutput", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_GetConsoleOutput->is_valid_GetConsoleOutput) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("GetConsoleOutput") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sGetConsoleOutput xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("GetConsoleOutput"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("GetConsoleOutput"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing GetConsoleOutput element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sGetConsoleOutput", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_getConsoleOutputType_serialize(_GetConsoleOutput->property_GetConsoleOutput, ++ env, current_node, parent_element, ++ adb_getConsoleOutputType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for GetConsoleOutput. ++ */ ++ adb_getConsoleOutputType_t* AXIS2_CALL ++ adb_GetConsoleOutput_get_GetConsoleOutput( ++ adb_GetConsoleOutput_t* _GetConsoleOutput, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _GetConsoleOutput, NULL); ++ ++ ++ return _GetConsoleOutput->property_GetConsoleOutput; ++ } ++ ++ /** ++ * setter for GetConsoleOutput ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetConsoleOutput_set_GetConsoleOutput( ++ adb_GetConsoleOutput_t* _GetConsoleOutput, ++ const axutil_env_t *env, ++ adb_getConsoleOutputType_t* arg_GetConsoleOutput) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _GetConsoleOutput, AXIS2_FAILURE); ++ ++ if(_GetConsoleOutput->is_valid_GetConsoleOutput && ++ arg_GetConsoleOutput == _GetConsoleOutput->property_GetConsoleOutput) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_GetConsoleOutput_reset_GetConsoleOutput(_GetConsoleOutput, env); ++ ++ ++ if(NULL == arg_GetConsoleOutput) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _GetConsoleOutput->property_GetConsoleOutput = arg_GetConsoleOutput; ++ _GetConsoleOutput->is_valid_GetConsoleOutput = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for GetConsoleOutput ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetConsoleOutput_reset_GetConsoleOutput( ++ adb_GetConsoleOutput_t* _GetConsoleOutput, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _GetConsoleOutput, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_GetConsoleOutput->property_GetConsoleOutput != NULL) ++ { ++ ++ ++ adb_getConsoleOutputType_free(_GetConsoleOutput->property_GetConsoleOutput, env); ++ _GetConsoleOutput->property_GetConsoleOutput = NULL; ++ } ++ ++ ++ ++ _GetConsoleOutput->is_valid_GetConsoleOutput = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether GetConsoleOutput is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_GetConsoleOutput_is_GetConsoleOutput_nil( ++ adb_GetConsoleOutput_t* _GetConsoleOutput, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _GetConsoleOutput, AXIS2_TRUE); ++ ++ return !_GetConsoleOutput->is_valid_GetConsoleOutput; ++ } ++ ++ /** ++ * Set GetConsoleOutput to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetConsoleOutput_set_GetConsoleOutput_nil( ++ adb_GetConsoleOutput_t* _GetConsoleOutput, ++ const axutil_env_t *env) ++ { ++ return adb_GetConsoleOutput_reset_GetConsoleOutput(_GetConsoleOutput, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_GetConsoleOutput.h' +--- old/cluster/generated/adb_GetConsoleOutput.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_GetConsoleOutput.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_GETCONSOLEOUTPUT_H ++ #define ADB_GETCONSOLEOUTPUT_H ++ ++ /** ++ * adb_GetConsoleOutput.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_GetConsoleOutput class ++ */ ++ typedef struct adb_GetConsoleOutput adb_GetConsoleOutput_t; ++ ++ ++ #include "adb_getConsoleOutputType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_GetConsoleOutput_t ++ * @param env pointer to environment struct ++ * @return newly created adb_GetConsoleOutput_t object ++ */ ++ adb_GetConsoleOutput_t* AXIS2_CALL ++ adb_GetConsoleOutput_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_GetConsoleOutput_t object ++ * @param _GetConsoleOutput adb_GetConsoleOutput_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetConsoleOutput_free ( ++ adb_GetConsoleOutput_t* _GetConsoleOutput, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for GetConsoleOutput. ++ * @param _GetConsoleOutput adb_GetConsoleOutput_t object ++ * @param env pointer to environment struct ++ * @return adb_getConsoleOutputType_t* ++ */ ++ adb_getConsoleOutputType_t* AXIS2_CALL ++ adb_GetConsoleOutput_get_GetConsoleOutput( ++ adb_GetConsoleOutput_t* _GetConsoleOutput, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for GetConsoleOutput. ++ * @param _GetConsoleOutput adb_GetConsoleOutput_t object ++ * @param env pointer to environment struct ++ * @param arg_GetConsoleOutput adb_getConsoleOutputType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetConsoleOutput_set_GetConsoleOutput( ++ adb_GetConsoleOutput_t* _GetConsoleOutput, ++ const axutil_env_t *env, ++ adb_getConsoleOutputType_t* arg_GetConsoleOutput); ++ ++ /** ++ * Resetter for GetConsoleOutput ++ * @param _GetConsoleOutput adb_GetConsoleOutput_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetConsoleOutput_reset_GetConsoleOutput( ++ adb_GetConsoleOutput_t* _GetConsoleOutput, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether GetConsoleOutput is nill ++ * @param _GetConsoleOutput adb_GetConsoleOutput_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_GetConsoleOutput_is_GetConsoleOutput_nil( ++ adb_GetConsoleOutput_t* _GetConsoleOutput, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set GetConsoleOutput to nill (currently the same as reset) ++ * @param _GetConsoleOutput adb_GetConsoleOutput_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetConsoleOutput_set_GetConsoleOutput_nil( ++ adb_GetConsoleOutput_t* _GetConsoleOutput, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _GetConsoleOutput adb_GetConsoleOutput_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetConsoleOutput_deserialize( ++ adb_GetConsoleOutput_t* _GetConsoleOutput, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _GetConsoleOutput adb_GetConsoleOutput_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_GetConsoleOutput_declare_parent_namespaces( ++ adb_GetConsoleOutput_t* _GetConsoleOutput, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _GetConsoleOutput adb_GetConsoleOutput_t object ++ * @param env pointer to environment struct ++ * @param GetConsoleOutput_om_node node to serialize from ++ * @param GetConsoleOutput_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_GetConsoleOutput_serialize( ++ adb_GetConsoleOutput_t* _GetConsoleOutput, ++ const axutil_env_t *env, ++ axiom_node_t* GetConsoleOutput_om_node, axiom_element_t *GetConsoleOutput_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_GetConsoleOutput is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_GetConsoleOutput_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_GETCONSOLEOUTPUT_H */ ++ ++ + +=== added file 'cluster/generated/adb_GetConsoleOutputResponse.c' +--- old/cluster/generated/adb_GetConsoleOutputResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_GetConsoleOutputResponse.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_GetConsoleOutputResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_GetConsoleOutputResponse.h" ++ ++ /* ++ * implmentation of the GetConsoleOutputResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_GetConsoleOutputResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_getConsoleOutputResponseType_t* property_GetConsoleOutputResponse; ++ ++ ++ axis2_bool_t is_valid_GetConsoleOutputResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_GetConsoleOutputResponse_t* AXIS2_CALL ++ adb_GetConsoleOutputResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_GetConsoleOutputResponse_t *_GetConsoleOutputResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _GetConsoleOutputResponse = (adb_GetConsoleOutputResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_GetConsoleOutputResponse_t)); ++ ++ if(NULL == _GetConsoleOutputResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_GetConsoleOutputResponse, 0, sizeof(adb_GetConsoleOutputResponse_t)); ++ ++ _GetConsoleOutputResponse->property_GetConsoleOutputResponse = NULL; ++ _GetConsoleOutputResponse->is_valid_GetConsoleOutputResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "GetConsoleOutputResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _GetConsoleOutputResponse->qname = qname; ++ ++ ++ return _GetConsoleOutputResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_GetConsoleOutputResponse_free ( ++ adb_GetConsoleOutputResponse_t* _GetConsoleOutputResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _GetConsoleOutputResponse, AXIS2_FAILURE); ++ ++ adb_GetConsoleOutputResponse_reset_GetConsoleOutputResponse(_GetConsoleOutputResponse, env); ++ ++ if(_GetConsoleOutputResponse->qname) ++ { ++ axutil_qname_free (_GetConsoleOutputResponse->qname, env); ++ _GetConsoleOutputResponse->qname = NULL; ++ } ++ ++ ++ if(_GetConsoleOutputResponse) ++ { ++ AXIS2_FREE(env->allocator, _GetConsoleOutputResponse); ++ _GetConsoleOutputResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_GetConsoleOutputResponse_deserialize( ++ adb_GetConsoleOutputResponse_t* _GetConsoleOutputResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _GetConsoleOutputResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for GetConsoleOutputResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _GetConsoleOutputResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for GetConsoleOutputResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_GetConsoleOutputResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building GetConsoleOutputResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "GetConsoleOutputResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_getConsoleOutputResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_getConsoleOutputResponseType_create(env); ++ ++ status = adb_getConsoleOutputResponseType_deserialize((adb_getConsoleOutputResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element GetConsoleOutputResponse"); ++ } ++ else ++ { ++ status = adb_GetConsoleOutputResponse_set_GetConsoleOutputResponse(_GetConsoleOutputResponse, env, ++ (adb_getConsoleOutputResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for GetConsoleOutputResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element GetConsoleOutputResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_GetConsoleOutputResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_GetConsoleOutputResponse_declare_parent_namespaces( ++ adb_GetConsoleOutputResponse_t* _GetConsoleOutputResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_GetConsoleOutputResponse_serialize( ++ adb_GetConsoleOutputResponse_t* _GetConsoleOutputResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _GetConsoleOutputResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "GetConsoleOutputResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_GetConsoleOutputResponse->is_valid_GetConsoleOutputResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("GetConsoleOutputResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sGetConsoleOutputResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("GetConsoleOutputResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("GetConsoleOutputResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing GetConsoleOutputResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sGetConsoleOutputResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_getConsoleOutputResponseType_serialize(_GetConsoleOutputResponse->property_GetConsoleOutputResponse, ++ env, current_node, parent_element, ++ adb_getConsoleOutputResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for GetConsoleOutputResponse. ++ */ ++ adb_getConsoleOutputResponseType_t* AXIS2_CALL ++ adb_GetConsoleOutputResponse_get_GetConsoleOutputResponse( ++ adb_GetConsoleOutputResponse_t* _GetConsoleOutputResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _GetConsoleOutputResponse, NULL); ++ ++ ++ return _GetConsoleOutputResponse->property_GetConsoleOutputResponse; ++ } ++ ++ /** ++ * setter for GetConsoleOutputResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetConsoleOutputResponse_set_GetConsoleOutputResponse( ++ adb_GetConsoleOutputResponse_t* _GetConsoleOutputResponse, ++ const axutil_env_t *env, ++ adb_getConsoleOutputResponseType_t* arg_GetConsoleOutputResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _GetConsoleOutputResponse, AXIS2_FAILURE); ++ ++ if(_GetConsoleOutputResponse->is_valid_GetConsoleOutputResponse && ++ arg_GetConsoleOutputResponse == _GetConsoleOutputResponse->property_GetConsoleOutputResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_GetConsoleOutputResponse_reset_GetConsoleOutputResponse(_GetConsoleOutputResponse, env); ++ ++ ++ if(NULL == arg_GetConsoleOutputResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _GetConsoleOutputResponse->property_GetConsoleOutputResponse = arg_GetConsoleOutputResponse; ++ _GetConsoleOutputResponse->is_valid_GetConsoleOutputResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for GetConsoleOutputResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetConsoleOutputResponse_reset_GetConsoleOutputResponse( ++ adb_GetConsoleOutputResponse_t* _GetConsoleOutputResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _GetConsoleOutputResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_GetConsoleOutputResponse->property_GetConsoleOutputResponse != NULL) ++ { ++ ++ ++ adb_getConsoleOutputResponseType_free(_GetConsoleOutputResponse->property_GetConsoleOutputResponse, env); ++ _GetConsoleOutputResponse->property_GetConsoleOutputResponse = NULL; ++ } ++ ++ ++ ++ _GetConsoleOutputResponse->is_valid_GetConsoleOutputResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether GetConsoleOutputResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_GetConsoleOutputResponse_is_GetConsoleOutputResponse_nil( ++ adb_GetConsoleOutputResponse_t* _GetConsoleOutputResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _GetConsoleOutputResponse, AXIS2_TRUE); ++ ++ return !_GetConsoleOutputResponse->is_valid_GetConsoleOutputResponse; ++ } ++ ++ /** ++ * Set GetConsoleOutputResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetConsoleOutputResponse_set_GetConsoleOutputResponse_nil( ++ adb_GetConsoleOutputResponse_t* _GetConsoleOutputResponse, ++ const axutil_env_t *env) ++ { ++ return adb_GetConsoleOutputResponse_reset_GetConsoleOutputResponse(_GetConsoleOutputResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_GetConsoleOutputResponse.h' +--- old/cluster/generated/adb_GetConsoleOutputResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_GetConsoleOutputResponse.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_GETCONSOLEOUTPUTRESPONSE_H ++ #define ADB_GETCONSOLEOUTPUTRESPONSE_H ++ ++ /** ++ * adb_GetConsoleOutputResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_GetConsoleOutputResponse class ++ */ ++ typedef struct adb_GetConsoleOutputResponse adb_GetConsoleOutputResponse_t; ++ ++ ++ #include "adb_getConsoleOutputResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_GetConsoleOutputResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_GetConsoleOutputResponse_t object ++ */ ++ adb_GetConsoleOutputResponse_t* AXIS2_CALL ++ adb_GetConsoleOutputResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_GetConsoleOutputResponse_t object ++ * @param _GetConsoleOutputResponse adb_GetConsoleOutputResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetConsoleOutputResponse_free ( ++ adb_GetConsoleOutputResponse_t* _GetConsoleOutputResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for GetConsoleOutputResponse. ++ * @param _GetConsoleOutputResponse adb_GetConsoleOutputResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_getConsoleOutputResponseType_t* ++ */ ++ adb_getConsoleOutputResponseType_t* AXIS2_CALL ++ adb_GetConsoleOutputResponse_get_GetConsoleOutputResponse( ++ adb_GetConsoleOutputResponse_t* _GetConsoleOutputResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for GetConsoleOutputResponse. ++ * @param _GetConsoleOutputResponse adb_GetConsoleOutputResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_GetConsoleOutputResponse adb_getConsoleOutputResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetConsoleOutputResponse_set_GetConsoleOutputResponse( ++ adb_GetConsoleOutputResponse_t* _GetConsoleOutputResponse, ++ const axutil_env_t *env, ++ adb_getConsoleOutputResponseType_t* arg_GetConsoleOutputResponse); ++ ++ /** ++ * Resetter for GetConsoleOutputResponse ++ * @param _GetConsoleOutputResponse adb_GetConsoleOutputResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetConsoleOutputResponse_reset_GetConsoleOutputResponse( ++ adb_GetConsoleOutputResponse_t* _GetConsoleOutputResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether GetConsoleOutputResponse is nill ++ * @param _GetConsoleOutputResponse adb_GetConsoleOutputResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_GetConsoleOutputResponse_is_GetConsoleOutputResponse_nil( ++ adb_GetConsoleOutputResponse_t* _GetConsoleOutputResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set GetConsoleOutputResponse to nill (currently the same as reset) ++ * @param _GetConsoleOutputResponse adb_GetConsoleOutputResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetConsoleOutputResponse_set_GetConsoleOutputResponse_nil( ++ adb_GetConsoleOutputResponse_t* _GetConsoleOutputResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _GetConsoleOutputResponse adb_GetConsoleOutputResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetConsoleOutputResponse_deserialize( ++ adb_GetConsoleOutputResponse_t* _GetConsoleOutputResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _GetConsoleOutputResponse adb_GetConsoleOutputResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_GetConsoleOutputResponse_declare_parent_namespaces( ++ adb_GetConsoleOutputResponse_t* _GetConsoleOutputResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _GetConsoleOutputResponse adb_GetConsoleOutputResponse_t object ++ * @param env pointer to environment struct ++ * @param GetConsoleOutputResponse_om_node node to serialize from ++ * @param GetConsoleOutputResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_GetConsoleOutputResponse_serialize( ++ adb_GetConsoleOutputResponse_t* _GetConsoleOutputResponse, ++ const axutil_env_t *env, ++ axiom_node_t* GetConsoleOutputResponse_om_node, axiom_element_t *GetConsoleOutputResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_GetConsoleOutputResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_GetConsoleOutputResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_GETCONSOLEOUTPUTRESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_RebootInstances.c' +--- old/cluster/generated/adb_RebootInstances.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_RebootInstances.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_RebootInstances.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_RebootInstances.h" ++ ++ /* ++ * implmentation of the RebootInstances|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_RebootInstances ++ { ++ ++ axutil_qname_t* qname; ++ adb_rebootInstancesType_t* property_RebootInstances; ++ ++ ++ axis2_bool_t is_valid_RebootInstances; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_RebootInstances_t* AXIS2_CALL ++ adb_RebootInstances_create( ++ const axutil_env_t *env) ++ { ++ adb_RebootInstances_t *_RebootInstances = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _RebootInstances = (adb_RebootInstances_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_RebootInstances_t)); ++ ++ if(NULL == _RebootInstances) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_RebootInstances, 0, sizeof(adb_RebootInstances_t)); ++ ++ _RebootInstances->property_RebootInstances = NULL; ++ _RebootInstances->is_valid_RebootInstances = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "RebootInstances", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _RebootInstances->qname = qname; ++ ++ ++ return _RebootInstances; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_RebootInstances_free ( ++ adb_RebootInstances_t* _RebootInstances, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _RebootInstances, AXIS2_FAILURE); ++ ++ adb_RebootInstances_reset_RebootInstances(_RebootInstances, env); ++ ++ if(_RebootInstances->qname) ++ { ++ axutil_qname_free (_RebootInstances->qname, env); ++ _RebootInstances->qname = NULL; ++ } ++ ++ ++ if(_RebootInstances) ++ { ++ AXIS2_FREE(env->allocator, _RebootInstances); ++ _RebootInstances = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_RebootInstances_deserialize( ++ adb_RebootInstances_t* _RebootInstances, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _RebootInstances, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for RebootInstances : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _RebootInstances-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for RebootInstances : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_RebootInstances-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building RebootInstances element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "RebootInstances", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_rebootInstancesType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_rebootInstancesType_create(env); ++ ++ status = adb_rebootInstancesType_deserialize((adb_rebootInstancesType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element RebootInstances"); ++ } ++ else ++ { ++ status = adb_RebootInstances_set_RebootInstances(_RebootInstances, env, ++ (adb_rebootInstancesType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for RebootInstances "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element RebootInstances missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_RebootInstances_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_RebootInstances_declare_parent_namespaces( ++ adb_RebootInstances_t* _RebootInstances, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_RebootInstances_serialize( ++ adb_RebootInstances_t* _RebootInstances, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _RebootInstances, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "RebootInstances", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_RebootInstances->is_valid_RebootInstances) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("RebootInstances") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sRebootInstances xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("RebootInstances"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("RebootInstances"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing RebootInstances element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sRebootInstances", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_rebootInstancesType_serialize(_RebootInstances->property_RebootInstances, ++ env, current_node, parent_element, ++ adb_rebootInstancesType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for RebootInstances. ++ */ ++ adb_rebootInstancesType_t* AXIS2_CALL ++ adb_RebootInstances_get_RebootInstances( ++ adb_RebootInstances_t* _RebootInstances, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _RebootInstances, NULL); ++ ++ ++ return _RebootInstances->property_RebootInstances; ++ } ++ ++ /** ++ * setter for RebootInstances ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RebootInstances_set_RebootInstances( ++ adb_RebootInstances_t* _RebootInstances, ++ const axutil_env_t *env, ++ adb_rebootInstancesType_t* arg_RebootInstances) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _RebootInstances, AXIS2_FAILURE); ++ ++ if(_RebootInstances->is_valid_RebootInstances && ++ arg_RebootInstances == _RebootInstances->property_RebootInstances) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_RebootInstances_reset_RebootInstances(_RebootInstances, env); ++ ++ ++ if(NULL == arg_RebootInstances) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _RebootInstances->property_RebootInstances = arg_RebootInstances; ++ _RebootInstances->is_valid_RebootInstances = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for RebootInstances ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RebootInstances_reset_RebootInstances( ++ adb_RebootInstances_t* _RebootInstances, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _RebootInstances, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_RebootInstances->property_RebootInstances != NULL) ++ { ++ ++ ++ adb_rebootInstancesType_free(_RebootInstances->property_RebootInstances, env); ++ _RebootInstances->property_RebootInstances = NULL; ++ } ++ ++ ++ ++ _RebootInstances->is_valid_RebootInstances = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether RebootInstances is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_RebootInstances_is_RebootInstances_nil( ++ adb_RebootInstances_t* _RebootInstances, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _RebootInstances, AXIS2_TRUE); ++ ++ return !_RebootInstances->is_valid_RebootInstances; ++ } ++ ++ /** ++ * Set RebootInstances to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RebootInstances_set_RebootInstances_nil( ++ adb_RebootInstances_t* _RebootInstances, ++ const axutil_env_t *env) ++ { ++ return adb_RebootInstances_reset_RebootInstances(_RebootInstances, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_RebootInstances.h' +--- old/cluster/generated/adb_RebootInstances.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_RebootInstances.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_REBOOTINSTANCES_H ++ #define ADB_REBOOTINSTANCES_H ++ ++ /** ++ * adb_RebootInstances.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_RebootInstances class ++ */ ++ typedef struct adb_RebootInstances adb_RebootInstances_t; ++ ++ ++ #include "adb_rebootInstancesType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_RebootInstances_t ++ * @param env pointer to environment struct ++ * @return newly created adb_RebootInstances_t object ++ */ ++ adb_RebootInstances_t* AXIS2_CALL ++ adb_RebootInstances_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_RebootInstances_t object ++ * @param _RebootInstances adb_RebootInstances_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RebootInstances_free ( ++ adb_RebootInstances_t* _RebootInstances, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for RebootInstances. ++ * @param _RebootInstances adb_RebootInstances_t object ++ * @param env pointer to environment struct ++ * @return adb_rebootInstancesType_t* ++ */ ++ adb_rebootInstancesType_t* AXIS2_CALL ++ adb_RebootInstances_get_RebootInstances( ++ adb_RebootInstances_t* _RebootInstances, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for RebootInstances. ++ * @param _RebootInstances adb_RebootInstances_t object ++ * @param env pointer to environment struct ++ * @param arg_RebootInstances adb_rebootInstancesType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RebootInstances_set_RebootInstances( ++ adb_RebootInstances_t* _RebootInstances, ++ const axutil_env_t *env, ++ adb_rebootInstancesType_t* arg_RebootInstances); ++ ++ /** ++ * Resetter for RebootInstances ++ * @param _RebootInstances adb_RebootInstances_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RebootInstances_reset_RebootInstances( ++ adb_RebootInstances_t* _RebootInstances, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether RebootInstances is nill ++ * @param _RebootInstances adb_RebootInstances_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_RebootInstances_is_RebootInstances_nil( ++ adb_RebootInstances_t* _RebootInstances, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set RebootInstances to nill (currently the same as reset) ++ * @param _RebootInstances adb_RebootInstances_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RebootInstances_set_RebootInstances_nil( ++ adb_RebootInstances_t* _RebootInstances, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _RebootInstances adb_RebootInstances_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RebootInstances_deserialize( ++ adb_RebootInstances_t* _RebootInstances, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _RebootInstances adb_RebootInstances_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_RebootInstances_declare_parent_namespaces( ++ adb_RebootInstances_t* _RebootInstances, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _RebootInstances adb_RebootInstances_t object ++ * @param env pointer to environment struct ++ * @param RebootInstances_om_node node to serialize from ++ * @param RebootInstances_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_RebootInstances_serialize( ++ adb_RebootInstances_t* _RebootInstances, ++ const axutil_env_t *env, ++ axiom_node_t* RebootInstances_om_node, axiom_element_t *RebootInstances_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_RebootInstances is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_RebootInstances_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_REBOOTINSTANCES_H */ ++ ++ + +=== added file 'cluster/generated/adb_RebootInstancesResponse.c' +--- old/cluster/generated/adb_RebootInstancesResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_RebootInstancesResponse.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_RebootInstancesResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_RebootInstancesResponse.h" ++ ++ /* ++ * implmentation of the RebootInstancesResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_RebootInstancesResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_rebootInstancesResponseType_t* property_RebootInstancesResponse; ++ ++ ++ axis2_bool_t is_valid_RebootInstancesResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_RebootInstancesResponse_t* AXIS2_CALL ++ adb_RebootInstancesResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_RebootInstancesResponse_t *_RebootInstancesResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _RebootInstancesResponse = (adb_RebootInstancesResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_RebootInstancesResponse_t)); ++ ++ if(NULL == _RebootInstancesResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_RebootInstancesResponse, 0, sizeof(adb_RebootInstancesResponse_t)); ++ ++ _RebootInstancesResponse->property_RebootInstancesResponse = NULL; ++ _RebootInstancesResponse->is_valid_RebootInstancesResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "RebootInstancesResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _RebootInstancesResponse->qname = qname; ++ ++ ++ return _RebootInstancesResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_RebootInstancesResponse_free ( ++ adb_RebootInstancesResponse_t* _RebootInstancesResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _RebootInstancesResponse, AXIS2_FAILURE); ++ ++ adb_RebootInstancesResponse_reset_RebootInstancesResponse(_RebootInstancesResponse, env); ++ ++ if(_RebootInstancesResponse->qname) ++ { ++ axutil_qname_free (_RebootInstancesResponse->qname, env); ++ _RebootInstancesResponse->qname = NULL; ++ } ++ ++ ++ if(_RebootInstancesResponse) ++ { ++ AXIS2_FREE(env->allocator, _RebootInstancesResponse); ++ _RebootInstancesResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_RebootInstancesResponse_deserialize( ++ adb_RebootInstancesResponse_t* _RebootInstancesResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _RebootInstancesResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for RebootInstancesResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _RebootInstancesResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for RebootInstancesResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_RebootInstancesResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building RebootInstancesResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "RebootInstancesResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_rebootInstancesResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_rebootInstancesResponseType_create(env); ++ ++ status = adb_rebootInstancesResponseType_deserialize((adb_rebootInstancesResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element RebootInstancesResponse"); ++ } ++ else ++ { ++ status = adb_RebootInstancesResponse_set_RebootInstancesResponse(_RebootInstancesResponse, env, ++ (adb_rebootInstancesResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for RebootInstancesResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element RebootInstancesResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_RebootInstancesResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_RebootInstancesResponse_declare_parent_namespaces( ++ adb_RebootInstancesResponse_t* _RebootInstancesResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_RebootInstancesResponse_serialize( ++ adb_RebootInstancesResponse_t* _RebootInstancesResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _RebootInstancesResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "RebootInstancesResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_RebootInstancesResponse->is_valid_RebootInstancesResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("RebootInstancesResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sRebootInstancesResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("RebootInstancesResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("RebootInstancesResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing RebootInstancesResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sRebootInstancesResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_rebootInstancesResponseType_serialize(_RebootInstancesResponse->property_RebootInstancesResponse, ++ env, current_node, parent_element, ++ adb_rebootInstancesResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for RebootInstancesResponse. ++ */ ++ adb_rebootInstancesResponseType_t* AXIS2_CALL ++ adb_RebootInstancesResponse_get_RebootInstancesResponse( ++ adb_RebootInstancesResponse_t* _RebootInstancesResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _RebootInstancesResponse, NULL); ++ ++ ++ return _RebootInstancesResponse->property_RebootInstancesResponse; ++ } ++ ++ /** ++ * setter for RebootInstancesResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RebootInstancesResponse_set_RebootInstancesResponse( ++ adb_RebootInstancesResponse_t* _RebootInstancesResponse, ++ const axutil_env_t *env, ++ adb_rebootInstancesResponseType_t* arg_RebootInstancesResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _RebootInstancesResponse, AXIS2_FAILURE); ++ ++ if(_RebootInstancesResponse->is_valid_RebootInstancesResponse && ++ arg_RebootInstancesResponse == _RebootInstancesResponse->property_RebootInstancesResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_RebootInstancesResponse_reset_RebootInstancesResponse(_RebootInstancesResponse, env); ++ ++ ++ if(NULL == arg_RebootInstancesResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _RebootInstancesResponse->property_RebootInstancesResponse = arg_RebootInstancesResponse; ++ _RebootInstancesResponse->is_valid_RebootInstancesResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for RebootInstancesResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RebootInstancesResponse_reset_RebootInstancesResponse( ++ adb_RebootInstancesResponse_t* _RebootInstancesResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _RebootInstancesResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_RebootInstancesResponse->property_RebootInstancesResponse != NULL) ++ { ++ ++ ++ adb_rebootInstancesResponseType_free(_RebootInstancesResponse->property_RebootInstancesResponse, env); ++ _RebootInstancesResponse->property_RebootInstancesResponse = NULL; ++ } ++ ++ ++ ++ _RebootInstancesResponse->is_valid_RebootInstancesResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether RebootInstancesResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_RebootInstancesResponse_is_RebootInstancesResponse_nil( ++ adb_RebootInstancesResponse_t* _RebootInstancesResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _RebootInstancesResponse, AXIS2_TRUE); ++ ++ return !_RebootInstancesResponse->is_valid_RebootInstancesResponse; ++ } ++ ++ /** ++ * Set RebootInstancesResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RebootInstancesResponse_set_RebootInstancesResponse_nil( ++ adb_RebootInstancesResponse_t* _RebootInstancesResponse, ++ const axutil_env_t *env) ++ { ++ return adb_RebootInstancesResponse_reset_RebootInstancesResponse(_RebootInstancesResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_RebootInstancesResponse.h' +--- old/cluster/generated/adb_RebootInstancesResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_RebootInstancesResponse.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_REBOOTINSTANCESRESPONSE_H ++ #define ADB_REBOOTINSTANCESRESPONSE_H ++ ++ /** ++ * adb_RebootInstancesResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_RebootInstancesResponse class ++ */ ++ typedef struct adb_RebootInstancesResponse adb_RebootInstancesResponse_t; ++ ++ ++ #include "adb_rebootInstancesResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_RebootInstancesResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_RebootInstancesResponse_t object ++ */ ++ adb_RebootInstancesResponse_t* AXIS2_CALL ++ adb_RebootInstancesResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_RebootInstancesResponse_t object ++ * @param _RebootInstancesResponse adb_RebootInstancesResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RebootInstancesResponse_free ( ++ adb_RebootInstancesResponse_t* _RebootInstancesResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for RebootInstancesResponse. ++ * @param _RebootInstancesResponse adb_RebootInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_rebootInstancesResponseType_t* ++ */ ++ adb_rebootInstancesResponseType_t* AXIS2_CALL ++ adb_RebootInstancesResponse_get_RebootInstancesResponse( ++ adb_RebootInstancesResponse_t* _RebootInstancesResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for RebootInstancesResponse. ++ * @param _RebootInstancesResponse adb_RebootInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_RebootInstancesResponse adb_rebootInstancesResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RebootInstancesResponse_set_RebootInstancesResponse( ++ adb_RebootInstancesResponse_t* _RebootInstancesResponse, ++ const axutil_env_t *env, ++ adb_rebootInstancesResponseType_t* arg_RebootInstancesResponse); ++ ++ /** ++ * Resetter for RebootInstancesResponse ++ * @param _RebootInstancesResponse adb_RebootInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RebootInstancesResponse_reset_RebootInstancesResponse( ++ adb_RebootInstancesResponse_t* _RebootInstancesResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether RebootInstancesResponse is nill ++ * @param _RebootInstancesResponse adb_RebootInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_RebootInstancesResponse_is_RebootInstancesResponse_nil( ++ adb_RebootInstancesResponse_t* _RebootInstancesResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set RebootInstancesResponse to nill (currently the same as reset) ++ * @param _RebootInstancesResponse adb_RebootInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RebootInstancesResponse_set_RebootInstancesResponse_nil( ++ adb_RebootInstancesResponse_t* _RebootInstancesResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _RebootInstancesResponse adb_RebootInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RebootInstancesResponse_deserialize( ++ adb_RebootInstancesResponse_t* _RebootInstancesResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _RebootInstancesResponse adb_RebootInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_RebootInstancesResponse_declare_parent_namespaces( ++ adb_RebootInstancesResponse_t* _RebootInstancesResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _RebootInstancesResponse adb_RebootInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @param RebootInstancesResponse_om_node node to serialize from ++ * @param RebootInstancesResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_RebootInstancesResponse_serialize( ++ adb_RebootInstancesResponse_t* _RebootInstancesResponse, ++ const axutil_env_t *env, ++ axiom_node_t* RebootInstancesResponse_om_node, axiom_element_t *RebootInstancesResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_RebootInstancesResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_RebootInstancesResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_REBOOTINSTANCESRESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_RunInstances.c' +--- old/cluster/generated/adb_RunInstances.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_RunInstances.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_RunInstances.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_RunInstances.h" ++ ++ /* ++ * implmentation of the RunInstances|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_RunInstances ++ { ++ ++ axutil_qname_t* qname; ++ adb_runInstancesType_t* property_RunInstances; ++ ++ ++ axis2_bool_t is_valid_RunInstances; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_RunInstances_t* AXIS2_CALL ++ adb_RunInstances_create( ++ const axutil_env_t *env) ++ { ++ adb_RunInstances_t *_RunInstances = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _RunInstances = (adb_RunInstances_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_RunInstances_t)); ++ ++ if(NULL == _RunInstances) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_RunInstances, 0, sizeof(adb_RunInstances_t)); ++ ++ _RunInstances->property_RunInstances = NULL; ++ _RunInstances->is_valid_RunInstances = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "RunInstances", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _RunInstances->qname = qname; ++ ++ ++ return _RunInstances; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_RunInstances_free ( ++ adb_RunInstances_t* _RunInstances, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _RunInstances, AXIS2_FAILURE); ++ ++ adb_RunInstances_reset_RunInstances(_RunInstances, env); ++ ++ if(_RunInstances->qname) ++ { ++ axutil_qname_free (_RunInstances->qname, env); ++ _RunInstances->qname = NULL; ++ } ++ ++ ++ if(_RunInstances) ++ { ++ AXIS2_FREE(env->allocator, _RunInstances); ++ _RunInstances = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_RunInstances_deserialize( ++ adb_RunInstances_t* _RunInstances, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _RunInstances, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for RunInstances : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _RunInstances-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for RunInstances : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_RunInstances-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building RunInstances element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "RunInstances", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_runInstancesType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_runInstancesType_create(env); ++ ++ status = adb_runInstancesType_deserialize((adb_runInstancesType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element RunInstances"); ++ } ++ else ++ { ++ status = adb_RunInstances_set_RunInstances(_RunInstances, env, ++ (adb_runInstancesType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for RunInstances "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element RunInstances missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_RunInstances_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_RunInstances_declare_parent_namespaces( ++ adb_RunInstances_t* _RunInstances, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_RunInstances_serialize( ++ adb_RunInstances_t* _RunInstances, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _RunInstances, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "RunInstances", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_RunInstances->is_valid_RunInstances) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("RunInstances") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sRunInstances xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("RunInstances"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("RunInstances"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing RunInstances element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sRunInstances", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_runInstancesType_serialize(_RunInstances->property_RunInstances, ++ env, current_node, parent_element, ++ adb_runInstancesType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for RunInstances. ++ */ ++ adb_runInstancesType_t* AXIS2_CALL ++ adb_RunInstances_get_RunInstances( ++ adb_RunInstances_t* _RunInstances, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _RunInstances, NULL); ++ ++ ++ return _RunInstances->property_RunInstances; ++ } ++ ++ /** ++ * setter for RunInstances ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RunInstances_set_RunInstances( ++ adb_RunInstances_t* _RunInstances, ++ const axutil_env_t *env, ++ adb_runInstancesType_t* arg_RunInstances) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _RunInstances, AXIS2_FAILURE); ++ ++ if(_RunInstances->is_valid_RunInstances && ++ arg_RunInstances == _RunInstances->property_RunInstances) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_RunInstances_reset_RunInstances(_RunInstances, env); ++ ++ ++ if(NULL == arg_RunInstances) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _RunInstances->property_RunInstances = arg_RunInstances; ++ _RunInstances->is_valid_RunInstances = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for RunInstances ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RunInstances_reset_RunInstances( ++ adb_RunInstances_t* _RunInstances, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _RunInstances, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_RunInstances->property_RunInstances != NULL) ++ { ++ ++ ++ adb_runInstancesType_free(_RunInstances->property_RunInstances, env); ++ _RunInstances->property_RunInstances = NULL; ++ } ++ ++ ++ ++ _RunInstances->is_valid_RunInstances = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether RunInstances is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_RunInstances_is_RunInstances_nil( ++ adb_RunInstances_t* _RunInstances, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _RunInstances, AXIS2_TRUE); ++ ++ return !_RunInstances->is_valid_RunInstances; ++ } ++ ++ /** ++ * Set RunInstances to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RunInstances_set_RunInstances_nil( ++ adb_RunInstances_t* _RunInstances, ++ const axutil_env_t *env) ++ { ++ return adb_RunInstances_reset_RunInstances(_RunInstances, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_RunInstances.h' +--- old/cluster/generated/adb_RunInstances.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_RunInstances.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_RUNINSTANCES_H ++ #define ADB_RUNINSTANCES_H ++ ++ /** ++ * adb_RunInstances.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_RunInstances class ++ */ ++ typedef struct adb_RunInstances adb_RunInstances_t; ++ ++ ++ #include "adb_runInstancesType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_RunInstances_t ++ * @param env pointer to environment struct ++ * @return newly created adb_RunInstances_t object ++ */ ++ adb_RunInstances_t* AXIS2_CALL ++ adb_RunInstances_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_RunInstances_t object ++ * @param _RunInstances adb_RunInstances_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RunInstances_free ( ++ adb_RunInstances_t* _RunInstances, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for RunInstances. ++ * @param _RunInstances adb_RunInstances_t object ++ * @param env pointer to environment struct ++ * @return adb_runInstancesType_t* ++ */ ++ adb_runInstancesType_t* AXIS2_CALL ++ adb_RunInstances_get_RunInstances( ++ adb_RunInstances_t* _RunInstances, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for RunInstances. ++ * @param _RunInstances adb_RunInstances_t object ++ * @param env pointer to environment struct ++ * @param arg_RunInstances adb_runInstancesType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RunInstances_set_RunInstances( ++ adb_RunInstances_t* _RunInstances, ++ const axutil_env_t *env, ++ adb_runInstancesType_t* arg_RunInstances); ++ ++ /** ++ * Resetter for RunInstances ++ * @param _RunInstances adb_RunInstances_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RunInstances_reset_RunInstances( ++ adb_RunInstances_t* _RunInstances, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether RunInstances is nill ++ * @param _RunInstances adb_RunInstances_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_RunInstances_is_RunInstances_nil( ++ adb_RunInstances_t* _RunInstances, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set RunInstances to nill (currently the same as reset) ++ * @param _RunInstances adb_RunInstances_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RunInstances_set_RunInstances_nil( ++ adb_RunInstances_t* _RunInstances, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _RunInstances adb_RunInstances_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RunInstances_deserialize( ++ adb_RunInstances_t* _RunInstances, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _RunInstances adb_RunInstances_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_RunInstances_declare_parent_namespaces( ++ adb_RunInstances_t* _RunInstances, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _RunInstances adb_RunInstances_t object ++ * @param env pointer to environment struct ++ * @param RunInstances_om_node node to serialize from ++ * @param RunInstances_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_RunInstances_serialize( ++ adb_RunInstances_t* _RunInstances, ++ const axutil_env_t *env, ++ axiom_node_t* RunInstances_om_node, axiom_element_t *RunInstances_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_RunInstances is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_RunInstances_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_RUNINSTANCES_H */ ++ ++ + +=== added file 'cluster/generated/adb_RunInstancesResponse.c' +--- old/cluster/generated/adb_RunInstancesResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_RunInstancesResponse.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_RunInstancesResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_RunInstancesResponse.h" ++ ++ /* ++ * implmentation of the RunInstancesResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_RunInstancesResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_runInstancesResponseType_t* property_RunInstancesResponse; ++ ++ ++ axis2_bool_t is_valid_RunInstancesResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_RunInstancesResponse_t* AXIS2_CALL ++ adb_RunInstancesResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_RunInstancesResponse_t *_RunInstancesResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _RunInstancesResponse = (adb_RunInstancesResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_RunInstancesResponse_t)); ++ ++ if(NULL == _RunInstancesResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_RunInstancesResponse, 0, sizeof(adb_RunInstancesResponse_t)); ++ ++ _RunInstancesResponse->property_RunInstancesResponse = NULL; ++ _RunInstancesResponse->is_valid_RunInstancesResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "RunInstancesResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _RunInstancesResponse->qname = qname; ++ ++ ++ return _RunInstancesResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_RunInstancesResponse_free ( ++ adb_RunInstancesResponse_t* _RunInstancesResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _RunInstancesResponse, AXIS2_FAILURE); ++ ++ adb_RunInstancesResponse_reset_RunInstancesResponse(_RunInstancesResponse, env); ++ ++ if(_RunInstancesResponse->qname) ++ { ++ axutil_qname_free (_RunInstancesResponse->qname, env); ++ _RunInstancesResponse->qname = NULL; ++ } ++ ++ ++ if(_RunInstancesResponse) ++ { ++ AXIS2_FREE(env->allocator, _RunInstancesResponse); ++ _RunInstancesResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_RunInstancesResponse_deserialize( ++ adb_RunInstancesResponse_t* _RunInstancesResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _RunInstancesResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for RunInstancesResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _RunInstancesResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for RunInstancesResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_RunInstancesResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building RunInstancesResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "RunInstancesResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_runInstancesResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_runInstancesResponseType_create(env); ++ ++ status = adb_runInstancesResponseType_deserialize((adb_runInstancesResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element RunInstancesResponse"); ++ } ++ else ++ { ++ status = adb_RunInstancesResponse_set_RunInstancesResponse(_RunInstancesResponse, env, ++ (adb_runInstancesResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for RunInstancesResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element RunInstancesResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_RunInstancesResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_RunInstancesResponse_declare_parent_namespaces( ++ adb_RunInstancesResponse_t* _RunInstancesResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_RunInstancesResponse_serialize( ++ adb_RunInstancesResponse_t* _RunInstancesResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _RunInstancesResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "RunInstancesResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_RunInstancesResponse->is_valid_RunInstancesResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("RunInstancesResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sRunInstancesResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("RunInstancesResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("RunInstancesResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing RunInstancesResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sRunInstancesResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_runInstancesResponseType_serialize(_RunInstancesResponse->property_RunInstancesResponse, ++ env, current_node, parent_element, ++ adb_runInstancesResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for RunInstancesResponse. ++ */ ++ adb_runInstancesResponseType_t* AXIS2_CALL ++ adb_RunInstancesResponse_get_RunInstancesResponse( ++ adb_RunInstancesResponse_t* _RunInstancesResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _RunInstancesResponse, NULL); ++ ++ ++ return _RunInstancesResponse->property_RunInstancesResponse; ++ } ++ ++ /** ++ * setter for RunInstancesResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RunInstancesResponse_set_RunInstancesResponse( ++ adb_RunInstancesResponse_t* _RunInstancesResponse, ++ const axutil_env_t *env, ++ adb_runInstancesResponseType_t* arg_RunInstancesResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _RunInstancesResponse, AXIS2_FAILURE); ++ ++ if(_RunInstancesResponse->is_valid_RunInstancesResponse && ++ arg_RunInstancesResponse == _RunInstancesResponse->property_RunInstancesResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_RunInstancesResponse_reset_RunInstancesResponse(_RunInstancesResponse, env); ++ ++ ++ if(NULL == arg_RunInstancesResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _RunInstancesResponse->property_RunInstancesResponse = arg_RunInstancesResponse; ++ _RunInstancesResponse->is_valid_RunInstancesResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for RunInstancesResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RunInstancesResponse_reset_RunInstancesResponse( ++ adb_RunInstancesResponse_t* _RunInstancesResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _RunInstancesResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_RunInstancesResponse->property_RunInstancesResponse != NULL) ++ { ++ ++ ++ adb_runInstancesResponseType_free(_RunInstancesResponse->property_RunInstancesResponse, env); ++ _RunInstancesResponse->property_RunInstancesResponse = NULL; ++ } ++ ++ ++ ++ _RunInstancesResponse->is_valid_RunInstancesResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether RunInstancesResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_RunInstancesResponse_is_RunInstancesResponse_nil( ++ adb_RunInstancesResponse_t* _RunInstancesResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _RunInstancesResponse, AXIS2_TRUE); ++ ++ return !_RunInstancesResponse->is_valid_RunInstancesResponse; ++ } ++ ++ /** ++ * Set RunInstancesResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RunInstancesResponse_set_RunInstancesResponse_nil( ++ adb_RunInstancesResponse_t* _RunInstancesResponse, ++ const axutil_env_t *env) ++ { ++ return adb_RunInstancesResponse_reset_RunInstancesResponse(_RunInstancesResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_RunInstancesResponse.h' +--- old/cluster/generated/adb_RunInstancesResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_RunInstancesResponse.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_RUNINSTANCESRESPONSE_H ++ #define ADB_RUNINSTANCESRESPONSE_H ++ ++ /** ++ * adb_RunInstancesResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_RunInstancesResponse class ++ */ ++ typedef struct adb_RunInstancesResponse adb_RunInstancesResponse_t; ++ ++ ++ #include "adb_runInstancesResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_RunInstancesResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_RunInstancesResponse_t object ++ */ ++ adb_RunInstancesResponse_t* AXIS2_CALL ++ adb_RunInstancesResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_RunInstancesResponse_t object ++ * @param _RunInstancesResponse adb_RunInstancesResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RunInstancesResponse_free ( ++ adb_RunInstancesResponse_t* _RunInstancesResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for RunInstancesResponse. ++ * @param _RunInstancesResponse adb_RunInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_runInstancesResponseType_t* ++ */ ++ adb_runInstancesResponseType_t* AXIS2_CALL ++ adb_RunInstancesResponse_get_RunInstancesResponse( ++ adb_RunInstancesResponse_t* _RunInstancesResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for RunInstancesResponse. ++ * @param _RunInstancesResponse adb_RunInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_RunInstancesResponse adb_runInstancesResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RunInstancesResponse_set_RunInstancesResponse( ++ adb_RunInstancesResponse_t* _RunInstancesResponse, ++ const axutil_env_t *env, ++ adb_runInstancesResponseType_t* arg_RunInstancesResponse); ++ ++ /** ++ * Resetter for RunInstancesResponse ++ * @param _RunInstancesResponse adb_RunInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RunInstancesResponse_reset_RunInstancesResponse( ++ adb_RunInstancesResponse_t* _RunInstancesResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether RunInstancesResponse is nill ++ * @param _RunInstancesResponse adb_RunInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_RunInstancesResponse_is_RunInstancesResponse_nil( ++ adb_RunInstancesResponse_t* _RunInstancesResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set RunInstancesResponse to nill (currently the same as reset) ++ * @param _RunInstancesResponse adb_RunInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RunInstancesResponse_set_RunInstancesResponse_nil( ++ adb_RunInstancesResponse_t* _RunInstancesResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _RunInstancesResponse adb_RunInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_RunInstancesResponse_deserialize( ++ adb_RunInstancesResponse_t* _RunInstancesResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _RunInstancesResponse adb_RunInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_RunInstancesResponse_declare_parent_namespaces( ++ adb_RunInstancesResponse_t* _RunInstancesResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _RunInstancesResponse adb_RunInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @param RunInstancesResponse_om_node node to serialize from ++ * @param RunInstancesResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_RunInstancesResponse_serialize( ++ adb_RunInstancesResponse_t* _RunInstancesResponse, ++ const axutil_env_t *env, ++ axiom_node_t* RunInstancesResponse_om_node, axiom_element_t *RunInstancesResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_RunInstancesResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_RunInstancesResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_RUNINSTANCESRESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_StartNetwork.c' +--- old/cluster/generated/adb_StartNetwork.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_StartNetwork.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_StartNetwork.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_StartNetwork.h" ++ ++ /* ++ * implmentation of the StartNetwork|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_StartNetwork ++ { ++ ++ axutil_qname_t* qname; ++ adb_startNetworkType_t* property_StartNetwork; ++ ++ ++ axis2_bool_t is_valid_StartNetwork; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_StartNetwork_t* AXIS2_CALL ++ adb_StartNetwork_create( ++ const axutil_env_t *env) ++ { ++ adb_StartNetwork_t *_StartNetwork = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _StartNetwork = (adb_StartNetwork_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_StartNetwork_t)); ++ ++ if(NULL == _StartNetwork) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_StartNetwork, 0, sizeof(adb_StartNetwork_t)); ++ ++ _StartNetwork->property_StartNetwork = NULL; ++ _StartNetwork->is_valid_StartNetwork = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "StartNetwork", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _StartNetwork->qname = qname; ++ ++ ++ return _StartNetwork; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_StartNetwork_free ( ++ adb_StartNetwork_t* _StartNetwork, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _StartNetwork, AXIS2_FAILURE); ++ ++ adb_StartNetwork_reset_StartNetwork(_StartNetwork, env); ++ ++ if(_StartNetwork->qname) ++ { ++ axutil_qname_free (_StartNetwork->qname, env); ++ _StartNetwork->qname = NULL; ++ } ++ ++ ++ if(_StartNetwork) ++ { ++ AXIS2_FREE(env->allocator, _StartNetwork); ++ _StartNetwork = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_StartNetwork_deserialize( ++ adb_StartNetwork_t* _StartNetwork, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _StartNetwork, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for StartNetwork : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _StartNetwork-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for StartNetwork : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_StartNetwork-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building StartNetwork element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "StartNetwork", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_startNetworkType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_startNetworkType_create(env); ++ ++ status = adb_startNetworkType_deserialize((adb_startNetworkType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element StartNetwork"); ++ } ++ else ++ { ++ status = adb_StartNetwork_set_StartNetwork(_StartNetwork, env, ++ (adb_startNetworkType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for StartNetwork "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element StartNetwork missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_StartNetwork_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_StartNetwork_declare_parent_namespaces( ++ adb_StartNetwork_t* _StartNetwork, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_StartNetwork_serialize( ++ adb_StartNetwork_t* _StartNetwork, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _StartNetwork, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "StartNetwork", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_StartNetwork->is_valid_StartNetwork) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("StartNetwork") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sStartNetwork xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("StartNetwork"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("StartNetwork"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing StartNetwork element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sStartNetwork", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_startNetworkType_serialize(_StartNetwork->property_StartNetwork, ++ env, current_node, parent_element, ++ adb_startNetworkType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for StartNetwork. ++ */ ++ adb_startNetworkType_t* AXIS2_CALL ++ adb_StartNetwork_get_StartNetwork( ++ adb_StartNetwork_t* _StartNetwork, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _StartNetwork, NULL); ++ ++ ++ return _StartNetwork->property_StartNetwork; ++ } ++ ++ /** ++ * setter for StartNetwork ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StartNetwork_set_StartNetwork( ++ adb_StartNetwork_t* _StartNetwork, ++ const axutil_env_t *env, ++ adb_startNetworkType_t* arg_StartNetwork) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _StartNetwork, AXIS2_FAILURE); ++ ++ if(_StartNetwork->is_valid_StartNetwork && ++ arg_StartNetwork == _StartNetwork->property_StartNetwork) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_StartNetwork_reset_StartNetwork(_StartNetwork, env); ++ ++ ++ if(NULL == arg_StartNetwork) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _StartNetwork->property_StartNetwork = arg_StartNetwork; ++ _StartNetwork->is_valid_StartNetwork = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for StartNetwork ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StartNetwork_reset_StartNetwork( ++ adb_StartNetwork_t* _StartNetwork, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _StartNetwork, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_StartNetwork->property_StartNetwork != NULL) ++ { ++ ++ ++ adb_startNetworkType_free(_StartNetwork->property_StartNetwork, env); ++ _StartNetwork->property_StartNetwork = NULL; ++ } ++ ++ ++ ++ _StartNetwork->is_valid_StartNetwork = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether StartNetwork is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_StartNetwork_is_StartNetwork_nil( ++ adb_StartNetwork_t* _StartNetwork, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _StartNetwork, AXIS2_TRUE); ++ ++ return !_StartNetwork->is_valid_StartNetwork; ++ } ++ ++ /** ++ * Set StartNetwork to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StartNetwork_set_StartNetwork_nil( ++ adb_StartNetwork_t* _StartNetwork, ++ const axutil_env_t *env) ++ { ++ return adb_StartNetwork_reset_StartNetwork(_StartNetwork, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_StartNetwork.h' +--- old/cluster/generated/adb_StartNetwork.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_StartNetwork.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_STARTNETWORK_H ++ #define ADB_STARTNETWORK_H ++ ++ /** ++ * adb_StartNetwork.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_StartNetwork class ++ */ ++ typedef struct adb_StartNetwork adb_StartNetwork_t; ++ ++ ++ #include "adb_startNetworkType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_StartNetwork_t ++ * @param env pointer to environment struct ++ * @return newly created adb_StartNetwork_t object ++ */ ++ adb_StartNetwork_t* AXIS2_CALL ++ adb_StartNetwork_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_StartNetwork_t object ++ * @param _StartNetwork adb_StartNetwork_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StartNetwork_free ( ++ adb_StartNetwork_t* _StartNetwork, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for StartNetwork. ++ * @param _StartNetwork adb_StartNetwork_t object ++ * @param env pointer to environment struct ++ * @return adb_startNetworkType_t* ++ */ ++ adb_startNetworkType_t* AXIS2_CALL ++ adb_StartNetwork_get_StartNetwork( ++ adb_StartNetwork_t* _StartNetwork, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for StartNetwork. ++ * @param _StartNetwork adb_StartNetwork_t object ++ * @param env pointer to environment struct ++ * @param arg_StartNetwork adb_startNetworkType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StartNetwork_set_StartNetwork( ++ adb_StartNetwork_t* _StartNetwork, ++ const axutil_env_t *env, ++ adb_startNetworkType_t* arg_StartNetwork); ++ ++ /** ++ * Resetter for StartNetwork ++ * @param _StartNetwork adb_StartNetwork_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StartNetwork_reset_StartNetwork( ++ adb_StartNetwork_t* _StartNetwork, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether StartNetwork is nill ++ * @param _StartNetwork adb_StartNetwork_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_StartNetwork_is_StartNetwork_nil( ++ adb_StartNetwork_t* _StartNetwork, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set StartNetwork to nill (currently the same as reset) ++ * @param _StartNetwork adb_StartNetwork_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StartNetwork_set_StartNetwork_nil( ++ adb_StartNetwork_t* _StartNetwork, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _StartNetwork adb_StartNetwork_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StartNetwork_deserialize( ++ adb_StartNetwork_t* _StartNetwork, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _StartNetwork adb_StartNetwork_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_StartNetwork_declare_parent_namespaces( ++ adb_StartNetwork_t* _StartNetwork, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _StartNetwork adb_StartNetwork_t object ++ * @param env pointer to environment struct ++ * @param StartNetwork_om_node node to serialize from ++ * @param StartNetwork_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_StartNetwork_serialize( ++ adb_StartNetwork_t* _StartNetwork, ++ const axutil_env_t *env, ++ axiom_node_t* StartNetwork_om_node, axiom_element_t *StartNetwork_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_StartNetwork is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_StartNetwork_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_STARTNETWORK_H */ ++ ++ + +=== added file 'cluster/generated/adb_StartNetworkResponse.c' +--- old/cluster/generated/adb_StartNetworkResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_StartNetworkResponse.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_StartNetworkResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_StartNetworkResponse.h" ++ ++ /* ++ * implmentation of the StartNetworkResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_StartNetworkResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_startNetworkResponseType_t* property_StartNetworkResponse; ++ ++ ++ axis2_bool_t is_valid_StartNetworkResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_StartNetworkResponse_t* AXIS2_CALL ++ adb_StartNetworkResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_StartNetworkResponse_t *_StartNetworkResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _StartNetworkResponse = (adb_StartNetworkResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_StartNetworkResponse_t)); ++ ++ if(NULL == _StartNetworkResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_StartNetworkResponse, 0, sizeof(adb_StartNetworkResponse_t)); ++ ++ _StartNetworkResponse->property_StartNetworkResponse = NULL; ++ _StartNetworkResponse->is_valid_StartNetworkResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "StartNetworkResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _StartNetworkResponse->qname = qname; ++ ++ ++ return _StartNetworkResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_StartNetworkResponse_free ( ++ adb_StartNetworkResponse_t* _StartNetworkResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _StartNetworkResponse, AXIS2_FAILURE); ++ ++ adb_StartNetworkResponse_reset_StartNetworkResponse(_StartNetworkResponse, env); ++ ++ if(_StartNetworkResponse->qname) ++ { ++ axutil_qname_free (_StartNetworkResponse->qname, env); ++ _StartNetworkResponse->qname = NULL; ++ } ++ ++ ++ if(_StartNetworkResponse) ++ { ++ AXIS2_FREE(env->allocator, _StartNetworkResponse); ++ _StartNetworkResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_StartNetworkResponse_deserialize( ++ adb_StartNetworkResponse_t* _StartNetworkResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _StartNetworkResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for StartNetworkResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _StartNetworkResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for StartNetworkResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_StartNetworkResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building StartNetworkResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "StartNetworkResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_startNetworkResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_startNetworkResponseType_create(env); ++ ++ status = adb_startNetworkResponseType_deserialize((adb_startNetworkResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element StartNetworkResponse"); ++ } ++ else ++ { ++ status = adb_StartNetworkResponse_set_StartNetworkResponse(_StartNetworkResponse, env, ++ (adb_startNetworkResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for StartNetworkResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element StartNetworkResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_StartNetworkResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_StartNetworkResponse_declare_parent_namespaces( ++ adb_StartNetworkResponse_t* _StartNetworkResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_StartNetworkResponse_serialize( ++ adb_StartNetworkResponse_t* _StartNetworkResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _StartNetworkResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "StartNetworkResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_StartNetworkResponse->is_valid_StartNetworkResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("StartNetworkResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sStartNetworkResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("StartNetworkResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("StartNetworkResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing StartNetworkResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sStartNetworkResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_startNetworkResponseType_serialize(_StartNetworkResponse->property_StartNetworkResponse, ++ env, current_node, parent_element, ++ adb_startNetworkResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for StartNetworkResponse. ++ */ ++ adb_startNetworkResponseType_t* AXIS2_CALL ++ adb_StartNetworkResponse_get_StartNetworkResponse( ++ adb_StartNetworkResponse_t* _StartNetworkResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _StartNetworkResponse, NULL); ++ ++ ++ return _StartNetworkResponse->property_StartNetworkResponse; ++ } ++ ++ /** ++ * setter for StartNetworkResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StartNetworkResponse_set_StartNetworkResponse( ++ adb_StartNetworkResponse_t* _StartNetworkResponse, ++ const axutil_env_t *env, ++ adb_startNetworkResponseType_t* arg_StartNetworkResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _StartNetworkResponse, AXIS2_FAILURE); ++ ++ if(_StartNetworkResponse->is_valid_StartNetworkResponse && ++ arg_StartNetworkResponse == _StartNetworkResponse->property_StartNetworkResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_StartNetworkResponse_reset_StartNetworkResponse(_StartNetworkResponse, env); ++ ++ ++ if(NULL == arg_StartNetworkResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _StartNetworkResponse->property_StartNetworkResponse = arg_StartNetworkResponse; ++ _StartNetworkResponse->is_valid_StartNetworkResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for StartNetworkResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StartNetworkResponse_reset_StartNetworkResponse( ++ adb_StartNetworkResponse_t* _StartNetworkResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _StartNetworkResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_StartNetworkResponse->property_StartNetworkResponse != NULL) ++ { ++ ++ ++ adb_startNetworkResponseType_free(_StartNetworkResponse->property_StartNetworkResponse, env); ++ _StartNetworkResponse->property_StartNetworkResponse = NULL; ++ } ++ ++ ++ ++ _StartNetworkResponse->is_valid_StartNetworkResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether StartNetworkResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_StartNetworkResponse_is_StartNetworkResponse_nil( ++ adb_StartNetworkResponse_t* _StartNetworkResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _StartNetworkResponse, AXIS2_TRUE); ++ ++ return !_StartNetworkResponse->is_valid_StartNetworkResponse; ++ } ++ ++ /** ++ * Set StartNetworkResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StartNetworkResponse_set_StartNetworkResponse_nil( ++ adb_StartNetworkResponse_t* _StartNetworkResponse, ++ const axutil_env_t *env) ++ { ++ return adb_StartNetworkResponse_reset_StartNetworkResponse(_StartNetworkResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_StartNetworkResponse.h' +--- old/cluster/generated/adb_StartNetworkResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_StartNetworkResponse.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_STARTNETWORKRESPONSE_H ++ #define ADB_STARTNETWORKRESPONSE_H ++ ++ /** ++ * adb_StartNetworkResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_StartNetworkResponse class ++ */ ++ typedef struct adb_StartNetworkResponse adb_StartNetworkResponse_t; ++ ++ ++ #include "adb_startNetworkResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_StartNetworkResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_StartNetworkResponse_t object ++ */ ++ adb_StartNetworkResponse_t* AXIS2_CALL ++ adb_StartNetworkResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_StartNetworkResponse_t object ++ * @param _StartNetworkResponse adb_StartNetworkResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StartNetworkResponse_free ( ++ adb_StartNetworkResponse_t* _StartNetworkResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for StartNetworkResponse. ++ * @param _StartNetworkResponse adb_StartNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_startNetworkResponseType_t* ++ */ ++ adb_startNetworkResponseType_t* AXIS2_CALL ++ adb_StartNetworkResponse_get_StartNetworkResponse( ++ adb_StartNetworkResponse_t* _StartNetworkResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for StartNetworkResponse. ++ * @param _StartNetworkResponse adb_StartNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_StartNetworkResponse adb_startNetworkResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StartNetworkResponse_set_StartNetworkResponse( ++ adb_StartNetworkResponse_t* _StartNetworkResponse, ++ const axutil_env_t *env, ++ adb_startNetworkResponseType_t* arg_StartNetworkResponse); ++ ++ /** ++ * Resetter for StartNetworkResponse ++ * @param _StartNetworkResponse adb_StartNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StartNetworkResponse_reset_StartNetworkResponse( ++ adb_StartNetworkResponse_t* _StartNetworkResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether StartNetworkResponse is nill ++ * @param _StartNetworkResponse adb_StartNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_StartNetworkResponse_is_StartNetworkResponse_nil( ++ adb_StartNetworkResponse_t* _StartNetworkResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set StartNetworkResponse to nill (currently the same as reset) ++ * @param _StartNetworkResponse adb_StartNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StartNetworkResponse_set_StartNetworkResponse_nil( ++ adb_StartNetworkResponse_t* _StartNetworkResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _StartNetworkResponse adb_StartNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StartNetworkResponse_deserialize( ++ adb_StartNetworkResponse_t* _StartNetworkResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _StartNetworkResponse adb_StartNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_StartNetworkResponse_declare_parent_namespaces( ++ adb_StartNetworkResponse_t* _StartNetworkResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _StartNetworkResponse adb_StartNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @param StartNetworkResponse_om_node node to serialize from ++ * @param StartNetworkResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_StartNetworkResponse_serialize( ++ adb_StartNetworkResponse_t* _StartNetworkResponse, ++ const axutil_env_t *env, ++ axiom_node_t* StartNetworkResponse_om_node, axiom_element_t *StartNetworkResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_StartNetworkResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_StartNetworkResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_STARTNETWORKRESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_StopNetwork.c' +--- old/cluster/generated/adb_StopNetwork.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_StopNetwork.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_StopNetwork.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_StopNetwork.h" ++ ++ /* ++ * implmentation of the StopNetwork|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_StopNetwork ++ { ++ ++ axutil_qname_t* qname; ++ adb_stopNetworkType_t* property_StopNetwork; ++ ++ ++ axis2_bool_t is_valid_StopNetwork; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_StopNetwork_t* AXIS2_CALL ++ adb_StopNetwork_create( ++ const axutil_env_t *env) ++ { ++ adb_StopNetwork_t *_StopNetwork = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _StopNetwork = (adb_StopNetwork_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_StopNetwork_t)); ++ ++ if(NULL == _StopNetwork) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_StopNetwork, 0, sizeof(adb_StopNetwork_t)); ++ ++ _StopNetwork->property_StopNetwork = NULL; ++ _StopNetwork->is_valid_StopNetwork = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "StopNetwork", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _StopNetwork->qname = qname; ++ ++ ++ return _StopNetwork; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_StopNetwork_free ( ++ adb_StopNetwork_t* _StopNetwork, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _StopNetwork, AXIS2_FAILURE); ++ ++ adb_StopNetwork_reset_StopNetwork(_StopNetwork, env); ++ ++ if(_StopNetwork->qname) ++ { ++ axutil_qname_free (_StopNetwork->qname, env); ++ _StopNetwork->qname = NULL; ++ } ++ ++ ++ if(_StopNetwork) ++ { ++ AXIS2_FREE(env->allocator, _StopNetwork); ++ _StopNetwork = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_StopNetwork_deserialize( ++ adb_StopNetwork_t* _StopNetwork, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _StopNetwork, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for StopNetwork : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _StopNetwork-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for StopNetwork : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_StopNetwork-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building StopNetwork element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "StopNetwork", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_stopNetworkType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_stopNetworkType_create(env); ++ ++ status = adb_stopNetworkType_deserialize((adb_stopNetworkType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element StopNetwork"); ++ } ++ else ++ { ++ status = adb_StopNetwork_set_StopNetwork(_StopNetwork, env, ++ (adb_stopNetworkType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for StopNetwork "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element StopNetwork missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_StopNetwork_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_StopNetwork_declare_parent_namespaces( ++ adb_StopNetwork_t* _StopNetwork, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_StopNetwork_serialize( ++ adb_StopNetwork_t* _StopNetwork, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _StopNetwork, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "StopNetwork", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_StopNetwork->is_valid_StopNetwork) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("StopNetwork") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sStopNetwork xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("StopNetwork"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("StopNetwork"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing StopNetwork element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sStopNetwork", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_stopNetworkType_serialize(_StopNetwork->property_StopNetwork, ++ env, current_node, parent_element, ++ adb_stopNetworkType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for StopNetwork. ++ */ ++ adb_stopNetworkType_t* AXIS2_CALL ++ adb_StopNetwork_get_StopNetwork( ++ adb_StopNetwork_t* _StopNetwork, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _StopNetwork, NULL); ++ ++ ++ return _StopNetwork->property_StopNetwork; ++ } ++ ++ /** ++ * setter for StopNetwork ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StopNetwork_set_StopNetwork( ++ adb_StopNetwork_t* _StopNetwork, ++ const axutil_env_t *env, ++ adb_stopNetworkType_t* arg_StopNetwork) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _StopNetwork, AXIS2_FAILURE); ++ ++ if(_StopNetwork->is_valid_StopNetwork && ++ arg_StopNetwork == _StopNetwork->property_StopNetwork) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_StopNetwork_reset_StopNetwork(_StopNetwork, env); ++ ++ ++ if(NULL == arg_StopNetwork) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _StopNetwork->property_StopNetwork = arg_StopNetwork; ++ _StopNetwork->is_valid_StopNetwork = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for StopNetwork ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StopNetwork_reset_StopNetwork( ++ adb_StopNetwork_t* _StopNetwork, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _StopNetwork, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_StopNetwork->property_StopNetwork != NULL) ++ { ++ ++ ++ adb_stopNetworkType_free(_StopNetwork->property_StopNetwork, env); ++ _StopNetwork->property_StopNetwork = NULL; ++ } ++ ++ ++ ++ _StopNetwork->is_valid_StopNetwork = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether StopNetwork is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_StopNetwork_is_StopNetwork_nil( ++ adb_StopNetwork_t* _StopNetwork, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _StopNetwork, AXIS2_TRUE); ++ ++ return !_StopNetwork->is_valid_StopNetwork; ++ } ++ ++ /** ++ * Set StopNetwork to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StopNetwork_set_StopNetwork_nil( ++ adb_StopNetwork_t* _StopNetwork, ++ const axutil_env_t *env) ++ { ++ return adb_StopNetwork_reset_StopNetwork(_StopNetwork, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_StopNetwork.h' +--- old/cluster/generated/adb_StopNetwork.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_StopNetwork.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_STOPNETWORK_H ++ #define ADB_STOPNETWORK_H ++ ++ /** ++ * adb_StopNetwork.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_StopNetwork class ++ */ ++ typedef struct adb_StopNetwork adb_StopNetwork_t; ++ ++ ++ #include "adb_stopNetworkType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_StopNetwork_t ++ * @param env pointer to environment struct ++ * @return newly created adb_StopNetwork_t object ++ */ ++ adb_StopNetwork_t* AXIS2_CALL ++ adb_StopNetwork_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_StopNetwork_t object ++ * @param _StopNetwork adb_StopNetwork_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StopNetwork_free ( ++ adb_StopNetwork_t* _StopNetwork, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for StopNetwork. ++ * @param _StopNetwork adb_StopNetwork_t object ++ * @param env pointer to environment struct ++ * @return adb_stopNetworkType_t* ++ */ ++ adb_stopNetworkType_t* AXIS2_CALL ++ adb_StopNetwork_get_StopNetwork( ++ adb_StopNetwork_t* _StopNetwork, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for StopNetwork. ++ * @param _StopNetwork adb_StopNetwork_t object ++ * @param env pointer to environment struct ++ * @param arg_StopNetwork adb_stopNetworkType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StopNetwork_set_StopNetwork( ++ adb_StopNetwork_t* _StopNetwork, ++ const axutil_env_t *env, ++ adb_stopNetworkType_t* arg_StopNetwork); ++ ++ /** ++ * Resetter for StopNetwork ++ * @param _StopNetwork adb_StopNetwork_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StopNetwork_reset_StopNetwork( ++ adb_StopNetwork_t* _StopNetwork, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether StopNetwork is nill ++ * @param _StopNetwork adb_StopNetwork_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_StopNetwork_is_StopNetwork_nil( ++ adb_StopNetwork_t* _StopNetwork, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set StopNetwork to nill (currently the same as reset) ++ * @param _StopNetwork adb_StopNetwork_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StopNetwork_set_StopNetwork_nil( ++ adb_StopNetwork_t* _StopNetwork, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _StopNetwork adb_StopNetwork_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StopNetwork_deserialize( ++ adb_StopNetwork_t* _StopNetwork, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _StopNetwork adb_StopNetwork_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_StopNetwork_declare_parent_namespaces( ++ adb_StopNetwork_t* _StopNetwork, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _StopNetwork adb_StopNetwork_t object ++ * @param env pointer to environment struct ++ * @param StopNetwork_om_node node to serialize from ++ * @param StopNetwork_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_StopNetwork_serialize( ++ adb_StopNetwork_t* _StopNetwork, ++ const axutil_env_t *env, ++ axiom_node_t* StopNetwork_om_node, axiom_element_t *StopNetwork_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_StopNetwork is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_StopNetwork_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_STOPNETWORK_H */ ++ ++ + +=== added file 'cluster/generated/adb_StopNetworkResponse.c' +--- old/cluster/generated/adb_StopNetworkResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_StopNetworkResponse.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_StopNetworkResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_StopNetworkResponse.h" ++ ++ /* ++ * implmentation of the StopNetworkResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_StopNetworkResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_stopNetworkResponseType_t* property_StopNetworkResponse; ++ ++ ++ axis2_bool_t is_valid_StopNetworkResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_StopNetworkResponse_t* AXIS2_CALL ++ adb_StopNetworkResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_StopNetworkResponse_t *_StopNetworkResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _StopNetworkResponse = (adb_StopNetworkResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_StopNetworkResponse_t)); ++ ++ if(NULL == _StopNetworkResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_StopNetworkResponse, 0, sizeof(adb_StopNetworkResponse_t)); ++ ++ _StopNetworkResponse->property_StopNetworkResponse = NULL; ++ _StopNetworkResponse->is_valid_StopNetworkResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "StopNetworkResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _StopNetworkResponse->qname = qname; ++ ++ ++ return _StopNetworkResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_StopNetworkResponse_free ( ++ adb_StopNetworkResponse_t* _StopNetworkResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _StopNetworkResponse, AXIS2_FAILURE); ++ ++ adb_StopNetworkResponse_reset_StopNetworkResponse(_StopNetworkResponse, env); ++ ++ if(_StopNetworkResponse->qname) ++ { ++ axutil_qname_free (_StopNetworkResponse->qname, env); ++ _StopNetworkResponse->qname = NULL; ++ } ++ ++ ++ if(_StopNetworkResponse) ++ { ++ AXIS2_FREE(env->allocator, _StopNetworkResponse); ++ _StopNetworkResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_StopNetworkResponse_deserialize( ++ adb_StopNetworkResponse_t* _StopNetworkResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _StopNetworkResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for StopNetworkResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _StopNetworkResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for StopNetworkResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_StopNetworkResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building StopNetworkResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "StopNetworkResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_stopNetworkResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_stopNetworkResponseType_create(env); ++ ++ status = adb_stopNetworkResponseType_deserialize((adb_stopNetworkResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element StopNetworkResponse"); ++ } ++ else ++ { ++ status = adb_StopNetworkResponse_set_StopNetworkResponse(_StopNetworkResponse, env, ++ (adb_stopNetworkResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for StopNetworkResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element StopNetworkResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_StopNetworkResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_StopNetworkResponse_declare_parent_namespaces( ++ adb_StopNetworkResponse_t* _StopNetworkResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_StopNetworkResponse_serialize( ++ adb_StopNetworkResponse_t* _StopNetworkResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _StopNetworkResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "StopNetworkResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_StopNetworkResponse->is_valid_StopNetworkResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("StopNetworkResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sStopNetworkResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("StopNetworkResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("StopNetworkResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing StopNetworkResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sStopNetworkResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_stopNetworkResponseType_serialize(_StopNetworkResponse->property_StopNetworkResponse, ++ env, current_node, parent_element, ++ adb_stopNetworkResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for StopNetworkResponse. ++ */ ++ adb_stopNetworkResponseType_t* AXIS2_CALL ++ adb_StopNetworkResponse_get_StopNetworkResponse( ++ adb_StopNetworkResponse_t* _StopNetworkResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _StopNetworkResponse, NULL); ++ ++ ++ return _StopNetworkResponse->property_StopNetworkResponse; ++ } ++ ++ /** ++ * setter for StopNetworkResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StopNetworkResponse_set_StopNetworkResponse( ++ adb_StopNetworkResponse_t* _StopNetworkResponse, ++ const axutil_env_t *env, ++ adb_stopNetworkResponseType_t* arg_StopNetworkResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _StopNetworkResponse, AXIS2_FAILURE); ++ ++ if(_StopNetworkResponse->is_valid_StopNetworkResponse && ++ arg_StopNetworkResponse == _StopNetworkResponse->property_StopNetworkResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_StopNetworkResponse_reset_StopNetworkResponse(_StopNetworkResponse, env); ++ ++ ++ if(NULL == arg_StopNetworkResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _StopNetworkResponse->property_StopNetworkResponse = arg_StopNetworkResponse; ++ _StopNetworkResponse->is_valid_StopNetworkResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for StopNetworkResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StopNetworkResponse_reset_StopNetworkResponse( ++ adb_StopNetworkResponse_t* _StopNetworkResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _StopNetworkResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_StopNetworkResponse->property_StopNetworkResponse != NULL) ++ { ++ ++ ++ adb_stopNetworkResponseType_free(_StopNetworkResponse->property_StopNetworkResponse, env); ++ _StopNetworkResponse->property_StopNetworkResponse = NULL; ++ } ++ ++ ++ ++ _StopNetworkResponse->is_valid_StopNetworkResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether StopNetworkResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_StopNetworkResponse_is_StopNetworkResponse_nil( ++ adb_StopNetworkResponse_t* _StopNetworkResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _StopNetworkResponse, AXIS2_TRUE); ++ ++ return !_StopNetworkResponse->is_valid_StopNetworkResponse; ++ } ++ ++ /** ++ * Set StopNetworkResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StopNetworkResponse_set_StopNetworkResponse_nil( ++ adb_StopNetworkResponse_t* _StopNetworkResponse, ++ const axutil_env_t *env) ++ { ++ return adb_StopNetworkResponse_reset_StopNetworkResponse(_StopNetworkResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_StopNetworkResponse.h' +--- old/cluster/generated/adb_StopNetworkResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_StopNetworkResponse.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_STOPNETWORKRESPONSE_H ++ #define ADB_STOPNETWORKRESPONSE_H ++ ++ /** ++ * adb_StopNetworkResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_StopNetworkResponse class ++ */ ++ typedef struct adb_StopNetworkResponse adb_StopNetworkResponse_t; ++ ++ ++ #include "adb_stopNetworkResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_StopNetworkResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_StopNetworkResponse_t object ++ */ ++ adb_StopNetworkResponse_t* AXIS2_CALL ++ adb_StopNetworkResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_StopNetworkResponse_t object ++ * @param _StopNetworkResponse adb_StopNetworkResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StopNetworkResponse_free ( ++ adb_StopNetworkResponse_t* _StopNetworkResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for StopNetworkResponse. ++ * @param _StopNetworkResponse adb_StopNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_stopNetworkResponseType_t* ++ */ ++ adb_stopNetworkResponseType_t* AXIS2_CALL ++ adb_StopNetworkResponse_get_StopNetworkResponse( ++ adb_StopNetworkResponse_t* _StopNetworkResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for StopNetworkResponse. ++ * @param _StopNetworkResponse adb_StopNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_StopNetworkResponse adb_stopNetworkResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StopNetworkResponse_set_StopNetworkResponse( ++ adb_StopNetworkResponse_t* _StopNetworkResponse, ++ const axutil_env_t *env, ++ adb_stopNetworkResponseType_t* arg_StopNetworkResponse); ++ ++ /** ++ * Resetter for StopNetworkResponse ++ * @param _StopNetworkResponse adb_StopNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StopNetworkResponse_reset_StopNetworkResponse( ++ adb_StopNetworkResponse_t* _StopNetworkResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether StopNetworkResponse is nill ++ * @param _StopNetworkResponse adb_StopNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_StopNetworkResponse_is_StopNetworkResponse_nil( ++ adb_StopNetworkResponse_t* _StopNetworkResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set StopNetworkResponse to nill (currently the same as reset) ++ * @param _StopNetworkResponse adb_StopNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StopNetworkResponse_set_StopNetworkResponse_nil( ++ adb_StopNetworkResponse_t* _StopNetworkResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _StopNetworkResponse adb_StopNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_StopNetworkResponse_deserialize( ++ adb_StopNetworkResponse_t* _StopNetworkResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _StopNetworkResponse adb_StopNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_StopNetworkResponse_declare_parent_namespaces( ++ adb_StopNetworkResponse_t* _StopNetworkResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _StopNetworkResponse adb_StopNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @param StopNetworkResponse_om_node node to serialize from ++ * @param StopNetworkResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_StopNetworkResponse_serialize( ++ adb_StopNetworkResponse_t* _StopNetworkResponse, ++ const axutil_env_t *env, ++ axiom_node_t* StopNetworkResponse_om_node, axiom_element_t *StopNetworkResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_StopNetworkResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_StopNetworkResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_STOPNETWORKRESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_TerminateInstances.c' +--- old/cluster/generated/adb_TerminateInstances.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_TerminateInstances.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_TerminateInstances.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_TerminateInstances.h" ++ ++ /* ++ * implmentation of the TerminateInstances|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_TerminateInstances ++ { ++ ++ axutil_qname_t* qname; ++ adb_terminateInstancesType_t* property_TerminateInstances; ++ ++ ++ axis2_bool_t is_valid_TerminateInstances; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_TerminateInstances_t* AXIS2_CALL ++ adb_TerminateInstances_create( ++ const axutil_env_t *env) ++ { ++ adb_TerminateInstances_t *_TerminateInstances = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _TerminateInstances = (adb_TerminateInstances_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_TerminateInstances_t)); ++ ++ if(NULL == _TerminateInstances) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_TerminateInstances, 0, sizeof(adb_TerminateInstances_t)); ++ ++ _TerminateInstances->property_TerminateInstances = NULL; ++ _TerminateInstances->is_valid_TerminateInstances = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "TerminateInstances", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _TerminateInstances->qname = qname; ++ ++ ++ return _TerminateInstances; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_TerminateInstances_free ( ++ adb_TerminateInstances_t* _TerminateInstances, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _TerminateInstances, AXIS2_FAILURE); ++ ++ adb_TerminateInstances_reset_TerminateInstances(_TerminateInstances, env); ++ ++ if(_TerminateInstances->qname) ++ { ++ axutil_qname_free (_TerminateInstances->qname, env); ++ _TerminateInstances->qname = NULL; ++ } ++ ++ ++ if(_TerminateInstances) ++ { ++ AXIS2_FREE(env->allocator, _TerminateInstances); ++ _TerminateInstances = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_TerminateInstances_deserialize( ++ adb_TerminateInstances_t* _TerminateInstances, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _TerminateInstances, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for TerminateInstances : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _TerminateInstances-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for TerminateInstances : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_TerminateInstances-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building TerminateInstances element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "TerminateInstances", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_terminateInstancesType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_terminateInstancesType_create(env); ++ ++ status = adb_terminateInstancesType_deserialize((adb_terminateInstancesType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element TerminateInstances"); ++ } ++ else ++ { ++ status = adb_TerminateInstances_set_TerminateInstances(_TerminateInstances, env, ++ (adb_terminateInstancesType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for TerminateInstances "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element TerminateInstances missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_TerminateInstances_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_TerminateInstances_declare_parent_namespaces( ++ adb_TerminateInstances_t* _TerminateInstances, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_TerminateInstances_serialize( ++ adb_TerminateInstances_t* _TerminateInstances, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _TerminateInstances, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "TerminateInstances", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_TerminateInstances->is_valid_TerminateInstances) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("TerminateInstances") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sTerminateInstances xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("TerminateInstances"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("TerminateInstances"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing TerminateInstances element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sTerminateInstances", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_terminateInstancesType_serialize(_TerminateInstances->property_TerminateInstances, ++ env, current_node, parent_element, ++ adb_terminateInstancesType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for TerminateInstances. ++ */ ++ adb_terminateInstancesType_t* AXIS2_CALL ++ adb_TerminateInstances_get_TerminateInstances( ++ adb_TerminateInstances_t* _TerminateInstances, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _TerminateInstances, NULL); ++ ++ ++ return _TerminateInstances->property_TerminateInstances; ++ } ++ ++ /** ++ * setter for TerminateInstances ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_TerminateInstances_set_TerminateInstances( ++ adb_TerminateInstances_t* _TerminateInstances, ++ const axutil_env_t *env, ++ adb_terminateInstancesType_t* arg_TerminateInstances) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _TerminateInstances, AXIS2_FAILURE); ++ ++ if(_TerminateInstances->is_valid_TerminateInstances && ++ arg_TerminateInstances == _TerminateInstances->property_TerminateInstances) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_TerminateInstances_reset_TerminateInstances(_TerminateInstances, env); ++ ++ ++ if(NULL == arg_TerminateInstances) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _TerminateInstances->property_TerminateInstances = arg_TerminateInstances; ++ _TerminateInstances->is_valid_TerminateInstances = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for TerminateInstances ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_TerminateInstances_reset_TerminateInstances( ++ adb_TerminateInstances_t* _TerminateInstances, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _TerminateInstances, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_TerminateInstances->property_TerminateInstances != NULL) ++ { ++ ++ ++ adb_terminateInstancesType_free(_TerminateInstances->property_TerminateInstances, env); ++ _TerminateInstances->property_TerminateInstances = NULL; ++ } ++ ++ ++ ++ _TerminateInstances->is_valid_TerminateInstances = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether TerminateInstances is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_TerminateInstances_is_TerminateInstances_nil( ++ adb_TerminateInstances_t* _TerminateInstances, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _TerminateInstances, AXIS2_TRUE); ++ ++ return !_TerminateInstances->is_valid_TerminateInstances; ++ } ++ ++ /** ++ * Set TerminateInstances to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_TerminateInstances_set_TerminateInstances_nil( ++ adb_TerminateInstances_t* _TerminateInstances, ++ const axutil_env_t *env) ++ { ++ return adb_TerminateInstances_reset_TerminateInstances(_TerminateInstances, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_TerminateInstances.h' +--- old/cluster/generated/adb_TerminateInstances.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_TerminateInstances.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_TERMINATEINSTANCES_H ++ #define ADB_TERMINATEINSTANCES_H ++ ++ /** ++ * adb_TerminateInstances.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_TerminateInstances class ++ */ ++ typedef struct adb_TerminateInstances adb_TerminateInstances_t; ++ ++ ++ #include "adb_terminateInstancesType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_TerminateInstances_t ++ * @param env pointer to environment struct ++ * @return newly created adb_TerminateInstances_t object ++ */ ++ adb_TerminateInstances_t* AXIS2_CALL ++ adb_TerminateInstances_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_TerminateInstances_t object ++ * @param _TerminateInstances adb_TerminateInstances_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_TerminateInstances_free ( ++ adb_TerminateInstances_t* _TerminateInstances, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for TerminateInstances. ++ * @param _TerminateInstances adb_TerminateInstances_t object ++ * @param env pointer to environment struct ++ * @return adb_terminateInstancesType_t* ++ */ ++ adb_terminateInstancesType_t* AXIS2_CALL ++ adb_TerminateInstances_get_TerminateInstances( ++ adb_TerminateInstances_t* _TerminateInstances, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for TerminateInstances. ++ * @param _TerminateInstances adb_TerminateInstances_t object ++ * @param env pointer to environment struct ++ * @param arg_TerminateInstances adb_terminateInstancesType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_TerminateInstances_set_TerminateInstances( ++ adb_TerminateInstances_t* _TerminateInstances, ++ const axutil_env_t *env, ++ adb_terminateInstancesType_t* arg_TerminateInstances); ++ ++ /** ++ * Resetter for TerminateInstances ++ * @param _TerminateInstances adb_TerminateInstances_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_TerminateInstances_reset_TerminateInstances( ++ adb_TerminateInstances_t* _TerminateInstances, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether TerminateInstances is nill ++ * @param _TerminateInstances adb_TerminateInstances_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_TerminateInstances_is_TerminateInstances_nil( ++ adb_TerminateInstances_t* _TerminateInstances, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set TerminateInstances to nill (currently the same as reset) ++ * @param _TerminateInstances adb_TerminateInstances_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_TerminateInstances_set_TerminateInstances_nil( ++ adb_TerminateInstances_t* _TerminateInstances, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _TerminateInstances adb_TerminateInstances_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_TerminateInstances_deserialize( ++ adb_TerminateInstances_t* _TerminateInstances, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _TerminateInstances adb_TerminateInstances_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_TerminateInstances_declare_parent_namespaces( ++ adb_TerminateInstances_t* _TerminateInstances, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _TerminateInstances adb_TerminateInstances_t object ++ * @param env pointer to environment struct ++ * @param TerminateInstances_om_node node to serialize from ++ * @param TerminateInstances_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_TerminateInstances_serialize( ++ adb_TerminateInstances_t* _TerminateInstances, ++ const axutil_env_t *env, ++ axiom_node_t* TerminateInstances_om_node, axiom_element_t *TerminateInstances_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_TerminateInstances is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_TerminateInstances_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_TERMINATEINSTANCES_H */ ++ ++ + +=== added file 'cluster/generated/adb_TerminateInstancesResponse.c' +--- old/cluster/generated/adb_TerminateInstancesResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_TerminateInstancesResponse.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_TerminateInstancesResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_TerminateInstancesResponse.h" ++ ++ /* ++ * implmentation of the TerminateInstancesResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_TerminateInstancesResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_terminateInstancesResponseType_t* property_TerminateInstancesResponse; ++ ++ ++ axis2_bool_t is_valid_TerminateInstancesResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_TerminateInstancesResponse_t* AXIS2_CALL ++ adb_TerminateInstancesResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_TerminateInstancesResponse_t *_TerminateInstancesResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _TerminateInstancesResponse = (adb_TerminateInstancesResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_TerminateInstancesResponse_t)); ++ ++ if(NULL == _TerminateInstancesResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_TerminateInstancesResponse, 0, sizeof(adb_TerminateInstancesResponse_t)); ++ ++ _TerminateInstancesResponse->property_TerminateInstancesResponse = NULL; ++ _TerminateInstancesResponse->is_valid_TerminateInstancesResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "TerminateInstancesResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _TerminateInstancesResponse->qname = qname; ++ ++ ++ return _TerminateInstancesResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_TerminateInstancesResponse_free ( ++ adb_TerminateInstancesResponse_t* _TerminateInstancesResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _TerminateInstancesResponse, AXIS2_FAILURE); ++ ++ adb_TerminateInstancesResponse_reset_TerminateInstancesResponse(_TerminateInstancesResponse, env); ++ ++ if(_TerminateInstancesResponse->qname) ++ { ++ axutil_qname_free (_TerminateInstancesResponse->qname, env); ++ _TerminateInstancesResponse->qname = NULL; ++ } ++ ++ ++ if(_TerminateInstancesResponse) ++ { ++ AXIS2_FREE(env->allocator, _TerminateInstancesResponse); ++ _TerminateInstancesResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_TerminateInstancesResponse_deserialize( ++ adb_TerminateInstancesResponse_t* _TerminateInstancesResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _TerminateInstancesResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for TerminateInstancesResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _TerminateInstancesResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for TerminateInstancesResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_TerminateInstancesResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building TerminateInstancesResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "TerminateInstancesResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_terminateInstancesResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_terminateInstancesResponseType_create(env); ++ ++ status = adb_terminateInstancesResponseType_deserialize((adb_terminateInstancesResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element TerminateInstancesResponse"); ++ } ++ else ++ { ++ status = adb_TerminateInstancesResponse_set_TerminateInstancesResponse(_TerminateInstancesResponse, env, ++ (adb_terminateInstancesResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for TerminateInstancesResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element TerminateInstancesResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_TerminateInstancesResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_TerminateInstancesResponse_declare_parent_namespaces( ++ adb_TerminateInstancesResponse_t* _TerminateInstancesResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_TerminateInstancesResponse_serialize( ++ adb_TerminateInstancesResponse_t* _TerminateInstancesResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _TerminateInstancesResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "TerminateInstancesResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_TerminateInstancesResponse->is_valid_TerminateInstancesResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("TerminateInstancesResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sTerminateInstancesResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("TerminateInstancesResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("TerminateInstancesResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing TerminateInstancesResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sTerminateInstancesResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_terminateInstancesResponseType_serialize(_TerminateInstancesResponse->property_TerminateInstancesResponse, ++ env, current_node, parent_element, ++ adb_terminateInstancesResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for TerminateInstancesResponse. ++ */ ++ adb_terminateInstancesResponseType_t* AXIS2_CALL ++ adb_TerminateInstancesResponse_get_TerminateInstancesResponse( ++ adb_TerminateInstancesResponse_t* _TerminateInstancesResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _TerminateInstancesResponse, NULL); ++ ++ ++ return _TerminateInstancesResponse->property_TerminateInstancesResponse; ++ } ++ ++ /** ++ * setter for TerminateInstancesResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_TerminateInstancesResponse_set_TerminateInstancesResponse( ++ adb_TerminateInstancesResponse_t* _TerminateInstancesResponse, ++ const axutil_env_t *env, ++ adb_terminateInstancesResponseType_t* arg_TerminateInstancesResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _TerminateInstancesResponse, AXIS2_FAILURE); ++ ++ if(_TerminateInstancesResponse->is_valid_TerminateInstancesResponse && ++ arg_TerminateInstancesResponse == _TerminateInstancesResponse->property_TerminateInstancesResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_TerminateInstancesResponse_reset_TerminateInstancesResponse(_TerminateInstancesResponse, env); ++ ++ ++ if(NULL == arg_TerminateInstancesResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _TerminateInstancesResponse->property_TerminateInstancesResponse = arg_TerminateInstancesResponse; ++ _TerminateInstancesResponse->is_valid_TerminateInstancesResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for TerminateInstancesResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_TerminateInstancesResponse_reset_TerminateInstancesResponse( ++ adb_TerminateInstancesResponse_t* _TerminateInstancesResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _TerminateInstancesResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_TerminateInstancesResponse->property_TerminateInstancesResponse != NULL) ++ { ++ ++ ++ adb_terminateInstancesResponseType_free(_TerminateInstancesResponse->property_TerminateInstancesResponse, env); ++ _TerminateInstancesResponse->property_TerminateInstancesResponse = NULL; ++ } ++ ++ ++ ++ _TerminateInstancesResponse->is_valid_TerminateInstancesResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether TerminateInstancesResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_TerminateInstancesResponse_is_TerminateInstancesResponse_nil( ++ adb_TerminateInstancesResponse_t* _TerminateInstancesResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _TerminateInstancesResponse, AXIS2_TRUE); ++ ++ return !_TerminateInstancesResponse->is_valid_TerminateInstancesResponse; ++ } ++ ++ /** ++ * Set TerminateInstancesResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_TerminateInstancesResponse_set_TerminateInstancesResponse_nil( ++ adb_TerminateInstancesResponse_t* _TerminateInstancesResponse, ++ const axutil_env_t *env) ++ { ++ return adb_TerminateInstancesResponse_reset_TerminateInstancesResponse(_TerminateInstancesResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_TerminateInstancesResponse.h' +--- old/cluster/generated/adb_TerminateInstancesResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_TerminateInstancesResponse.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_TERMINATEINSTANCESRESPONSE_H ++ #define ADB_TERMINATEINSTANCESRESPONSE_H ++ ++ /** ++ * adb_TerminateInstancesResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_TerminateInstancesResponse class ++ */ ++ typedef struct adb_TerminateInstancesResponse adb_TerminateInstancesResponse_t; ++ ++ ++ #include "adb_terminateInstancesResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_TerminateInstancesResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_TerminateInstancesResponse_t object ++ */ ++ adb_TerminateInstancesResponse_t* AXIS2_CALL ++ adb_TerminateInstancesResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_TerminateInstancesResponse_t object ++ * @param _TerminateInstancesResponse adb_TerminateInstancesResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_TerminateInstancesResponse_free ( ++ adb_TerminateInstancesResponse_t* _TerminateInstancesResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for TerminateInstancesResponse. ++ * @param _TerminateInstancesResponse adb_TerminateInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_terminateInstancesResponseType_t* ++ */ ++ adb_terminateInstancesResponseType_t* AXIS2_CALL ++ adb_TerminateInstancesResponse_get_TerminateInstancesResponse( ++ adb_TerminateInstancesResponse_t* _TerminateInstancesResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for TerminateInstancesResponse. ++ * @param _TerminateInstancesResponse adb_TerminateInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_TerminateInstancesResponse adb_terminateInstancesResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_TerminateInstancesResponse_set_TerminateInstancesResponse( ++ adb_TerminateInstancesResponse_t* _TerminateInstancesResponse, ++ const axutil_env_t *env, ++ adb_terminateInstancesResponseType_t* arg_TerminateInstancesResponse); ++ ++ /** ++ * Resetter for TerminateInstancesResponse ++ * @param _TerminateInstancesResponse adb_TerminateInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_TerminateInstancesResponse_reset_TerminateInstancesResponse( ++ adb_TerminateInstancesResponse_t* _TerminateInstancesResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether TerminateInstancesResponse is nill ++ * @param _TerminateInstancesResponse adb_TerminateInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_TerminateInstancesResponse_is_TerminateInstancesResponse_nil( ++ adb_TerminateInstancesResponse_t* _TerminateInstancesResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set TerminateInstancesResponse to nill (currently the same as reset) ++ * @param _TerminateInstancesResponse adb_TerminateInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_TerminateInstancesResponse_set_TerminateInstancesResponse_nil( ++ adb_TerminateInstancesResponse_t* _TerminateInstancesResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _TerminateInstancesResponse adb_TerminateInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_TerminateInstancesResponse_deserialize( ++ adb_TerminateInstancesResponse_t* _TerminateInstancesResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _TerminateInstancesResponse adb_TerminateInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_TerminateInstancesResponse_declare_parent_namespaces( ++ adb_TerminateInstancesResponse_t* _TerminateInstancesResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _TerminateInstancesResponse adb_TerminateInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @param TerminateInstancesResponse_om_node node to serialize from ++ * @param TerminateInstancesResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_TerminateInstancesResponse_serialize( ++ adb_TerminateInstancesResponse_t* _TerminateInstancesResponse, ++ const axutil_env_t *env, ++ axiom_node_t* TerminateInstancesResponse_om_node, axiom_element_t *TerminateInstancesResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_TerminateInstancesResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_TerminateInstancesResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_TERMINATEINSTANCESRESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_UnassignAddress.c' +--- old/cluster/generated/adb_UnassignAddress.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_UnassignAddress.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_UnassignAddress.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_UnassignAddress.h" ++ ++ /* ++ * implmentation of the UnassignAddress|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_UnassignAddress ++ { ++ ++ axutil_qname_t* qname; ++ adb_unassignAddressType_t* property_UnassignAddress; ++ ++ ++ axis2_bool_t is_valid_UnassignAddress; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_UnassignAddress_t* AXIS2_CALL ++ adb_UnassignAddress_create( ++ const axutil_env_t *env) ++ { ++ adb_UnassignAddress_t *_UnassignAddress = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _UnassignAddress = (adb_UnassignAddress_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_UnassignAddress_t)); ++ ++ if(NULL == _UnassignAddress) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_UnassignAddress, 0, sizeof(adb_UnassignAddress_t)); ++ ++ _UnassignAddress->property_UnassignAddress = NULL; ++ _UnassignAddress->is_valid_UnassignAddress = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "UnassignAddress", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _UnassignAddress->qname = qname; ++ ++ ++ return _UnassignAddress; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_UnassignAddress_free ( ++ adb_UnassignAddress_t* _UnassignAddress, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _UnassignAddress, AXIS2_FAILURE); ++ ++ adb_UnassignAddress_reset_UnassignAddress(_UnassignAddress, env); ++ ++ if(_UnassignAddress->qname) ++ { ++ axutil_qname_free (_UnassignAddress->qname, env); ++ _UnassignAddress->qname = NULL; ++ } ++ ++ ++ if(_UnassignAddress) ++ { ++ AXIS2_FREE(env->allocator, _UnassignAddress); ++ _UnassignAddress = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_UnassignAddress_deserialize( ++ adb_UnassignAddress_t* _UnassignAddress, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _UnassignAddress, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for UnassignAddress : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _UnassignAddress-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for UnassignAddress : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_UnassignAddress-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building UnassignAddress element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "UnassignAddress", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_unassignAddressType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_unassignAddressType_create(env); ++ ++ status = adb_unassignAddressType_deserialize((adb_unassignAddressType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element UnassignAddress"); ++ } ++ else ++ { ++ status = adb_UnassignAddress_set_UnassignAddress(_UnassignAddress, env, ++ (adb_unassignAddressType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for UnassignAddress "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element UnassignAddress missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_UnassignAddress_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_UnassignAddress_declare_parent_namespaces( ++ adb_UnassignAddress_t* _UnassignAddress, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_UnassignAddress_serialize( ++ adb_UnassignAddress_t* _UnassignAddress, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _UnassignAddress, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "UnassignAddress", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_UnassignAddress->is_valid_UnassignAddress) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("UnassignAddress") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sUnassignAddress xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("UnassignAddress"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("UnassignAddress"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing UnassignAddress element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sUnassignAddress", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_unassignAddressType_serialize(_UnassignAddress->property_UnassignAddress, ++ env, current_node, parent_element, ++ adb_unassignAddressType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for UnassignAddress. ++ */ ++ adb_unassignAddressType_t* AXIS2_CALL ++ adb_UnassignAddress_get_UnassignAddress( ++ adb_UnassignAddress_t* _UnassignAddress, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _UnassignAddress, NULL); ++ ++ ++ return _UnassignAddress->property_UnassignAddress; ++ } ++ ++ /** ++ * setter for UnassignAddress ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_UnassignAddress_set_UnassignAddress( ++ adb_UnassignAddress_t* _UnassignAddress, ++ const axutil_env_t *env, ++ adb_unassignAddressType_t* arg_UnassignAddress) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _UnassignAddress, AXIS2_FAILURE); ++ ++ if(_UnassignAddress->is_valid_UnassignAddress && ++ arg_UnassignAddress == _UnassignAddress->property_UnassignAddress) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_UnassignAddress_reset_UnassignAddress(_UnassignAddress, env); ++ ++ ++ if(NULL == arg_UnassignAddress) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _UnassignAddress->property_UnassignAddress = arg_UnassignAddress; ++ _UnassignAddress->is_valid_UnassignAddress = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for UnassignAddress ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_UnassignAddress_reset_UnassignAddress( ++ adb_UnassignAddress_t* _UnassignAddress, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _UnassignAddress, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_UnassignAddress->property_UnassignAddress != NULL) ++ { ++ ++ ++ adb_unassignAddressType_free(_UnassignAddress->property_UnassignAddress, env); ++ _UnassignAddress->property_UnassignAddress = NULL; ++ } ++ ++ ++ ++ _UnassignAddress->is_valid_UnassignAddress = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether UnassignAddress is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_UnassignAddress_is_UnassignAddress_nil( ++ adb_UnassignAddress_t* _UnassignAddress, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _UnassignAddress, AXIS2_TRUE); ++ ++ return !_UnassignAddress->is_valid_UnassignAddress; ++ } ++ ++ /** ++ * Set UnassignAddress to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_UnassignAddress_set_UnassignAddress_nil( ++ adb_UnassignAddress_t* _UnassignAddress, ++ const axutil_env_t *env) ++ { ++ return adb_UnassignAddress_reset_UnassignAddress(_UnassignAddress, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_UnassignAddress.h' +--- old/cluster/generated/adb_UnassignAddress.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_UnassignAddress.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_UNASSIGNADDRESS_H ++ #define ADB_UNASSIGNADDRESS_H ++ ++ /** ++ * adb_UnassignAddress.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_UnassignAddress class ++ */ ++ typedef struct adb_UnassignAddress adb_UnassignAddress_t; ++ ++ ++ #include "adb_unassignAddressType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_UnassignAddress_t ++ * @param env pointer to environment struct ++ * @return newly created adb_UnassignAddress_t object ++ */ ++ adb_UnassignAddress_t* AXIS2_CALL ++ adb_UnassignAddress_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_UnassignAddress_t object ++ * @param _UnassignAddress adb_UnassignAddress_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_UnassignAddress_free ( ++ adb_UnassignAddress_t* _UnassignAddress, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for UnassignAddress. ++ * @param _UnassignAddress adb_UnassignAddress_t object ++ * @param env pointer to environment struct ++ * @return adb_unassignAddressType_t* ++ */ ++ adb_unassignAddressType_t* AXIS2_CALL ++ adb_UnassignAddress_get_UnassignAddress( ++ adb_UnassignAddress_t* _UnassignAddress, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for UnassignAddress. ++ * @param _UnassignAddress adb_UnassignAddress_t object ++ * @param env pointer to environment struct ++ * @param arg_UnassignAddress adb_unassignAddressType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_UnassignAddress_set_UnassignAddress( ++ adb_UnassignAddress_t* _UnassignAddress, ++ const axutil_env_t *env, ++ adb_unassignAddressType_t* arg_UnassignAddress); ++ ++ /** ++ * Resetter for UnassignAddress ++ * @param _UnassignAddress adb_UnassignAddress_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_UnassignAddress_reset_UnassignAddress( ++ adb_UnassignAddress_t* _UnassignAddress, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether UnassignAddress is nill ++ * @param _UnassignAddress adb_UnassignAddress_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_UnassignAddress_is_UnassignAddress_nil( ++ adb_UnassignAddress_t* _UnassignAddress, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set UnassignAddress to nill (currently the same as reset) ++ * @param _UnassignAddress adb_UnassignAddress_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_UnassignAddress_set_UnassignAddress_nil( ++ adb_UnassignAddress_t* _UnassignAddress, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _UnassignAddress adb_UnassignAddress_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_UnassignAddress_deserialize( ++ adb_UnassignAddress_t* _UnassignAddress, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _UnassignAddress adb_UnassignAddress_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_UnassignAddress_declare_parent_namespaces( ++ adb_UnassignAddress_t* _UnassignAddress, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _UnassignAddress adb_UnassignAddress_t object ++ * @param env pointer to environment struct ++ * @param UnassignAddress_om_node node to serialize from ++ * @param UnassignAddress_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_UnassignAddress_serialize( ++ adb_UnassignAddress_t* _UnassignAddress, ++ const axutil_env_t *env, ++ axiom_node_t* UnassignAddress_om_node, axiom_element_t *UnassignAddress_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_UnassignAddress is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_UnassignAddress_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_UNASSIGNADDRESS_H */ ++ ++ + +=== added file 'cluster/generated/adb_UnassignAddressResponse.c' +--- old/cluster/generated/adb_UnassignAddressResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_UnassignAddressResponse.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_UnassignAddressResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_UnassignAddressResponse.h" ++ ++ /* ++ * implmentation of the UnassignAddressResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_UnassignAddressResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_unassignAddressResponseType_t* property_UnassignAddressResponse; ++ ++ ++ axis2_bool_t is_valid_UnassignAddressResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_UnassignAddressResponse_t* AXIS2_CALL ++ adb_UnassignAddressResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_UnassignAddressResponse_t *_UnassignAddressResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _UnassignAddressResponse = (adb_UnassignAddressResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_UnassignAddressResponse_t)); ++ ++ if(NULL == _UnassignAddressResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_UnassignAddressResponse, 0, sizeof(adb_UnassignAddressResponse_t)); ++ ++ _UnassignAddressResponse->property_UnassignAddressResponse = NULL; ++ _UnassignAddressResponse->is_valid_UnassignAddressResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "UnassignAddressResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _UnassignAddressResponse->qname = qname; ++ ++ ++ return _UnassignAddressResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_UnassignAddressResponse_free ( ++ adb_UnassignAddressResponse_t* _UnassignAddressResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _UnassignAddressResponse, AXIS2_FAILURE); ++ ++ adb_UnassignAddressResponse_reset_UnassignAddressResponse(_UnassignAddressResponse, env); ++ ++ if(_UnassignAddressResponse->qname) ++ { ++ axutil_qname_free (_UnassignAddressResponse->qname, env); ++ _UnassignAddressResponse->qname = NULL; ++ } ++ ++ ++ if(_UnassignAddressResponse) ++ { ++ AXIS2_FREE(env->allocator, _UnassignAddressResponse); ++ _UnassignAddressResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_UnassignAddressResponse_deserialize( ++ adb_UnassignAddressResponse_t* _UnassignAddressResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _UnassignAddressResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for UnassignAddressResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _UnassignAddressResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for UnassignAddressResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_UnassignAddressResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building UnassignAddressResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "UnassignAddressResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_unassignAddressResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_unassignAddressResponseType_create(env); ++ ++ status = adb_unassignAddressResponseType_deserialize((adb_unassignAddressResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element UnassignAddressResponse"); ++ } ++ else ++ { ++ status = adb_UnassignAddressResponse_set_UnassignAddressResponse(_UnassignAddressResponse, env, ++ (adb_unassignAddressResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for UnassignAddressResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element UnassignAddressResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_UnassignAddressResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_UnassignAddressResponse_declare_parent_namespaces( ++ adb_UnassignAddressResponse_t* _UnassignAddressResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_UnassignAddressResponse_serialize( ++ adb_UnassignAddressResponse_t* _UnassignAddressResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _UnassignAddressResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "UnassignAddressResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_UnassignAddressResponse->is_valid_UnassignAddressResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("UnassignAddressResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sUnassignAddressResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("UnassignAddressResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("UnassignAddressResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing UnassignAddressResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sUnassignAddressResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_unassignAddressResponseType_serialize(_UnassignAddressResponse->property_UnassignAddressResponse, ++ env, current_node, parent_element, ++ adb_unassignAddressResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for UnassignAddressResponse. ++ */ ++ adb_unassignAddressResponseType_t* AXIS2_CALL ++ adb_UnassignAddressResponse_get_UnassignAddressResponse( ++ adb_UnassignAddressResponse_t* _UnassignAddressResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _UnassignAddressResponse, NULL); ++ ++ ++ return _UnassignAddressResponse->property_UnassignAddressResponse; ++ } ++ ++ /** ++ * setter for UnassignAddressResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_UnassignAddressResponse_set_UnassignAddressResponse( ++ adb_UnassignAddressResponse_t* _UnassignAddressResponse, ++ const axutil_env_t *env, ++ adb_unassignAddressResponseType_t* arg_UnassignAddressResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _UnassignAddressResponse, AXIS2_FAILURE); ++ ++ if(_UnassignAddressResponse->is_valid_UnassignAddressResponse && ++ arg_UnassignAddressResponse == _UnassignAddressResponse->property_UnassignAddressResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_UnassignAddressResponse_reset_UnassignAddressResponse(_UnassignAddressResponse, env); ++ ++ ++ if(NULL == arg_UnassignAddressResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _UnassignAddressResponse->property_UnassignAddressResponse = arg_UnassignAddressResponse; ++ _UnassignAddressResponse->is_valid_UnassignAddressResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for UnassignAddressResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_UnassignAddressResponse_reset_UnassignAddressResponse( ++ adb_UnassignAddressResponse_t* _UnassignAddressResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _UnassignAddressResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_UnassignAddressResponse->property_UnassignAddressResponse != NULL) ++ { ++ ++ ++ adb_unassignAddressResponseType_free(_UnassignAddressResponse->property_UnassignAddressResponse, env); ++ _UnassignAddressResponse->property_UnassignAddressResponse = NULL; ++ } ++ ++ ++ ++ _UnassignAddressResponse->is_valid_UnassignAddressResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether UnassignAddressResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_UnassignAddressResponse_is_UnassignAddressResponse_nil( ++ adb_UnassignAddressResponse_t* _UnassignAddressResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _UnassignAddressResponse, AXIS2_TRUE); ++ ++ return !_UnassignAddressResponse->is_valid_UnassignAddressResponse; ++ } ++ ++ /** ++ * Set UnassignAddressResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_UnassignAddressResponse_set_UnassignAddressResponse_nil( ++ adb_UnassignAddressResponse_t* _UnassignAddressResponse, ++ const axutil_env_t *env) ++ { ++ return adb_UnassignAddressResponse_reset_UnassignAddressResponse(_UnassignAddressResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_UnassignAddressResponse.h' +--- old/cluster/generated/adb_UnassignAddressResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_UnassignAddressResponse.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_UNASSIGNADDRESSRESPONSE_H ++ #define ADB_UNASSIGNADDRESSRESPONSE_H ++ ++ /** ++ * adb_UnassignAddressResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_UnassignAddressResponse class ++ */ ++ typedef struct adb_UnassignAddressResponse adb_UnassignAddressResponse_t; ++ ++ ++ #include "adb_unassignAddressResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_UnassignAddressResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_UnassignAddressResponse_t object ++ */ ++ adb_UnassignAddressResponse_t* AXIS2_CALL ++ adb_UnassignAddressResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_UnassignAddressResponse_t object ++ * @param _UnassignAddressResponse adb_UnassignAddressResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_UnassignAddressResponse_free ( ++ adb_UnassignAddressResponse_t* _UnassignAddressResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for UnassignAddressResponse. ++ * @param _UnassignAddressResponse adb_UnassignAddressResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_unassignAddressResponseType_t* ++ */ ++ adb_unassignAddressResponseType_t* AXIS2_CALL ++ adb_UnassignAddressResponse_get_UnassignAddressResponse( ++ adb_UnassignAddressResponse_t* _UnassignAddressResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for UnassignAddressResponse. ++ * @param _UnassignAddressResponse adb_UnassignAddressResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_UnassignAddressResponse adb_unassignAddressResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_UnassignAddressResponse_set_UnassignAddressResponse( ++ adb_UnassignAddressResponse_t* _UnassignAddressResponse, ++ const axutil_env_t *env, ++ adb_unassignAddressResponseType_t* arg_UnassignAddressResponse); ++ ++ /** ++ * Resetter for UnassignAddressResponse ++ * @param _UnassignAddressResponse adb_UnassignAddressResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_UnassignAddressResponse_reset_UnassignAddressResponse( ++ adb_UnassignAddressResponse_t* _UnassignAddressResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether UnassignAddressResponse is nill ++ * @param _UnassignAddressResponse adb_UnassignAddressResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_UnassignAddressResponse_is_UnassignAddressResponse_nil( ++ adb_UnassignAddressResponse_t* _UnassignAddressResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set UnassignAddressResponse to nill (currently the same as reset) ++ * @param _UnassignAddressResponse adb_UnassignAddressResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_UnassignAddressResponse_set_UnassignAddressResponse_nil( ++ adb_UnassignAddressResponse_t* _UnassignAddressResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _UnassignAddressResponse adb_UnassignAddressResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_UnassignAddressResponse_deserialize( ++ adb_UnassignAddressResponse_t* _UnassignAddressResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _UnassignAddressResponse adb_UnassignAddressResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_UnassignAddressResponse_declare_parent_namespaces( ++ adb_UnassignAddressResponse_t* _UnassignAddressResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _UnassignAddressResponse adb_UnassignAddressResponse_t object ++ * @param env pointer to environment struct ++ * @param UnassignAddressResponse_om_node node to serialize from ++ * @param UnassignAddressResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_UnassignAddressResponse_serialize( ++ adb_UnassignAddressResponse_t* _UnassignAddressResponse, ++ const axutil_env_t *env, ++ axiom_node_t* UnassignAddressResponse_om_node, axiom_element_t *UnassignAddressResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_UnassignAddressResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_UnassignAddressResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_UNASSIGNADDRESSRESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_assignAddressResponseType.c' +--- old/cluster/generated/adb_assignAddressResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_assignAddressResponseType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,1401 @@ ++ ++ ++ /** ++ * adb_assignAddressResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_assignAddressResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = assignAddressResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_assignAddressResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_set_correlationId_nil( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_set_userId_nil( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_set_return_nil( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_assignAddressResponseType_t* AXIS2_CALL ++ adb_assignAddressResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_assignAddressResponseType_t *_assignAddressResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _assignAddressResponseType = (adb_assignAddressResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_assignAddressResponseType_t)); ++ ++ if(NULL == _assignAddressResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_assignAddressResponseType, 0, sizeof(adb_assignAddressResponseType_t)); ++ ++ _assignAddressResponseType->property_correlationId = NULL; ++ _assignAddressResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _assignAddressResponseType->property_userId = NULL; ++ _assignAddressResponseType->is_valid_userId = AXIS2_FALSE; ++ _assignAddressResponseType->property_statusMessage = NULL; ++ _assignAddressResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _assignAddressResponseType->is_valid_return = AXIS2_FALSE; ++ ++ ++ return _assignAddressResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_free ( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_FAILURE); ++ ++ adb_assignAddressResponseType_reset_correlationId(_assignAddressResponseType, env); ++ adb_assignAddressResponseType_reset_userId(_assignAddressResponseType, env); ++ adb_assignAddressResponseType_reset_statusMessage(_assignAddressResponseType, env); ++ adb_assignAddressResponseType_reset_return(_assignAddressResponseType, env); ++ ++ ++ if(_assignAddressResponseType) ++ { ++ AXIS2_FREE(env->allocator, _assignAddressResponseType); ++ _assignAddressResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_deserialize( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for assignAddressResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_assignAddressResponseType_set_correlationId(_assignAddressResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_assignAddressResponseType_set_correlationId(_assignAddressResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_assignAddressResponseType_set_userId(_assignAddressResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_assignAddressResponseType_set_userId(_assignAddressResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_assignAddressResponseType_set_statusMessage(_assignAddressResponseType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_assignAddressResponseType_set_return(_assignAddressResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_assignAddressResponseType_set_return(_assignAddressResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_assignAddressResponseType_declare_parent_namespaces( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_assignAddressResponseType_serialize( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_assignAddressResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _assignAddressResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_assignAddressResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _assignAddressResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_assignAddressResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _assignAddressResponseType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_assignAddressResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_assignAddressResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_assignAddressResponseType_get_correlationId( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, NULL); ++ ++ ++ return _assignAddressResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_set_correlationId( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_FAILURE); ++ ++ if(_assignAddressResponseType->is_valid_correlationId && ++ arg_correlationId == _assignAddressResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_assignAddressResponseType_reset_correlationId(_assignAddressResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _assignAddressResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _assignAddressResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _assignAddressResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_reset_correlationId( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_assignAddressResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _assignAddressResponseType->property_correlationId); ++ _assignAddressResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _assignAddressResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressResponseType_is_correlationId_nil( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_TRUE); ++ ++ return !_assignAddressResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_set_correlationId_nil( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_assignAddressResponseType_reset_correlationId(_assignAddressResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_assignAddressResponseType_get_userId( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, NULL); ++ ++ ++ return _assignAddressResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_set_userId( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_FAILURE); ++ ++ if(_assignAddressResponseType->is_valid_userId && ++ arg_userId == _assignAddressResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_assignAddressResponseType_reset_userId(_assignAddressResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _assignAddressResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _assignAddressResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _assignAddressResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_reset_userId( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_assignAddressResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _assignAddressResponseType->property_userId); ++ _assignAddressResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _assignAddressResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressResponseType_is_userId_nil( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_TRUE); ++ ++ return !_assignAddressResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_set_userId_nil( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_assignAddressResponseType_reset_userId(_assignAddressResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_assignAddressResponseType_get_statusMessage( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, NULL); ++ ++ ++ return _assignAddressResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_set_statusMessage( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_FAILURE); ++ ++ if(_assignAddressResponseType->is_valid_statusMessage && ++ arg_statusMessage == _assignAddressResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_assignAddressResponseType_reset_statusMessage(_assignAddressResponseType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _assignAddressResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _assignAddressResponseType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _assignAddressResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_reset_statusMessage( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_assignAddressResponseType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _assignAddressResponseType->property_statusMessage); ++ _assignAddressResponseType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _assignAddressResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressResponseType_is_statusMessage_nil( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_TRUE); ++ ++ return !_assignAddressResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_set_statusMessage_nil( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_assignAddressResponseType_reset_statusMessage(_assignAddressResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressResponseType_get_return( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, (axis2_bool_t)0); ++ ++ ++ return _assignAddressResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_set_return( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_FAILURE); ++ ++ if(_assignAddressResponseType->is_valid_return && ++ arg_return == _assignAddressResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_assignAddressResponseType_reset_return(_assignAddressResponseType, env); ++ ++ _assignAddressResponseType->property_return = arg_return; ++ _assignAddressResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_reset_return( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_FAILURE); ++ ++ ++ _assignAddressResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressResponseType_is_return_nil( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_TRUE); ++ ++ return !_assignAddressResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_set_return_nil( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_assignAddressResponseType_reset_return(_assignAddressResponseType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_assignAddressResponseType.h' +--- old/cluster/generated/adb_assignAddressResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_assignAddressResponseType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,362 @@ ++ ++ ++ #ifndef ADB_ASSIGNADDRESSRESPONSETYPE_H ++ #define ADB_ASSIGNADDRESSRESPONSETYPE_H ++ ++ /** ++ * adb_assignAddressResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_assignAddressResponseType class ++ */ ++ typedef struct adb_assignAddressResponseType adb_assignAddressResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_assignAddressResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_assignAddressResponseType_t object ++ */ ++ adb_assignAddressResponseType_t* AXIS2_CALL ++ adb_assignAddressResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_assignAddressResponseType_t object ++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_free ( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_assignAddressResponseType_get_correlationId( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_set_correlationId( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_reset_correlationId( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_assignAddressResponseType_get_userId( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_set_userId( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_reset_userId( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_assignAddressResponseType_get_statusMessage( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_set_statusMessage( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_reset_statusMessage( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressResponseType_get_return( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_set_return( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_reset_return( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressResponseType_is_correlationId_nil( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressResponseType_is_userId_nil( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressResponseType_is_statusMessage_nil( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_set_statusMessage_nil( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressResponseType_is_return_nil( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressResponseType_deserialize( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_assignAddressResponseType_declare_parent_namespaces( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @param assignAddressResponseType_om_node node to serialize from ++ * @param assignAddressResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_assignAddressResponseType_serialize( ++ adb_assignAddressResponseType_t* _assignAddressResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* assignAddressResponseType_om_node, axiom_element_t *assignAddressResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_assignAddressResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_ASSIGNADDRESSRESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_assignAddressType.c' +--- old/cluster/generated/adb_assignAddressType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_assignAddressType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,2111 @@ ++ ++ ++ /** ++ * adb_assignAddressType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_assignAddressType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = assignAddressType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_assignAddressType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ axis2_char_t* property_source; ++ ++ ++ axis2_bool_t is_valid_source; ++ ++ ++ axis2_char_t* property_dest; ++ ++ ++ axis2_bool_t is_valid_dest; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_set_correlationId_nil( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_set_userId_nil( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_set_return_nil( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_set_source_nil( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_set_dest_nil( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_assignAddressType_t* AXIS2_CALL ++ adb_assignAddressType_create( ++ const axutil_env_t *env) ++ { ++ adb_assignAddressType_t *_assignAddressType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _assignAddressType = (adb_assignAddressType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_assignAddressType_t)); ++ ++ if(NULL == _assignAddressType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_assignAddressType, 0, sizeof(adb_assignAddressType_t)); ++ ++ _assignAddressType->property_correlationId = NULL; ++ _assignAddressType->is_valid_correlationId = AXIS2_FALSE; ++ _assignAddressType->property_userId = NULL; ++ _assignAddressType->is_valid_userId = AXIS2_FALSE; ++ _assignAddressType->property_statusMessage = NULL; ++ _assignAddressType->is_valid_statusMessage = AXIS2_FALSE; ++ _assignAddressType->is_valid_return = AXIS2_FALSE; ++ _assignAddressType->property_source = NULL; ++ _assignAddressType->is_valid_source = AXIS2_FALSE; ++ _assignAddressType->property_dest = NULL; ++ _assignAddressType->is_valid_dest = AXIS2_FALSE; ++ ++ ++ return _assignAddressType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_free ( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE); ++ ++ adb_assignAddressType_reset_correlationId(_assignAddressType, env); ++ adb_assignAddressType_reset_userId(_assignAddressType, env); ++ adb_assignAddressType_reset_statusMessage(_assignAddressType, env); ++ adb_assignAddressType_reset_return(_assignAddressType, env); ++ adb_assignAddressType_reset_source(_assignAddressType, env); ++ adb_assignAddressType_reset_dest(_assignAddressType, env); ++ ++ ++ if(_assignAddressType) ++ { ++ AXIS2_FREE(env->allocator, _assignAddressType); ++ _assignAddressType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_deserialize( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for assignAddressType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_assignAddressType_set_correlationId(_assignAddressType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_assignAddressType_set_correlationId(_assignAddressType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_assignAddressType_set_userId(_assignAddressType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_assignAddressType_set_userId(_assignAddressType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_assignAddressType_set_statusMessage(_assignAddressType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_assignAddressType_set_return(_assignAddressType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_assignAddressType_set_return(_assignAddressType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building source element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "source", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_assignAddressType_set_source(_assignAddressType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element source"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_assignAddressType_set_source(_assignAddressType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for source "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element source missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building dest element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "dest", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_assignAddressType_set_dest(_assignAddressType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element dest"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_assignAddressType_set_dest(_assignAddressType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for dest "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element dest missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_assignAddressType_declare_parent_namespaces( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_assignAddressType_serialize( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *text_value_6; ++ axis2_char_t *text_value_6_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_assignAddressType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _assignAddressType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_assignAddressType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _assignAddressType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_assignAddressType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _assignAddressType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_assignAddressType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_assignAddressType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_assignAddressType->is_valid_source) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property source"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("source"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("source"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing source element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%ssource>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _assignAddressType->property_source; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_assignAddressType->is_valid_dest) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property dest"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("dest"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("dest"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing dest element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sdest>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_6 = _assignAddressType->property_dest; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE); ++ if (text_value_6_temp) ++ { ++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp)); ++ AXIS2_FREE(env->allocator, text_value_6_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_assignAddressType_get_correlationId( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, NULL); ++ ++ ++ return _assignAddressType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_set_correlationId( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE); ++ ++ if(_assignAddressType->is_valid_correlationId && ++ arg_correlationId == _assignAddressType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_assignAddressType_reset_correlationId(_assignAddressType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _assignAddressType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _assignAddressType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _assignAddressType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_reset_correlationId( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_assignAddressType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _assignAddressType->property_correlationId); ++ _assignAddressType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _assignAddressType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressType_is_correlationId_nil( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_TRUE); ++ ++ return !_assignAddressType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_set_correlationId_nil( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ return adb_assignAddressType_reset_correlationId(_assignAddressType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_assignAddressType_get_userId( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, NULL); ++ ++ ++ return _assignAddressType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_set_userId( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE); ++ ++ if(_assignAddressType->is_valid_userId && ++ arg_userId == _assignAddressType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_assignAddressType_reset_userId(_assignAddressType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _assignAddressType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _assignAddressType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _assignAddressType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_reset_userId( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_assignAddressType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _assignAddressType->property_userId); ++ _assignAddressType->property_userId = NULL; ++ } ++ ++ ++ ++ _assignAddressType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressType_is_userId_nil( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_TRUE); ++ ++ return !_assignAddressType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_set_userId_nil( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ return adb_assignAddressType_reset_userId(_assignAddressType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_assignAddressType_get_statusMessage( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, NULL); ++ ++ ++ return _assignAddressType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_set_statusMessage( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE); ++ ++ if(_assignAddressType->is_valid_statusMessage && ++ arg_statusMessage == _assignAddressType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_assignAddressType_reset_statusMessage(_assignAddressType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _assignAddressType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _assignAddressType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _assignAddressType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_reset_statusMessage( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_assignAddressType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _assignAddressType->property_statusMessage); ++ _assignAddressType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _assignAddressType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressType_is_statusMessage_nil( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_TRUE); ++ ++ return !_assignAddressType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_set_statusMessage_nil( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ return adb_assignAddressType_reset_statusMessage(_assignAddressType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressType_get_return( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, (axis2_bool_t)0); ++ ++ ++ return _assignAddressType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_set_return( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE); ++ ++ if(_assignAddressType->is_valid_return && ++ arg_return == _assignAddressType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_assignAddressType_reset_return(_assignAddressType, env); ++ ++ _assignAddressType->property_return = arg_return; ++ _assignAddressType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_reset_return( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE); ++ ++ ++ _assignAddressType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressType_is_return_nil( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_TRUE); ++ ++ return !_assignAddressType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_set_return_nil( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ return adb_assignAddressType_reset_return(_assignAddressType, env); ++ } ++ ++ ++ ++ /** ++ * getter for source. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_assignAddressType_get_source( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, NULL); ++ ++ ++ return _assignAddressType->property_source; ++ } ++ ++ /** ++ * setter for source ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_set_source( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_source) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE); ++ ++ if(_assignAddressType->is_valid_source && ++ arg_source == _assignAddressType->property_source) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_source) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "source is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_assignAddressType_reset_source(_assignAddressType, env); ++ ++ ++ if(NULL == arg_source) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _assignAddressType->property_source = (axis2_char_t *)axutil_strdup(env, arg_source); ++ if(NULL == _assignAddressType->property_source) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for source"); ++ return AXIS2_FAILURE; ++ } ++ _assignAddressType->is_valid_source = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for source ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_reset_source( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_assignAddressType->property_source != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _assignAddressType->property_source); ++ _assignAddressType->property_source = NULL; ++ } ++ ++ ++ ++ _assignAddressType->is_valid_source = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether source is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressType_is_source_nil( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_TRUE); ++ ++ return !_assignAddressType->is_valid_source; ++ } ++ ++ /** ++ * Set source to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_set_source_nil( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ return adb_assignAddressType_reset_source(_assignAddressType, env); ++ } ++ ++ ++ ++ /** ++ * getter for dest. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_assignAddressType_get_dest( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, NULL); ++ ++ ++ return _assignAddressType->property_dest; ++ } ++ ++ /** ++ * setter for dest ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_set_dest( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_dest) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE); ++ ++ if(_assignAddressType->is_valid_dest && ++ arg_dest == _assignAddressType->property_dest) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_dest) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "dest is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_assignAddressType_reset_dest(_assignAddressType, env); ++ ++ ++ if(NULL == arg_dest) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _assignAddressType->property_dest = (axis2_char_t *)axutil_strdup(env, arg_dest); ++ if(NULL == _assignAddressType->property_dest) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for dest"); ++ return AXIS2_FAILURE; ++ } ++ _assignAddressType->is_valid_dest = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for dest ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_reset_dest( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_assignAddressType->property_dest != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _assignAddressType->property_dest); ++ _assignAddressType->property_dest = NULL; ++ } ++ ++ ++ ++ _assignAddressType->is_valid_dest = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether dest is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressType_is_dest_nil( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_TRUE); ++ ++ return !_assignAddressType->is_valid_dest; ++ } ++ ++ /** ++ * Set dest to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_set_dest_nil( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env) ++ { ++ return adb_assignAddressType_reset_dest(_assignAddressType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_assignAddressType.h' +--- old/cluster/generated/adb_assignAddressType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_assignAddressType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,466 @@ ++ ++ ++ #ifndef ADB_ASSIGNADDRESSTYPE_H ++ #define ADB_ASSIGNADDRESSTYPE_H ++ ++ /** ++ * adb_assignAddressType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_assignAddressType class ++ */ ++ typedef struct adb_assignAddressType adb_assignAddressType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_assignAddressType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_assignAddressType_t object ++ */ ++ adb_assignAddressType_t* AXIS2_CALL ++ adb_assignAddressType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_assignAddressType_t object ++ * @param _assignAddressType adb_assignAddressType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_free ( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_assignAddressType_get_correlationId( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_set_correlationId( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_reset_correlationId( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_assignAddressType_get_userId( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_set_userId( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_reset_userId( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_assignAddressType_get_statusMessage( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_set_statusMessage( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_reset_statusMessage( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressType_get_return( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_set_return( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_reset_return( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for source. ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_assignAddressType_get_source( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for source. ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @param arg_source axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_set_source( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_source); ++ ++ /** ++ * Resetter for source ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_reset_source( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for dest. ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_assignAddressType_get_dest( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for dest. ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @param arg_dest axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_set_dest( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_dest); ++ ++ /** ++ * Resetter for dest ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_reset_dest( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressType_is_correlationId_nil( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressType_is_userId_nil( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressType_is_statusMessage_nil( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_set_statusMessage_nil( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressType_is_return_nil( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether source is nill ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressType_is_source_nil( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether dest is nill ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressType_is_dest_nil( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_assignAddressType_deserialize( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_assignAddressType_declare_parent_namespaces( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _assignAddressType adb_assignAddressType_t object ++ * @param env pointer to environment struct ++ * @param assignAddressType_om_node node to serialize from ++ * @param assignAddressType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_assignAddressType_serialize( ++ adb_assignAddressType_t* _assignAddressType, ++ const axutil_env_t *env, ++ axiom_node_t* assignAddressType_om_node, axiom_element_t *assignAddressType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_assignAddressType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_assignAddressType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_ASSIGNADDRESSTYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_attachVolumeResponseType.c' +--- old/cluster/generated/adb_attachVolumeResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_attachVolumeResponseType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,1401 @@ ++ ++ ++ /** ++ * adb_attachVolumeResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_attachVolumeResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = attachVolumeResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_attachVolumeResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_set_correlationId_nil( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_set_userId_nil( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_set_return_nil( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_attachVolumeResponseType_t* AXIS2_CALL ++ adb_attachVolumeResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_attachVolumeResponseType_t *_attachVolumeResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _attachVolumeResponseType = (adb_attachVolumeResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_attachVolumeResponseType_t)); ++ ++ if(NULL == _attachVolumeResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_attachVolumeResponseType, 0, sizeof(adb_attachVolumeResponseType_t)); ++ ++ _attachVolumeResponseType->property_correlationId = NULL; ++ _attachVolumeResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _attachVolumeResponseType->property_userId = NULL; ++ _attachVolumeResponseType->is_valid_userId = AXIS2_FALSE; ++ _attachVolumeResponseType->property_statusMessage = NULL; ++ _attachVolumeResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _attachVolumeResponseType->is_valid_return = AXIS2_FALSE; ++ ++ ++ return _attachVolumeResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_free ( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_FAILURE); ++ ++ adb_attachVolumeResponseType_reset_correlationId(_attachVolumeResponseType, env); ++ adb_attachVolumeResponseType_reset_userId(_attachVolumeResponseType, env); ++ adb_attachVolumeResponseType_reset_statusMessage(_attachVolumeResponseType, env); ++ adb_attachVolumeResponseType_reset_return(_attachVolumeResponseType, env); ++ ++ ++ if(_attachVolumeResponseType) ++ { ++ AXIS2_FREE(env->allocator, _attachVolumeResponseType); ++ _attachVolumeResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_deserialize( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for attachVolumeResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_attachVolumeResponseType_set_correlationId(_attachVolumeResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_attachVolumeResponseType_set_correlationId(_attachVolumeResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_attachVolumeResponseType_set_userId(_attachVolumeResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_attachVolumeResponseType_set_userId(_attachVolumeResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_attachVolumeResponseType_set_statusMessage(_attachVolumeResponseType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_attachVolumeResponseType_set_return(_attachVolumeResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_attachVolumeResponseType_set_return(_attachVolumeResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_attachVolumeResponseType_declare_parent_namespaces( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_attachVolumeResponseType_serialize( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_attachVolumeResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _attachVolumeResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_attachVolumeResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _attachVolumeResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_attachVolumeResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _attachVolumeResponseType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_attachVolumeResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_attachVolumeResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_attachVolumeResponseType_get_correlationId( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, NULL); ++ ++ ++ return _attachVolumeResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_set_correlationId( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_FAILURE); ++ ++ if(_attachVolumeResponseType->is_valid_correlationId && ++ arg_correlationId == _attachVolumeResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_attachVolumeResponseType_reset_correlationId(_attachVolumeResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _attachVolumeResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _attachVolumeResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _attachVolumeResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_reset_correlationId( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_attachVolumeResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _attachVolumeResponseType->property_correlationId); ++ _attachVolumeResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _attachVolumeResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeResponseType_is_correlationId_nil( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_TRUE); ++ ++ return !_attachVolumeResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_set_correlationId_nil( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_attachVolumeResponseType_reset_correlationId(_attachVolumeResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_attachVolumeResponseType_get_userId( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, NULL); ++ ++ ++ return _attachVolumeResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_set_userId( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_FAILURE); ++ ++ if(_attachVolumeResponseType->is_valid_userId && ++ arg_userId == _attachVolumeResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_attachVolumeResponseType_reset_userId(_attachVolumeResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _attachVolumeResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _attachVolumeResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _attachVolumeResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_reset_userId( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_attachVolumeResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _attachVolumeResponseType->property_userId); ++ _attachVolumeResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _attachVolumeResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeResponseType_is_userId_nil( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_TRUE); ++ ++ return !_attachVolumeResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_set_userId_nil( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_attachVolumeResponseType_reset_userId(_attachVolumeResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_attachVolumeResponseType_get_statusMessage( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, NULL); ++ ++ ++ return _attachVolumeResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_set_statusMessage( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_FAILURE); ++ ++ if(_attachVolumeResponseType->is_valid_statusMessage && ++ arg_statusMessage == _attachVolumeResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_attachVolumeResponseType_reset_statusMessage(_attachVolumeResponseType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _attachVolumeResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _attachVolumeResponseType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _attachVolumeResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_reset_statusMessage( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_attachVolumeResponseType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _attachVolumeResponseType->property_statusMessage); ++ _attachVolumeResponseType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _attachVolumeResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeResponseType_is_statusMessage_nil( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_TRUE); ++ ++ return !_attachVolumeResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_set_statusMessage_nil( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_attachVolumeResponseType_reset_statusMessage(_attachVolumeResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeResponseType_get_return( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, (axis2_bool_t)0); ++ ++ ++ return _attachVolumeResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_set_return( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_FAILURE); ++ ++ if(_attachVolumeResponseType->is_valid_return && ++ arg_return == _attachVolumeResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_attachVolumeResponseType_reset_return(_attachVolumeResponseType, env); ++ ++ _attachVolumeResponseType->property_return = arg_return; ++ _attachVolumeResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_reset_return( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ _attachVolumeResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeResponseType_is_return_nil( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_TRUE); ++ ++ return !_attachVolumeResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_set_return_nil( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_attachVolumeResponseType_reset_return(_attachVolumeResponseType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_attachVolumeResponseType.h' +--- old/cluster/generated/adb_attachVolumeResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_attachVolumeResponseType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,362 @@ ++ ++ ++ #ifndef ADB_ATTACHVOLUMERESPONSETYPE_H ++ #define ADB_ATTACHVOLUMERESPONSETYPE_H ++ ++ /** ++ * adb_attachVolumeResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_attachVolumeResponseType class ++ */ ++ typedef struct adb_attachVolumeResponseType adb_attachVolumeResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_attachVolumeResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_attachVolumeResponseType_t object ++ */ ++ adb_attachVolumeResponseType_t* AXIS2_CALL ++ adb_attachVolumeResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_attachVolumeResponseType_t object ++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_free ( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_attachVolumeResponseType_get_correlationId( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_set_correlationId( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_reset_correlationId( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_attachVolumeResponseType_get_userId( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_set_userId( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_reset_userId( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_attachVolumeResponseType_get_statusMessage( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_set_statusMessage( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_reset_statusMessage( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeResponseType_get_return( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_set_return( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_reset_return( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeResponseType_is_correlationId_nil( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeResponseType_is_userId_nil( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeResponseType_is_statusMessage_nil( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_set_statusMessage_nil( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeResponseType_is_return_nil( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeResponseType_deserialize( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_attachVolumeResponseType_declare_parent_namespaces( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param attachVolumeResponseType_om_node node to serialize from ++ * @param attachVolumeResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_attachVolumeResponseType_serialize( ++ adb_attachVolumeResponseType_t* _attachVolumeResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* attachVolumeResponseType_om_node, axiom_element_t *attachVolumeResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_attachVolumeResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_ATTACHVOLUMERESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_attachVolumeType.c' +--- old/cluster/generated/adb_attachVolumeType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_attachVolumeType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,2749 @@ ++ ++ ++ /** ++ * adb_attachVolumeType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_attachVolumeType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = attachVolumeType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_attachVolumeType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ axis2_char_t* property_volumeId; ++ ++ ++ axis2_bool_t is_valid_volumeId; ++ ++ ++ axis2_char_t* property_instanceId; ++ ++ ++ axis2_bool_t is_valid_instanceId; ++ ++ ++ axis2_char_t* property_remoteDev; ++ ++ ++ axis2_bool_t is_valid_remoteDev; ++ ++ ++ axis2_char_t* property_localDev; ++ ++ ++ axis2_bool_t is_valid_localDev; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_correlationId_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_userId_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_return_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_volumeId_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_instanceId_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_remoteDev_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_localDev_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_attachVolumeType_t* AXIS2_CALL ++ adb_attachVolumeType_create( ++ const axutil_env_t *env) ++ { ++ adb_attachVolumeType_t *_attachVolumeType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _attachVolumeType = (adb_attachVolumeType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_attachVolumeType_t)); ++ ++ if(NULL == _attachVolumeType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_attachVolumeType, 0, sizeof(adb_attachVolumeType_t)); ++ ++ _attachVolumeType->property_correlationId = NULL; ++ _attachVolumeType->is_valid_correlationId = AXIS2_FALSE; ++ _attachVolumeType->property_userId = NULL; ++ _attachVolumeType->is_valid_userId = AXIS2_FALSE; ++ _attachVolumeType->property_statusMessage = NULL; ++ _attachVolumeType->is_valid_statusMessage = AXIS2_FALSE; ++ _attachVolumeType->is_valid_return = AXIS2_FALSE; ++ _attachVolumeType->property_volumeId = NULL; ++ _attachVolumeType->is_valid_volumeId = AXIS2_FALSE; ++ _attachVolumeType->property_instanceId = NULL; ++ _attachVolumeType->is_valid_instanceId = AXIS2_FALSE; ++ _attachVolumeType->property_remoteDev = NULL; ++ _attachVolumeType->is_valid_remoteDev = AXIS2_FALSE; ++ _attachVolumeType->property_localDev = NULL; ++ _attachVolumeType->is_valid_localDev = AXIS2_FALSE; ++ ++ ++ return _attachVolumeType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_free ( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE); ++ ++ adb_attachVolumeType_reset_correlationId(_attachVolumeType, env); ++ adb_attachVolumeType_reset_userId(_attachVolumeType, env); ++ adb_attachVolumeType_reset_statusMessage(_attachVolumeType, env); ++ adb_attachVolumeType_reset_return(_attachVolumeType, env); ++ adb_attachVolumeType_reset_volumeId(_attachVolumeType, env); ++ adb_attachVolumeType_reset_instanceId(_attachVolumeType, env); ++ adb_attachVolumeType_reset_remoteDev(_attachVolumeType, env); ++ adb_attachVolumeType_reset_localDev(_attachVolumeType, env); ++ ++ ++ if(_attachVolumeType) ++ { ++ AXIS2_FREE(env->allocator, _attachVolumeType); ++ _attachVolumeType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_deserialize( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for attachVolumeType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_attachVolumeType_set_correlationId(_attachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_attachVolumeType_set_correlationId(_attachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_attachVolumeType_set_userId(_attachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_attachVolumeType_set_userId(_attachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_attachVolumeType_set_statusMessage(_attachVolumeType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_attachVolumeType_set_return(_attachVolumeType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_attachVolumeType_set_return(_attachVolumeType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building volumeId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "volumeId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_attachVolumeType_set_volumeId(_attachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element volumeId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_attachVolumeType_set_volumeId(_attachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for volumeId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_attachVolumeType_set_instanceId(_attachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_attachVolumeType_set_instanceId(_attachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building remoteDev element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "remoteDev", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_attachVolumeType_set_remoteDev(_attachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element remoteDev"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_attachVolumeType_set_remoteDev(_attachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for remoteDev "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building localDev element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "localDev", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_attachVolumeType_set_localDev(_attachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element localDev"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_attachVolumeType_set_localDev(_attachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for localDev "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_attachVolumeType_declare_parent_namespaces( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_attachVolumeType_serialize( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *text_value_6; ++ axis2_char_t *text_value_6_temp; ++ ++ axis2_char_t *text_value_7; ++ axis2_char_t *text_value_7_temp; ++ ++ axis2_char_t *text_value_8; ++ axis2_char_t *text_value_8_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_attachVolumeType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _attachVolumeType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_attachVolumeType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _attachVolumeType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_attachVolumeType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _attachVolumeType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_attachVolumeType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_attachVolumeType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_attachVolumeType->is_valid_volumeId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("volumeId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("volumeId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing volumeId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%svolumeId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _attachVolumeType->property_volumeId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_attachVolumeType->is_valid_instanceId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_6 = _attachVolumeType->property_instanceId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE); ++ if (text_value_6_temp) ++ { ++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp)); ++ AXIS2_FREE(env->allocator, text_value_6_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_attachVolumeType->is_valid_remoteDev) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("remoteDev"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("remoteDev"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing remoteDev element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sremoteDev>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_7 = _attachVolumeType->property_remoteDev; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE); ++ if (text_value_7_temp) ++ { ++ axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp)); ++ AXIS2_FREE(env->allocator, text_value_7_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_attachVolumeType->is_valid_localDev) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("localDev"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("localDev"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing localDev element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%slocalDev>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_8 = _attachVolumeType->property_localDev; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE); ++ if (text_value_8_temp) ++ { ++ axutil_stream_write(stream, env, text_value_8_temp, axutil_strlen(text_value_8_temp)); ++ AXIS2_FREE(env->allocator, text_value_8_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_attachVolumeType_get_correlationId( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, NULL); ++ ++ ++ return _attachVolumeType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_correlationId( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE); ++ ++ if(_attachVolumeType->is_valid_correlationId && ++ arg_correlationId == _attachVolumeType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_attachVolumeType_reset_correlationId(_attachVolumeType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _attachVolumeType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _attachVolumeType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _attachVolumeType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_reset_correlationId( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_attachVolumeType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _attachVolumeType->property_correlationId); ++ _attachVolumeType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _attachVolumeType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeType_is_correlationId_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_TRUE); ++ ++ return !_attachVolumeType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_correlationId_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_attachVolumeType_reset_correlationId(_attachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_attachVolumeType_get_userId( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, NULL); ++ ++ ++ return _attachVolumeType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_userId( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE); ++ ++ if(_attachVolumeType->is_valid_userId && ++ arg_userId == _attachVolumeType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_attachVolumeType_reset_userId(_attachVolumeType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _attachVolumeType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _attachVolumeType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _attachVolumeType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_reset_userId( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_attachVolumeType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _attachVolumeType->property_userId); ++ _attachVolumeType->property_userId = NULL; ++ } ++ ++ ++ ++ _attachVolumeType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeType_is_userId_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_TRUE); ++ ++ return !_attachVolumeType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_userId_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_attachVolumeType_reset_userId(_attachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_attachVolumeType_get_statusMessage( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, NULL); ++ ++ ++ return _attachVolumeType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_statusMessage( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE); ++ ++ if(_attachVolumeType->is_valid_statusMessage && ++ arg_statusMessage == _attachVolumeType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_attachVolumeType_reset_statusMessage(_attachVolumeType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _attachVolumeType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _attachVolumeType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _attachVolumeType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_reset_statusMessage( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_attachVolumeType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _attachVolumeType->property_statusMessage); ++ _attachVolumeType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _attachVolumeType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeType_is_statusMessage_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_TRUE); ++ ++ return !_attachVolumeType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_statusMessage_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_attachVolumeType_reset_statusMessage(_attachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeType_get_return( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, (axis2_bool_t)0); ++ ++ ++ return _attachVolumeType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_return( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE); ++ ++ if(_attachVolumeType->is_valid_return && ++ arg_return == _attachVolumeType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_attachVolumeType_reset_return(_attachVolumeType, env); ++ ++ _attachVolumeType->property_return = arg_return; ++ _attachVolumeType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_reset_return( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE); ++ ++ ++ _attachVolumeType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeType_is_return_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_TRUE); ++ ++ return !_attachVolumeType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_return_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_attachVolumeType_reset_return(_attachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for volumeId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_attachVolumeType_get_volumeId( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, NULL); ++ ++ ++ return _attachVolumeType->property_volumeId; ++ } ++ ++ /** ++ * setter for volumeId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_volumeId( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_volumeId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE); ++ ++ if(_attachVolumeType->is_valid_volumeId && ++ arg_volumeId == _attachVolumeType->property_volumeId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_attachVolumeType_reset_volumeId(_attachVolumeType, env); ++ ++ ++ if(NULL == arg_volumeId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _attachVolumeType->property_volumeId = (axis2_char_t *)axutil_strdup(env, arg_volumeId); ++ if(NULL == _attachVolumeType->property_volumeId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for volumeId"); ++ return AXIS2_FAILURE; ++ } ++ _attachVolumeType->is_valid_volumeId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for volumeId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_reset_volumeId( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_attachVolumeType->property_volumeId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _attachVolumeType->property_volumeId); ++ _attachVolumeType->property_volumeId = NULL; ++ } ++ ++ ++ ++ _attachVolumeType->is_valid_volumeId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether volumeId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeType_is_volumeId_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_TRUE); ++ ++ return !_attachVolumeType->is_valid_volumeId; ++ } ++ ++ /** ++ * Set volumeId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_volumeId_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_attachVolumeType_reset_volumeId(_attachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_attachVolumeType_get_instanceId( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, NULL); ++ ++ ++ return _attachVolumeType->property_instanceId; ++ } ++ ++ /** ++ * setter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_instanceId( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE); ++ ++ if(_attachVolumeType->is_valid_instanceId && ++ arg_instanceId == _attachVolumeType->property_instanceId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_attachVolumeType_reset_instanceId(_attachVolumeType, env); ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _attachVolumeType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId); ++ if(NULL == _attachVolumeType->property_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId"); ++ return AXIS2_FAILURE; ++ } ++ _attachVolumeType->is_valid_instanceId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_reset_instanceId( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_attachVolumeType->property_instanceId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _attachVolumeType->property_instanceId); ++ _attachVolumeType->property_instanceId = NULL; ++ } ++ ++ ++ ++ _attachVolumeType->is_valid_instanceId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeType_is_instanceId_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_TRUE); ++ ++ return !_attachVolumeType->is_valid_instanceId; ++ } ++ ++ /** ++ * Set instanceId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_instanceId_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_attachVolumeType_reset_instanceId(_attachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for remoteDev. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_attachVolumeType_get_remoteDev( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, NULL); ++ ++ ++ return _attachVolumeType->property_remoteDev; ++ } ++ ++ /** ++ * setter for remoteDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_remoteDev( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_remoteDev) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE); ++ ++ if(_attachVolumeType->is_valid_remoteDev && ++ arg_remoteDev == _attachVolumeType->property_remoteDev) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_attachVolumeType_reset_remoteDev(_attachVolumeType, env); ++ ++ ++ if(NULL == arg_remoteDev) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _attachVolumeType->property_remoteDev = (axis2_char_t *)axutil_strdup(env, arg_remoteDev); ++ if(NULL == _attachVolumeType->property_remoteDev) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for remoteDev"); ++ return AXIS2_FAILURE; ++ } ++ _attachVolumeType->is_valid_remoteDev = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for remoteDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_reset_remoteDev( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_attachVolumeType->property_remoteDev != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _attachVolumeType->property_remoteDev); ++ _attachVolumeType->property_remoteDev = NULL; ++ } ++ ++ ++ ++ _attachVolumeType->is_valid_remoteDev = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether remoteDev is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeType_is_remoteDev_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_TRUE); ++ ++ return !_attachVolumeType->is_valid_remoteDev; ++ } ++ ++ /** ++ * Set remoteDev to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_remoteDev_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_attachVolumeType_reset_remoteDev(_attachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for localDev. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_attachVolumeType_get_localDev( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, NULL); ++ ++ ++ return _attachVolumeType->property_localDev; ++ } ++ ++ /** ++ * setter for localDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_localDev( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_localDev) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE); ++ ++ if(_attachVolumeType->is_valid_localDev && ++ arg_localDev == _attachVolumeType->property_localDev) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_attachVolumeType_reset_localDev(_attachVolumeType, env); ++ ++ ++ if(NULL == arg_localDev) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _attachVolumeType->property_localDev = (axis2_char_t *)axutil_strdup(env, arg_localDev); ++ if(NULL == _attachVolumeType->property_localDev) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for localDev"); ++ return AXIS2_FAILURE; ++ } ++ _attachVolumeType->is_valid_localDev = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for localDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_reset_localDev( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_attachVolumeType->property_localDev != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _attachVolumeType->property_localDev); ++ _attachVolumeType->property_localDev = NULL; ++ } ++ ++ ++ ++ _attachVolumeType->is_valid_localDev = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether localDev is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeType_is_localDev_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_TRUE); ++ ++ return !_attachVolumeType->is_valid_localDev; ++ } ++ ++ /** ++ * Set localDev to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_localDev_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_attachVolumeType_reset_localDev(_attachVolumeType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_attachVolumeType.h' +--- old/cluster/generated/adb_attachVolumeType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_attachVolumeType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,570 @@ ++ ++ ++ #ifndef ADB_ATTACHVOLUMETYPE_H ++ #define ADB_ATTACHVOLUMETYPE_H ++ ++ /** ++ * adb_attachVolumeType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_attachVolumeType class ++ */ ++ typedef struct adb_attachVolumeType adb_attachVolumeType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_attachVolumeType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_attachVolumeType_t object ++ */ ++ adb_attachVolumeType_t* AXIS2_CALL ++ adb_attachVolumeType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_attachVolumeType_t object ++ * @param _attachVolumeType adb_attachVolumeType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_free ( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_attachVolumeType_get_correlationId( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_correlationId( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_reset_correlationId( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_attachVolumeType_get_userId( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_userId( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_reset_userId( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_attachVolumeType_get_statusMessage( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_statusMessage( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_reset_statusMessage( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeType_get_return( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_return( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_reset_return( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for volumeId. ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_attachVolumeType_get_volumeId( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for volumeId. ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_volumeId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_volumeId( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_volumeId); ++ ++ /** ++ * Resetter for volumeId ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_reset_volumeId( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceId. ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_attachVolumeType_get_instanceId( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceId. ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_instanceId( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId); ++ ++ /** ++ * Resetter for instanceId ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_reset_instanceId( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for remoteDev. ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_attachVolumeType_get_remoteDev( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for remoteDev. ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_remoteDev axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_remoteDev( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_remoteDev); ++ ++ /** ++ * Resetter for remoteDev ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_reset_remoteDev( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for localDev. ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_attachVolumeType_get_localDev( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for localDev. ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_localDev axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_localDev( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_localDev); ++ ++ /** ++ * Resetter for localDev ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_reset_localDev( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeType_is_correlationId_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeType_is_userId_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeType_is_statusMessage_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_set_statusMessage_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeType_is_return_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether volumeId is nill ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeType_is_volumeId_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether instanceId is nill ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeType_is_instanceId_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether remoteDev is nill ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeType_is_remoteDev_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether localDev is nill ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeType_is_localDev_nil( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_attachVolumeType_deserialize( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_attachVolumeType_declare_parent_namespaces( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _attachVolumeType adb_attachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param attachVolumeType_om_node node to serialize from ++ * @param attachVolumeType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_attachVolumeType_serialize( ++ adb_attachVolumeType_t* _attachVolumeType, ++ const axutil_env_t *env, ++ axiom_node_t* attachVolumeType_om_node, axiom_element_t *attachVolumeType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_attachVolumeType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_attachVolumeType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_ATTACHVOLUMETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ccInstanceType.c' +--- old/cluster/generated/adb_ccInstanceType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ccInstanceType.c 2010-01-05 01:00:47 +0000 +@@ -0,0 +1,6382 @@ ++ ++ ++ /** ++ * adb_ccInstanceType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ccInstanceType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ccInstanceType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ccInstanceType ++ { ++ axis2_char_t* property_imageId; ++ ++ ++ axis2_bool_t is_valid_imageId; ++ ++ ++ axis2_char_t* property_kernelId; ++ ++ ++ axis2_bool_t is_valid_kernelId; ++ ++ ++ axis2_char_t* property_ramdiskId; ++ ++ ++ axis2_bool_t is_valid_ramdiskId; ++ ++ ++ axis2_char_t* property_instanceId; ++ ++ ++ axis2_bool_t is_valid_instanceId; ++ ++ ++ adb_virtualMachineType_t* property_instanceType; ++ ++ ++ axis2_bool_t is_valid_instanceType; ++ ++ ++ axis2_char_t* property_keyName; ++ ++ ++ axis2_bool_t is_valid_keyName; ++ ++ ++ axutil_date_time_t* property_launchTime; ++ ++ ++ axis2_bool_t is_valid_launchTime; ++ ++ ++ axis2_char_t* property_stateName; ++ ++ ++ axis2_bool_t is_valid_stateName; ++ ++ ++ adb_netConfigType_t* property_netParams; ++ ++ ++ axis2_bool_t is_valid_netParams; ++ ++ ++ axis2_char_t* property_ownerId; ++ ++ ++ axis2_bool_t is_valid_ownerId; ++ ++ ++ axis2_char_t* property_reservationId; ++ ++ ++ axis2_bool_t is_valid_reservationId; ++ ++ ++ axis2_char_t* property_serviceTag; ++ ++ ++ axis2_bool_t is_valid_serviceTag; ++ ++ ++ axis2_char_t* property_userData; ++ ++ ++ axis2_bool_t is_valid_userData; ++ ++ ++ axis2_char_t* property_launchIndex; ++ ++ ++ axis2_bool_t is_valid_launchIndex; ++ ++ ++ int property_networkIndex; ++ ++ ++ axis2_bool_t is_valid_networkIndex; ++ ++ ++ axutil_array_list_t* property_groupNames; ++ ++ ++ axis2_bool_t is_valid_groupNames; ++ ++ ++ axutil_array_list_t* property_volumes; ++ ++ ++ axis2_bool_t is_valid_volumes; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_imageId_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_kernelId_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_ramdiskId_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_instanceId_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_instanceType_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_keyName_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_launchTime_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_stateName_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_netParams_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_ownerId_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_reservationId_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_serviceTag_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_userData_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_launchIndex_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_networkIndex_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_groupNames_nil_at( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_groupNames_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_volumes_nil_at( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_volumes_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ccInstanceType_t* AXIS2_CALL ++ adb_ccInstanceType_create( ++ const axutil_env_t *env) ++ { ++ adb_ccInstanceType_t *_ccInstanceType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ccInstanceType = (adb_ccInstanceType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ccInstanceType_t)); ++ ++ if(NULL == _ccInstanceType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ccInstanceType, 0, sizeof(adb_ccInstanceType_t)); ++ ++ _ccInstanceType->property_imageId = NULL; ++ _ccInstanceType->is_valid_imageId = AXIS2_FALSE; ++ _ccInstanceType->property_kernelId = NULL; ++ _ccInstanceType->is_valid_kernelId = AXIS2_FALSE; ++ _ccInstanceType->property_ramdiskId = NULL; ++ _ccInstanceType->is_valid_ramdiskId = AXIS2_FALSE; ++ _ccInstanceType->property_instanceId = NULL; ++ _ccInstanceType->is_valid_instanceId = AXIS2_FALSE; ++ _ccInstanceType->property_instanceType = NULL; ++ _ccInstanceType->is_valid_instanceType = AXIS2_FALSE; ++ _ccInstanceType->property_keyName = NULL; ++ _ccInstanceType->is_valid_keyName = AXIS2_FALSE; ++ _ccInstanceType->property_launchTime = NULL; ++ _ccInstanceType->is_valid_launchTime = AXIS2_FALSE; ++ _ccInstanceType->property_stateName = NULL; ++ _ccInstanceType->is_valid_stateName = AXIS2_FALSE; ++ _ccInstanceType->property_netParams = NULL; ++ _ccInstanceType->is_valid_netParams = AXIS2_FALSE; ++ _ccInstanceType->property_ownerId = NULL; ++ _ccInstanceType->is_valid_ownerId = AXIS2_FALSE; ++ _ccInstanceType->property_reservationId = NULL; ++ _ccInstanceType->is_valid_reservationId = AXIS2_FALSE; ++ _ccInstanceType->property_serviceTag = NULL; ++ _ccInstanceType->is_valid_serviceTag = AXIS2_FALSE; ++ _ccInstanceType->property_userData = NULL; ++ _ccInstanceType->is_valid_userData = AXIS2_FALSE; ++ _ccInstanceType->property_launchIndex = NULL; ++ _ccInstanceType->is_valid_launchIndex = AXIS2_FALSE; ++ _ccInstanceType->is_valid_networkIndex = AXIS2_FALSE; ++ _ccInstanceType->property_groupNames = NULL; ++ _ccInstanceType->is_valid_groupNames = AXIS2_FALSE; ++ _ccInstanceType->property_volumes = NULL; ++ _ccInstanceType->is_valid_volumes = AXIS2_FALSE; ++ ++ ++ return _ccInstanceType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_free ( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ adb_ccInstanceType_reset_imageId(_ccInstanceType, env); ++ adb_ccInstanceType_reset_kernelId(_ccInstanceType, env); ++ adb_ccInstanceType_reset_ramdiskId(_ccInstanceType, env); ++ adb_ccInstanceType_reset_instanceId(_ccInstanceType, env); ++ adb_ccInstanceType_reset_instanceType(_ccInstanceType, env); ++ adb_ccInstanceType_reset_keyName(_ccInstanceType, env); ++ adb_ccInstanceType_reset_launchTime(_ccInstanceType, env); ++ adb_ccInstanceType_reset_stateName(_ccInstanceType, env); ++ adb_ccInstanceType_reset_netParams(_ccInstanceType, env); ++ adb_ccInstanceType_reset_ownerId(_ccInstanceType, env); ++ adb_ccInstanceType_reset_reservationId(_ccInstanceType, env); ++ adb_ccInstanceType_reset_serviceTag(_ccInstanceType, env); ++ adb_ccInstanceType_reset_userData(_ccInstanceType, env); ++ adb_ccInstanceType_reset_launchIndex(_ccInstanceType, env); ++ adb_ccInstanceType_reset_networkIndex(_ccInstanceType, env); ++ adb_ccInstanceType_reset_groupNames(_ccInstanceType, env); ++ adb_ccInstanceType_reset_volumes(_ccInstanceType, env); ++ ++ ++ if(_ccInstanceType) ++ { ++ AXIS2_FREE(env->allocator, _ccInstanceType); ++ _ccInstanceType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_deserialize( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ccInstanceType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building imageId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "imageId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ccInstanceType_set_imageId(_ccInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element imageId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ccInstanceType_set_imageId(_ccInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for imageId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building kernelId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "kernelId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ccInstanceType_set_kernelId(_ccInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element kernelId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ccInstanceType_set_kernelId(_ccInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for kernelId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building ramdiskId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "ramdiskId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ccInstanceType_set_ramdiskId(_ccInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element ramdiskId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ccInstanceType_set_ramdiskId(_ccInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ramdiskId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ccInstanceType_set_instanceId(_ccInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ccInstanceType_set_instanceId(_ccInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceType element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceType", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_virtualMachineType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_virtualMachineType_create(env); ++ ++ status = adb_virtualMachineType_deserialize((adb_virtualMachineType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element instanceType"); ++ } ++ else ++ { ++ status = adb_ccInstanceType_set_instanceType(_ccInstanceType, env, ++ (adb_virtualMachineType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceType "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building keyName element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "keyName", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ccInstanceType_set_keyName(_ccInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element keyName"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ccInstanceType_set_keyName(_ccInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for keyName "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building launchTime element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "launchTime", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ element = (void*)axutil_date_time_create(env); ++ status = axutil_date_time_deserialize_date_time((axutil_date_time_t*)element, env, ++ text_value); ++ if(AXIS2_FAILURE == status) ++ { ++ if(element != NULL) ++ { ++ axutil_date_time_free((axutil_date_time_t*)element, env); ++ } ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building element launchTime "); ++ } ++ else ++ { ++ status = adb_ccInstanceType_set_launchTime(_ccInstanceType, env, ++ (axutil_date_time_t*)element); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element launchTime"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for launchTime "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building stateName element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "stateName", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ccInstanceType_set_stateName(_ccInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element stateName"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ccInstanceType_set_stateName(_ccInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for stateName "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building netParams element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "netParams", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_netConfigType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_netConfigType_create(env); ++ ++ status = adb_netConfigType_deserialize((adb_netConfigType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element netParams"); ++ } ++ else ++ { ++ status = adb_ccInstanceType_set_netParams(_ccInstanceType, env, ++ (adb_netConfigType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for netParams "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building ownerId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "ownerId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ccInstanceType_set_ownerId(_ccInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element ownerId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ccInstanceType_set_ownerId(_ccInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ownerId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building reservationId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "reservationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ccInstanceType_set_reservationId(_ccInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element reservationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ccInstanceType_set_reservationId(_ccInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for reservationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building serviceTag element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "serviceTag", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ccInstanceType_set_serviceTag(_ccInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element serviceTag"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ccInstanceType_set_serviceTag(_ccInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for serviceTag "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userData element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userData", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ccInstanceType_set_userData(_ccInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userData"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ccInstanceType_set_userData(_ccInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userData "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building launchIndex element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "launchIndex", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ccInstanceType_set_launchIndex(_ccInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element launchIndex"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ccInstanceType_set_launchIndex(_ccInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for launchIndex "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building networkIndex element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "networkIndex", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ccInstanceType_set_networkIndex(_ccInstanceType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element networkIndex"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for networkIndex "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building groupNames array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building groupNames element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "groupNames", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value)); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element groupNames"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, "")); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for groupNames "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "groupNames (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_ccInstanceType_set_groupNames(_ccInstanceType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building volumes array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building volumes element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "volumes", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ element = (void*)adb_volumeType_create(env); ++ ++ status = adb_volumeType_deserialize((adb_volumeType_t*)element, env, ++ ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building element volumes "); ++ } ++ else ++ { ++ axutil_array_list_add_at(arr_list, env, i, element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for volumes "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "volumes (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_ccInstanceType_set_volumes(_ccInstanceType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ccInstanceType_declare_parent_namespaces( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ccInstanceType_serialize( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t *text_value_4; ++ axis2_char_t *text_value_4_temp; ++ ++ axis2_char_t text_value_5[64]; ++ ++ axis2_char_t *text_value_6; ++ axis2_char_t *text_value_6_temp; ++ ++ axis2_char_t *text_value_7; ++ axis2_char_t *text_value_7_temp; ++ ++ axis2_char_t *text_value_8; ++ axis2_char_t *text_value_8_temp; ++ ++ axis2_char_t text_value_9[64]; ++ ++ axis2_char_t *text_value_10; ++ axis2_char_t *text_value_10_temp; ++ ++ axis2_char_t *text_value_11; ++ axis2_char_t *text_value_11_temp; ++ ++ axis2_char_t *text_value_12; ++ axis2_char_t *text_value_12_temp; ++ ++ axis2_char_t *text_value_13; ++ axis2_char_t *text_value_13_temp; ++ ++ axis2_char_t *text_value_14; ++ axis2_char_t *text_value_14_temp; ++ ++ axis2_char_t text_value_15[64]; ++ ++ axis2_char_t *text_value_16; ++ axis2_char_t *text_value_16_temp; ++ ++ axis2_char_t text_value_17[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ccInstanceType->is_valid_imageId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("imageId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("imageId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing imageId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%simageId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ccInstanceType->property_imageId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ccInstanceType->is_valid_kernelId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("kernelId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("kernelId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing kernelId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%skernelId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ccInstanceType->property_kernelId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ccInstanceType->is_valid_ramdiskId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ramdiskId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ramdiskId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ramdiskId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sramdiskId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _ccInstanceType->property_ramdiskId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ccInstanceType->is_valid_instanceId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_4 = _ccInstanceType->property_instanceId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_4_temp = axutil_xml_quote_string(env, text_value_4, AXIS2_TRUE); ++ if (text_value_4_temp) ++ { ++ axutil_stream_write(stream, env, text_value_4_temp, axutil_strlen(text_value_4_temp)); ++ AXIS2_FREE(env->allocator, text_value_4_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ccInstanceType->is_valid_instanceType) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceType"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceType"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceType element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceType", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ if(!adb_virtualMachineType_is_particle()) ++ { ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ } ++ ++ adb_virtualMachineType_serialize(_ccInstanceType->property_instanceType, ++ env, current_node, parent_element, ++ adb_virtualMachineType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index); ++ ++ if(!adb_virtualMachineType_is_particle()) ++ { ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ccInstanceType->is_valid_keyName) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("keyName"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("keyName"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing keyName element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%skeyName>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_6 = _ccInstanceType->property_keyName; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE); ++ if (text_value_6_temp) ++ { ++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp)); ++ AXIS2_FREE(env->allocator, text_value_6_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ccInstanceType->is_valid_launchTime) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("launchTime"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("launchTime"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing launchTime element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%slaunchTime>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_7 = axutil_date_time_serialize_date_time(_ccInstanceType->property_launchTime, env); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ccInstanceType->is_valid_stateName) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("stateName"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("stateName"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing stateName element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstateName>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_8 = _ccInstanceType->property_stateName; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE); ++ if (text_value_8_temp) ++ { ++ axutil_stream_write(stream, env, text_value_8_temp, axutil_strlen(text_value_8_temp)); ++ AXIS2_FREE(env->allocator, text_value_8_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ccInstanceType->is_valid_netParams) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("netParams"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("netParams"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing netParams element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%snetParams", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ if(!adb_netConfigType_is_particle()) ++ { ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ } ++ ++ adb_netConfigType_serialize(_ccInstanceType->property_netParams, ++ env, current_node, parent_element, ++ adb_netConfigType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index); ++ ++ if(!adb_netConfigType_is_particle()) ++ { ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ccInstanceType->is_valid_ownerId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ownerId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ownerId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ownerId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sownerId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_10 = _ccInstanceType->property_ownerId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_10_temp = axutil_xml_quote_string(env, text_value_10, AXIS2_TRUE); ++ if (text_value_10_temp) ++ { ++ axutil_stream_write(stream, env, text_value_10_temp, axutil_strlen(text_value_10_temp)); ++ AXIS2_FREE(env->allocator, text_value_10_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_10, axutil_strlen(text_value_10)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ccInstanceType->is_valid_reservationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("reservationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("reservationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing reservationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreservationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_11 = _ccInstanceType->property_reservationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_11_temp = axutil_xml_quote_string(env, text_value_11, AXIS2_TRUE); ++ if (text_value_11_temp) ++ { ++ axutil_stream_write(stream, env, text_value_11_temp, axutil_strlen(text_value_11_temp)); ++ AXIS2_FREE(env->allocator, text_value_11_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_11, axutil_strlen(text_value_11)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ccInstanceType->is_valid_serviceTag) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("serviceTag"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("serviceTag"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing serviceTag element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sserviceTag>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_12 = _ccInstanceType->property_serviceTag; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_12_temp = axutil_xml_quote_string(env, text_value_12, AXIS2_TRUE); ++ if (text_value_12_temp) ++ { ++ axutil_stream_write(stream, env, text_value_12_temp, axutil_strlen(text_value_12_temp)); ++ AXIS2_FREE(env->allocator, text_value_12_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_12, axutil_strlen(text_value_12)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ccInstanceType->is_valid_userData) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userData"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userData"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userData element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserData>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_13 = _ccInstanceType->property_userData; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_13_temp = axutil_xml_quote_string(env, text_value_13, AXIS2_TRUE); ++ if (text_value_13_temp) ++ { ++ axutil_stream_write(stream, env, text_value_13_temp, axutil_strlen(text_value_13_temp)); ++ AXIS2_FREE(env->allocator, text_value_13_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_13, axutil_strlen(text_value_13)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ccInstanceType->is_valid_launchIndex) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("launchIndex"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("launchIndex"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing launchIndex element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%slaunchIndex>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_14 = _ccInstanceType->property_launchIndex; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_14_temp = axutil_xml_quote_string(env, text_value_14, AXIS2_TRUE); ++ if (text_value_14_temp) ++ { ++ axutil_stream_write(stream, env, text_value_14_temp, axutil_strlen(text_value_14_temp)); ++ AXIS2_FREE(env->allocator, text_value_14_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_14, axutil_strlen(text_value_14)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ccInstanceType->is_valid_networkIndex) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("networkIndex"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("networkIndex"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing networkIndex element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%snetworkIndex>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_15, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ccInstanceType->property_networkIndex); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_15, axutil_strlen(text_value_15)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ccInstanceType->is_valid_groupNames) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("groupNames"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("groupNames"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing groupNames array ++ */ ++ if (_ccInstanceType->property_groupNames != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%sgroupNames>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_ccInstanceType->property_groupNames, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_ccInstanceType->property_groupNames, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing groupNames element ++ */ ++ ++ ++ ++ text_value_16 = (axis2_char_t*)element; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_16_temp = axutil_xml_quote_string(env, text_value_16, AXIS2_TRUE); ++ if (text_value_16_temp) ++ { ++ axutil_stream_write(stream, env, text_value_16_temp, axutil_strlen(text_value_16_temp)); ++ AXIS2_FREE(env->allocator, text_value_16_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_16, axutil_strlen(text_value_16)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ccInstanceType->is_valid_volumes) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("volumes"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("volumes"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing volumes array ++ */ ++ if (_ccInstanceType->property_volumes != NULL) ++ { ++ ++ ++ sprintf(start_input_str, "<%s%svolumes", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_ccInstanceType->property_volumes, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_ccInstanceType->property_volumes, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing volumes element ++ */ ++ ++ ++ ++ if(!adb_volumeType_is_particle()) ++ { ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ } ++ ++ adb_volumeType_serialize((adb_volumeType_t*)element, ++ env, current_node, parent_element, ++ adb_volumeType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index); ++ ++ if(!adb_volumeType_is_particle()) ++ { ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ } ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for imageId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccInstanceType_get_imageId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL); ++ ++ ++ return _ccInstanceType->property_imageId; ++ } ++ ++ /** ++ * setter for imageId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_imageId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_imageId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ if(_ccInstanceType->is_valid_imageId && ++ arg_imageId == _ccInstanceType->property_imageId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ccInstanceType_reset_imageId(_ccInstanceType, env); ++ ++ ++ if(NULL == arg_imageId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ccInstanceType->property_imageId = (axis2_char_t *)axutil_strdup(env, arg_imageId); ++ if(NULL == _ccInstanceType->property_imageId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for imageId"); ++ return AXIS2_FAILURE; ++ } ++ _ccInstanceType->is_valid_imageId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for imageId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_imageId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ccInstanceType->property_imageId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ccInstanceType->property_imageId); ++ _ccInstanceType->property_imageId = NULL; ++ } ++ ++ ++ ++ _ccInstanceType->is_valid_imageId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether imageId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_imageId_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE); ++ ++ return !_ccInstanceType->is_valid_imageId; ++ } ++ ++ /** ++ * Set imageId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_imageId_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ccInstanceType_reset_imageId(_ccInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for kernelId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccInstanceType_get_kernelId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL); ++ ++ ++ return _ccInstanceType->property_kernelId; ++ } ++ ++ /** ++ * setter for kernelId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_kernelId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_kernelId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ if(_ccInstanceType->is_valid_kernelId && ++ arg_kernelId == _ccInstanceType->property_kernelId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ccInstanceType_reset_kernelId(_ccInstanceType, env); ++ ++ ++ if(NULL == arg_kernelId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ccInstanceType->property_kernelId = (axis2_char_t *)axutil_strdup(env, arg_kernelId); ++ if(NULL == _ccInstanceType->property_kernelId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for kernelId"); ++ return AXIS2_FAILURE; ++ } ++ _ccInstanceType->is_valid_kernelId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for kernelId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_kernelId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ccInstanceType->property_kernelId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ccInstanceType->property_kernelId); ++ _ccInstanceType->property_kernelId = NULL; ++ } ++ ++ ++ ++ _ccInstanceType->is_valid_kernelId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether kernelId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_kernelId_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE); ++ ++ return !_ccInstanceType->is_valid_kernelId; ++ } ++ ++ /** ++ * Set kernelId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_kernelId_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ccInstanceType_reset_kernelId(_ccInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for ramdiskId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccInstanceType_get_ramdiskId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL); ++ ++ ++ return _ccInstanceType->property_ramdiskId; ++ } ++ ++ /** ++ * setter for ramdiskId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_ramdiskId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_ramdiskId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ if(_ccInstanceType->is_valid_ramdiskId && ++ arg_ramdiskId == _ccInstanceType->property_ramdiskId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ccInstanceType_reset_ramdiskId(_ccInstanceType, env); ++ ++ ++ if(NULL == arg_ramdiskId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ccInstanceType->property_ramdiskId = (axis2_char_t *)axutil_strdup(env, arg_ramdiskId); ++ if(NULL == _ccInstanceType->property_ramdiskId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for ramdiskId"); ++ return AXIS2_FAILURE; ++ } ++ _ccInstanceType->is_valid_ramdiskId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ramdiskId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_ramdiskId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ccInstanceType->property_ramdiskId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ccInstanceType->property_ramdiskId); ++ _ccInstanceType->property_ramdiskId = NULL; ++ } ++ ++ ++ ++ _ccInstanceType->is_valid_ramdiskId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ramdiskId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_ramdiskId_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE); ++ ++ return !_ccInstanceType->is_valid_ramdiskId; ++ } ++ ++ /** ++ * Set ramdiskId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_ramdiskId_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ccInstanceType_reset_ramdiskId(_ccInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccInstanceType_get_instanceId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL); ++ ++ ++ return _ccInstanceType->property_instanceId; ++ } ++ ++ /** ++ * setter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_instanceId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ if(_ccInstanceType->is_valid_instanceId && ++ arg_instanceId == _ccInstanceType->property_instanceId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ccInstanceType_reset_instanceId(_ccInstanceType, env); ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ccInstanceType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId); ++ if(NULL == _ccInstanceType->property_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId"); ++ return AXIS2_FAILURE; ++ } ++ _ccInstanceType->is_valid_instanceId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_instanceId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ccInstanceType->property_instanceId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ccInstanceType->property_instanceId); ++ _ccInstanceType->property_instanceId = NULL; ++ } ++ ++ ++ ++ _ccInstanceType->is_valid_instanceId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_instanceId_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE); ++ ++ return !_ccInstanceType->is_valid_instanceId; ++ } ++ ++ /** ++ * Set instanceId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_instanceId_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ccInstanceType_reset_instanceId(_ccInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceType. ++ */ ++ adb_virtualMachineType_t* AXIS2_CALL ++ adb_ccInstanceType_get_instanceType( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL); ++ ++ ++ return _ccInstanceType->property_instanceType; ++ } ++ ++ /** ++ * setter for instanceType ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_instanceType( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ adb_virtualMachineType_t* arg_instanceType) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ if(_ccInstanceType->is_valid_instanceType && ++ arg_instanceType == _ccInstanceType->property_instanceType) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ccInstanceType_reset_instanceType(_ccInstanceType, env); ++ ++ ++ if(NULL == arg_instanceType) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ccInstanceType->property_instanceType = arg_instanceType; ++ _ccInstanceType->is_valid_instanceType = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceType ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_instanceType( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ccInstanceType->property_instanceType != NULL) ++ { ++ ++ ++ adb_virtualMachineType_free(_ccInstanceType->property_instanceType, env); ++ _ccInstanceType->property_instanceType = NULL; ++ } ++ ++ ++ ++ _ccInstanceType->is_valid_instanceType = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceType is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_instanceType_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE); ++ ++ return !_ccInstanceType->is_valid_instanceType; ++ } ++ ++ /** ++ * Set instanceType to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_instanceType_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ccInstanceType_reset_instanceType(_ccInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for keyName. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccInstanceType_get_keyName( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL); ++ ++ ++ return _ccInstanceType->property_keyName; ++ } ++ ++ /** ++ * setter for keyName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_keyName( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_keyName) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ if(_ccInstanceType->is_valid_keyName && ++ arg_keyName == _ccInstanceType->property_keyName) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ccInstanceType_reset_keyName(_ccInstanceType, env); ++ ++ ++ if(NULL == arg_keyName) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ccInstanceType->property_keyName = (axis2_char_t *)axutil_strdup(env, arg_keyName); ++ if(NULL == _ccInstanceType->property_keyName) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for keyName"); ++ return AXIS2_FAILURE; ++ } ++ _ccInstanceType->is_valid_keyName = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for keyName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_keyName( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ccInstanceType->property_keyName != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ccInstanceType->property_keyName); ++ _ccInstanceType->property_keyName = NULL; ++ } ++ ++ ++ ++ _ccInstanceType->is_valid_keyName = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether keyName is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_keyName_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE); ++ ++ return !_ccInstanceType->is_valid_keyName; ++ } ++ ++ /** ++ * Set keyName to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_keyName_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ccInstanceType_reset_keyName(_ccInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for launchTime. ++ */ ++ axutil_date_time_t* AXIS2_CALL ++ adb_ccInstanceType_get_launchTime( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL); ++ ++ ++ return _ccInstanceType->property_launchTime; ++ } ++ ++ /** ++ * setter for launchTime ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_launchTime( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ axutil_date_time_t* arg_launchTime) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ if(_ccInstanceType->is_valid_launchTime && ++ arg_launchTime == _ccInstanceType->property_launchTime) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ccInstanceType_reset_launchTime(_ccInstanceType, env); ++ ++ ++ if(NULL == arg_launchTime) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ccInstanceType->property_launchTime = arg_launchTime; ++ _ccInstanceType->is_valid_launchTime = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for launchTime ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_launchTime( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ccInstanceType->property_launchTime != NULL) ++ { ++ ++ ++ axutil_date_time_free(_ccInstanceType->property_launchTime, env); ++ _ccInstanceType->property_launchTime = NULL; ++ } ++ ++ ++ ++ _ccInstanceType->is_valid_launchTime = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether launchTime is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_launchTime_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE); ++ ++ return !_ccInstanceType->is_valid_launchTime; ++ } ++ ++ /** ++ * Set launchTime to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_launchTime_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ccInstanceType_reset_launchTime(_ccInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for stateName. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccInstanceType_get_stateName( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL); ++ ++ ++ return _ccInstanceType->property_stateName; ++ } ++ ++ /** ++ * setter for stateName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_stateName( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_stateName) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ if(_ccInstanceType->is_valid_stateName && ++ arg_stateName == _ccInstanceType->property_stateName) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ccInstanceType_reset_stateName(_ccInstanceType, env); ++ ++ ++ if(NULL == arg_stateName) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ccInstanceType->property_stateName = (axis2_char_t *)axutil_strdup(env, arg_stateName); ++ if(NULL == _ccInstanceType->property_stateName) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for stateName"); ++ return AXIS2_FAILURE; ++ } ++ _ccInstanceType->is_valid_stateName = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for stateName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_stateName( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ccInstanceType->property_stateName != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ccInstanceType->property_stateName); ++ _ccInstanceType->property_stateName = NULL; ++ } ++ ++ ++ ++ _ccInstanceType->is_valid_stateName = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether stateName is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_stateName_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE); ++ ++ return !_ccInstanceType->is_valid_stateName; ++ } ++ ++ /** ++ * Set stateName to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_stateName_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ccInstanceType_reset_stateName(_ccInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for netParams. ++ */ ++ adb_netConfigType_t* AXIS2_CALL ++ adb_ccInstanceType_get_netParams( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL); ++ ++ ++ return _ccInstanceType->property_netParams; ++ } ++ ++ /** ++ * setter for netParams ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_netParams( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ adb_netConfigType_t* arg_netParams) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ if(_ccInstanceType->is_valid_netParams && ++ arg_netParams == _ccInstanceType->property_netParams) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ccInstanceType_reset_netParams(_ccInstanceType, env); ++ ++ ++ if(NULL == arg_netParams) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ccInstanceType->property_netParams = arg_netParams; ++ _ccInstanceType->is_valid_netParams = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for netParams ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_netParams( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ccInstanceType->property_netParams != NULL) ++ { ++ ++ ++ adb_netConfigType_free(_ccInstanceType->property_netParams, env); ++ _ccInstanceType->property_netParams = NULL; ++ } ++ ++ ++ ++ _ccInstanceType->is_valid_netParams = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether netParams is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_netParams_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE); ++ ++ return !_ccInstanceType->is_valid_netParams; ++ } ++ ++ /** ++ * Set netParams to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_netParams_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ccInstanceType_reset_netParams(_ccInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for ownerId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccInstanceType_get_ownerId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL); ++ ++ ++ return _ccInstanceType->property_ownerId; ++ } ++ ++ /** ++ * setter for ownerId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_ownerId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_ownerId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ if(_ccInstanceType->is_valid_ownerId && ++ arg_ownerId == _ccInstanceType->property_ownerId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ccInstanceType_reset_ownerId(_ccInstanceType, env); ++ ++ ++ if(NULL == arg_ownerId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ccInstanceType->property_ownerId = (axis2_char_t *)axutil_strdup(env, arg_ownerId); ++ if(NULL == _ccInstanceType->property_ownerId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for ownerId"); ++ return AXIS2_FAILURE; ++ } ++ _ccInstanceType->is_valid_ownerId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ownerId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_ownerId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ccInstanceType->property_ownerId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ccInstanceType->property_ownerId); ++ _ccInstanceType->property_ownerId = NULL; ++ } ++ ++ ++ ++ _ccInstanceType->is_valid_ownerId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ownerId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_ownerId_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE); ++ ++ return !_ccInstanceType->is_valid_ownerId; ++ } ++ ++ /** ++ * Set ownerId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_ownerId_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ccInstanceType_reset_ownerId(_ccInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for reservationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccInstanceType_get_reservationId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL); ++ ++ ++ return _ccInstanceType->property_reservationId; ++ } ++ ++ /** ++ * setter for reservationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_reservationId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_reservationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ if(_ccInstanceType->is_valid_reservationId && ++ arg_reservationId == _ccInstanceType->property_reservationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ccInstanceType_reset_reservationId(_ccInstanceType, env); ++ ++ ++ if(NULL == arg_reservationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ccInstanceType->property_reservationId = (axis2_char_t *)axutil_strdup(env, arg_reservationId); ++ if(NULL == _ccInstanceType->property_reservationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for reservationId"); ++ return AXIS2_FAILURE; ++ } ++ _ccInstanceType->is_valid_reservationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for reservationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_reservationId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ccInstanceType->property_reservationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ccInstanceType->property_reservationId); ++ _ccInstanceType->property_reservationId = NULL; ++ } ++ ++ ++ ++ _ccInstanceType->is_valid_reservationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether reservationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_reservationId_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE); ++ ++ return !_ccInstanceType->is_valid_reservationId; ++ } ++ ++ /** ++ * Set reservationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_reservationId_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ccInstanceType_reset_reservationId(_ccInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for serviceTag. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccInstanceType_get_serviceTag( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL); ++ ++ ++ return _ccInstanceType->property_serviceTag; ++ } ++ ++ /** ++ * setter for serviceTag ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_serviceTag( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_serviceTag) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ if(_ccInstanceType->is_valid_serviceTag && ++ arg_serviceTag == _ccInstanceType->property_serviceTag) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ccInstanceType_reset_serviceTag(_ccInstanceType, env); ++ ++ ++ if(NULL == arg_serviceTag) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ccInstanceType->property_serviceTag = (axis2_char_t *)axutil_strdup(env, arg_serviceTag); ++ if(NULL == _ccInstanceType->property_serviceTag) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for serviceTag"); ++ return AXIS2_FAILURE; ++ } ++ _ccInstanceType->is_valid_serviceTag = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for serviceTag ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_serviceTag( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ccInstanceType->property_serviceTag != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ccInstanceType->property_serviceTag); ++ _ccInstanceType->property_serviceTag = NULL; ++ } ++ ++ ++ ++ _ccInstanceType->is_valid_serviceTag = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether serviceTag is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_serviceTag_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE); ++ ++ return !_ccInstanceType->is_valid_serviceTag; ++ } ++ ++ /** ++ * Set serviceTag to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_serviceTag_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ccInstanceType_reset_serviceTag(_ccInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userData. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccInstanceType_get_userData( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL); ++ ++ ++ return _ccInstanceType->property_userData; ++ } ++ ++ /** ++ * setter for userData ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_userData( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userData) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ if(_ccInstanceType->is_valid_userData && ++ arg_userData == _ccInstanceType->property_userData) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ccInstanceType_reset_userData(_ccInstanceType, env); ++ ++ ++ if(NULL == arg_userData) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ccInstanceType->property_userData = (axis2_char_t *)axutil_strdup(env, arg_userData); ++ if(NULL == _ccInstanceType->property_userData) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userData"); ++ return AXIS2_FAILURE; ++ } ++ _ccInstanceType->is_valid_userData = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userData ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_userData( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ccInstanceType->property_userData != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ccInstanceType->property_userData); ++ _ccInstanceType->property_userData = NULL; ++ } ++ ++ ++ ++ _ccInstanceType->is_valid_userData = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userData is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_userData_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE); ++ ++ return !_ccInstanceType->is_valid_userData; ++ } ++ ++ /** ++ * Set userData to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_userData_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ccInstanceType_reset_userData(_ccInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for launchIndex. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccInstanceType_get_launchIndex( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL); ++ ++ ++ return _ccInstanceType->property_launchIndex; ++ } ++ ++ /** ++ * setter for launchIndex ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_launchIndex( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_launchIndex) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ if(_ccInstanceType->is_valid_launchIndex && ++ arg_launchIndex == _ccInstanceType->property_launchIndex) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ccInstanceType_reset_launchIndex(_ccInstanceType, env); ++ ++ ++ if(NULL == arg_launchIndex) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ccInstanceType->property_launchIndex = (axis2_char_t *)axutil_strdup(env, arg_launchIndex); ++ if(NULL == _ccInstanceType->property_launchIndex) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for launchIndex"); ++ return AXIS2_FAILURE; ++ } ++ _ccInstanceType->is_valid_launchIndex = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for launchIndex ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_launchIndex( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ccInstanceType->property_launchIndex != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ccInstanceType->property_launchIndex); ++ _ccInstanceType->property_launchIndex = NULL; ++ } ++ ++ ++ ++ _ccInstanceType->is_valid_launchIndex = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether launchIndex is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_launchIndex_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE); ++ ++ return !_ccInstanceType->is_valid_launchIndex; ++ } ++ ++ /** ++ * Set launchIndex to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_launchIndex_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ccInstanceType_reset_launchIndex(_ccInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for networkIndex. ++ */ ++ int AXIS2_CALL ++ adb_ccInstanceType_get_networkIndex( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, (int)0); ++ ++ ++ return _ccInstanceType->property_networkIndex; ++ } ++ ++ /** ++ * setter for networkIndex ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_networkIndex( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const int arg_networkIndex) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ if(_ccInstanceType->is_valid_networkIndex && ++ arg_networkIndex == _ccInstanceType->property_networkIndex) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ccInstanceType_reset_networkIndex(_ccInstanceType, env); ++ ++ _ccInstanceType->property_networkIndex = arg_networkIndex; ++ _ccInstanceType->is_valid_networkIndex = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for networkIndex ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_networkIndex( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ ++ _ccInstanceType->is_valid_networkIndex = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether networkIndex is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_networkIndex_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE); ++ ++ return !_ccInstanceType->is_valid_networkIndex; ++ } ++ ++ /** ++ * Set networkIndex to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_networkIndex_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ccInstanceType_reset_networkIndex(_ccInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for groupNames. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_ccInstanceType_get_groupNames( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL); ++ ++ ++ return _ccInstanceType->property_groupNames; ++ } ++ ++ /** ++ * setter for groupNames ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_groupNames( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_groupNames) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ if(_ccInstanceType->is_valid_groupNames && ++ arg_groupNames == _ccInstanceType->property_groupNames) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_groupNames, env); ++ ++ if (size > 64) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "groupNames has exceed the maxOccurs(64)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "groupNames has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_groupNames, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_ccInstanceType_reset_groupNames(_ccInstanceType, env); ++ ++ ++ if(NULL == arg_groupNames) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ccInstanceType->property_groupNames = arg_groupNames; ++ if(non_nil_exists) ++ { ++ _ccInstanceType->is_valid_groupNames = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of groupNames. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccInstanceType_get_groupNames_at( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, int i) ++ { ++ axis2_char_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL); ++ ++ ++ if(_ccInstanceType->property_groupNames == NULL) ++ { ++ return (axis2_char_t*)0; ++ } ++ ret_val = (axis2_char_t*)axutil_array_list_get(_ccInstanceType->property_groupNames, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of groupNames. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_groupNames_at( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_groupNames) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ if( _ccInstanceType->is_valid_groupNames && ++ _ccInstanceType->property_groupNames && ++ ++ arg_groupNames == (axis2_char_t*)axutil_array_list_get(_ccInstanceType->property_groupNames, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_groupNames) ++ { ++ if(_ccInstanceType->property_groupNames != NULL) ++ { ++ size = axutil_array_list_size(_ccInstanceType->property_groupNames, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_ccInstanceType->property_groupNames, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of groupNames is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_ccInstanceType->property_groupNames == NULL) ++ { ++ _ccInstanceType->property_groupNames = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_ccInstanceType->property_groupNames, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _ccInstanceType->is_valid_groupNames = AXIS2_FALSE; ++ axutil_array_list_set(_ccInstanceType->property_groupNames , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_ccInstanceType->property_groupNames , env, i, axutil_strdup(env, arg_groupNames)); ++ _ccInstanceType->is_valid_groupNames = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to groupNames. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_add_groupNames( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_groupNames) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_groupNames) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_ccInstanceType->property_groupNames == NULL) ++ { ++ _ccInstanceType->property_groupNames = axutil_array_list_create(env, 10); ++ } ++ if(_ccInstanceType->property_groupNames == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for groupNames"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_ccInstanceType->property_groupNames , env, axutil_strdup(env, arg_groupNames)); ++ _ccInstanceType->is_valid_groupNames = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the groupNames array. ++ */ ++ int AXIS2_CALL ++ adb_ccInstanceType_sizeof_groupNames( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, -1); ++ if(_ccInstanceType->property_groupNames == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_ccInstanceType->property_groupNames, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_remove_groupNames_at( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_ccInstanceType_set_groupNames_nil_at(_ccInstanceType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for groupNames ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_groupNames( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ if (_ccInstanceType->property_groupNames != NULL) ++ { ++ count = axutil_array_list_size(_ccInstanceType->property_groupNames, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_ccInstanceType->property_groupNames, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_ccInstanceType->property_groupNames, env); ++ } ++ _ccInstanceType->is_valid_groupNames = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether groupNames is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_groupNames_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE); ++ ++ return !_ccInstanceType->is_valid_groupNames; ++ } ++ ++ /** ++ * Set groupNames to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_groupNames_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ccInstanceType_reset_groupNames(_ccInstanceType, env); ++ } ++ ++ ++ /** ++ * Check whether groupNames is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_groupNames_nil_at( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE); ++ ++ return (_ccInstanceType->is_valid_groupNames == AXIS2_FALSE || ++ NULL == _ccInstanceType->property_groupNames || ++ NULL == axutil_array_list_get(_ccInstanceType->property_groupNames, env, i)); ++ } ++ ++ /** ++ * Set groupNames to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_groupNames_nil_at( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ if(_ccInstanceType->property_groupNames == NULL || ++ _ccInstanceType->is_valid_groupNames == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_ccInstanceType->property_groupNames, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_ccInstanceType->property_groupNames, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of groupNames is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_ccInstanceType->property_groupNames == NULL) ++ { ++ _ccInstanceType->is_valid_groupNames = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_ccInstanceType->property_groupNames, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _ccInstanceType->is_valid_groupNames = AXIS2_FALSE; ++ axutil_array_list_set(_ccInstanceType->property_groupNames , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_ccInstanceType->property_groupNames , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ ++ /** ++ * getter for volumes. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_ccInstanceType_get_volumes( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL); ++ ++ ++ return _ccInstanceType->property_volumes; ++ } ++ ++ /** ++ * setter for volumes ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_volumes( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_volumes) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ if(_ccInstanceType->is_valid_volumes && ++ arg_volumes == _ccInstanceType->property_volumes) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_volumes, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "volumes has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_volumes, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_ccInstanceType_reset_volumes(_ccInstanceType, env); ++ ++ ++ if(NULL == arg_volumes) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ccInstanceType->property_volumes = arg_volumes; ++ if(non_nil_exists) ++ { ++ _ccInstanceType->is_valid_volumes = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of volumes. ++ */ ++ adb_volumeType_t* AXIS2_CALL ++ adb_ccInstanceType_get_volumes_at( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, int i) ++ { ++ adb_volumeType_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL); ++ ++ ++ if(_ccInstanceType->property_volumes == NULL) ++ { ++ return (adb_volumeType_t*)0; ++ } ++ ret_val = (adb_volumeType_t*)axutil_array_list_get(_ccInstanceType->property_volumes, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of volumes. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_volumes_at( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, int i, ++ adb_volumeType_t* arg_volumes) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ if( _ccInstanceType->is_valid_volumes && ++ _ccInstanceType->property_volumes && ++ ++ arg_volumes == (adb_volumeType_t*)axutil_array_list_get(_ccInstanceType->property_volumes, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_volumes) ++ { ++ if(_ccInstanceType->property_volumes != NULL) ++ { ++ size = axutil_array_list_size(_ccInstanceType->property_volumes, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_ccInstanceType->property_volumes, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of volumes is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_ccInstanceType->property_volumes == NULL) ++ { ++ _ccInstanceType->property_volumes = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_ccInstanceType->property_volumes, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ adb_volumeType_free((adb_volumeType_t*)element, env); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _ccInstanceType->is_valid_volumes = AXIS2_FALSE; ++ axutil_array_list_set(_ccInstanceType->property_volumes , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_ccInstanceType->property_volumes , env, i, arg_volumes); ++ _ccInstanceType->is_valid_volumes = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to volumes. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_add_volumes( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ adb_volumeType_t* arg_volumes) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_volumes) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_ccInstanceType->property_volumes == NULL) ++ { ++ _ccInstanceType->property_volumes = axutil_array_list_create(env, 10); ++ } ++ if(_ccInstanceType->property_volumes == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for volumes"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_ccInstanceType->property_volumes , env, arg_volumes); ++ _ccInstanceType->is_valid_volumes = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the volumes array. ++ */ ++ int AXIS2_CALL ++ adb_ccInstanceType_sizeof_volumes( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, -1); ++ if(_ccInstanceType->property_volumes == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_ccInstanceType->property_volumes, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_remove_volumes_at( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_ccInstanceType_set_volumes_nil_at(_ccInstanceType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for volumes ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_volumes( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ if (_ccInstanceType->property_volumes != NULL) ++ { ++ count = axutil_array_list_size(_ccInstanceType->property_volumes, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_ccInstanceType->property_volumes, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ adb_volumeType_free((adb_volumeType_t*)element, env); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_ccInstanceType->property_volumes, env); ++ } ++ _ccInstanceType->is_valid_volumes = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether volumes is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_volumes_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE); ++ ++ return !_ccInstanceType->is_valid_volumes; ++ } ++ ++ /** ++ * Set volumes to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_volumes_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ccInstanceType_reset_volumes(_ccInstanceType, env); ++ } ++ ++ ++ /** ++ * Check whether volumes is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_volumes_nil_at( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE); ++ ++ return (_ccInstanceType->is_valid_volumes == AXIS2_FALSE || ++ NULL == _ccInstanceType->property_volumes || ++ NULL == axutil_array_list_get(_ccInstanceType->property_volumes, env, i)); ++ } ++ ++ /** ++ * Set volumes to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_volumes_nil_at( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE); ++ ++ if(_ccInstanceType->property_volumes == NULL || ++ _ccInstanceType->is_valid_volumes == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_ccInstanceType->property_volumes, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_ccInstanceType->property_volumes, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of volumes is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_ccInstanceType->property_volumes == NULL) ++ { ++ _ccInstanceType->is_valid_volumes = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_ccInstanceType->property_volumes, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ adb_volumeType_free((adb_volumeType_t*)element, env); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _ccInstanceType->is_valid_volumes = AXIS2_FALSE; ++ axutil_array_list_set(_ccInstanceType->property_volumes , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_ccInstanceType->property_volumes , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ccInstanceType.h' +--- old/cluster/generated/adb_ccInstanceType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ccInstanceType.h 2010-01-05 01:00:47 +0000 +@@ -0,0 +1,1251 @@ ++ ++ ++ #ifndef ADB_CCINSTANCETYPE_H ++ #define ADB_CCINSTANCETYPE_H ++ ++ /** ++ * adb_ccInstanceType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ccInstanceType class ++ */ ++ typedef struct adb_ccInstanceType adb_ccInstanceType_t; ++ ++ ++ #include "adb_virtualMachineType.h" ++ ++ #include "adb_netConfigType.h" ++ ++ #include "adb_volumeType.h" ++ ++ #include ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ccInstanceType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ccInstanceType_t object ++ */ ++ adb_ccInstanceType_t* AXIS2_CALL ++ adb_ccInstanceType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ccInstanceType_t object ++ * @param _ccInstanceType adb_ccInstanceType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_free ( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for imageId. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccInstanceType_get_imageId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for imageId. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_imageId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_imageId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_imageId); ++ ++ /** ++ * Resetter for imageId ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_imageId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for kernelId. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccInstanceType_get_kernelId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for kernelId. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_kernelId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_kernelId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_kernelId); ++ ++ /** ++ * Resetter for kernelId ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_kernelId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for ramdiskId. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccInstanceType_get_ramdiskId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ramdiskId. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_ramdiskId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_ramdiskId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_ramdiskId); ++ ++ /** ++ * Resetter for ramdiskId ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_ramdiskId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceId. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccInstanceType_get_instanceId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceId. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_instanceId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId); ++ ++ /** ++ * Resetter for instanceId ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_instanceId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceType. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return adb_virtualMachineType_t* ++ */ ++ adb_virtualMachineType_t* AXIS2_CALL ++ adb_ccInstanceType_get_instanceType( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceType. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceType adb_virtualMachineType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_instanceType( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ adb_virtualMachineType_t* arg_instanceType); ++ ++ /** ++ * Resetter for instanceType ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_instanceType( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for keyName. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccInstanceType_get_keyName( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for keyName. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_keyName axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_keyName( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_keyName); ++ ++ /** ++ * Resetter for keyName ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_keyName( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for launchTime. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axutil_date_time_t* ++ */ ++ axutil_date_time_t* AXIS2_CALL ++ adb_ccInstanceType_get_launchTime( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for launchTime. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_launchTime axutil_date_time_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_launchTime( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ axutil_date_time_t* arg_launchTime); ++ ++ /** ++ * Resetter for launchTime ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_launchTime( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for stateName. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccInstanceType_get_stateName( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for stateName. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_stateName axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_stateName( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_stateName); ++ ++ /** ++ * Resetter for stateName ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_stateName( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for netParams. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return adb_netConfigType_t* ++ */ ++ adb_netConfigType_t* AXIS2_CALL ++ adb_ccInstanceType_get_netParams( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for netParams. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_netParams adb_netConfigType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_netParams( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ adb_netConfigType_t* arg_netParams); ++ ++ /** ++ * Resetter for netParams ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_netParams( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for ownerId. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccInstanceType_get_ownerId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ownerId. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_ownerId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_ownerId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_ownerId); ++ ++ /** ++ * Resetter for ownerId ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_ownerId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for reservationId. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccInstanceType_get_reservationId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for reservationId. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_reservationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_reservationId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_reservationId); ++ ++ /** ++ * Resetter for reservationId ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_reservationId( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for serviceTag. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccInstanceType_get_serviceTag( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for serviceTag. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_serviceTag axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_serviceTag( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_serviceTag); ++ ++ /** ++ * Resetter for serviceTag ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_serviceTag( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userData. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccInstanceType_get_userData( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userData. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_userData axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_userData( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userData); ++ ++ /** ++ * Resetter for userData ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_userData( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for launchIndex. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccInstanceType_get_launchIndex( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for launchIndex. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_launchIndex axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_launchIndex( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_launchIndex); ++ ++ /** ++ * Resetter for launchIndex ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_launchIndex( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for networkIndex. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ccInstanceType_get_networkIndex( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for networkIndex. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_networkIndex int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_networkIndex( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const int arg_networkIndex); ++ ++ /** ++ * Resetter for networkIndex ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_networkIndex( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for groupNames. Deprecated for array types, Use adb_ccInstanceType_get_groupNames_at instead ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return Array of axis2_char_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_ccInstanceType_get_groupNames( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for groupNames.Deprecated for array types, Use adb_ccInstanceType_set_groupNames_at ++ * or adb_ccInstanceType_add_groupNames instead. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_groupNames Array of axis2_char_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_groupNames( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_groupNames); ++ ++ /** ++ * Resetter for groupNames ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_groupNames( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for volumes. Deprecated for array types, Use adb_ccInstanceType_get_volumes_at instead ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return Array of adb_volumeType_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_ccInstanceType_get_volumes( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for volumes.Deprecated for array types, Use adb_ccInstanceType_set_volumes_at ++ * or adb_ccInstanceType_add_volumes instead. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_volumes Array of adb_volumeType_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_volumes( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_volumes); ++ ++ /** ++ * Resetter for volumes ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_reset_volumes( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of groupNames. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccInstanceType_get_groupNames_at( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of groupNames. (If the ith already exist, it will be replaced) ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_groupNames element to set axis2_char_t* to the array ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_groupNames_at( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_groupNames); ++ ++ ++ /** ++ * Add to groupNames. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_groupNames element to add axis2_char_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_add_groupNames( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_groupNames); ++ ++ /** ++ * Get the size of the groupNames array. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the groupNames array. ++ */ ++ int AXIS2_CALL ++ adb_ccInstanceType_sizeof_groupNames( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of groupNames. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_remove_groupNames_at( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /** ++ * Get the ith element of volumes. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith adb_volumeType_t* of the array ++ */ ++ adb_volumeType_t* AXIS2_CALL ++ adb_ccInstanceType_get_volumes_at( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of volumes. (If the ith already exist, it will be replaced) ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_volumes element to set adb_volumeType_t* to the array ++ * @return ith adb_volumeType_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_volumes_at( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, int i, ++ adb_volumeType_t* arg_volumes); ++ ++ ++ /** ++ * Add to volumes. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_volumes element to add adb_volumeType_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_add_volumes( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ adb_volumeType_t* arg_volumes); ++ ++ /** ++ * Get the size of the volumes array. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the volumes array. ++ */ ++ int AXIS2_CALL ++ adb_ccInstanceType_sizeof_volumes( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of volumes. ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_remove_volumes_at( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether imageId is nill ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_imageId_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether kernelId is nill ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_kernelId_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether ramdiskId is nill ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_ramdiskId_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether instanceId is nill ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_instanceId_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether instanceType is nill ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_instanceType_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether keyName is nill ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_keyName_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether launchTime is nill ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_launchTime_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether stateName is nill ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_stateName_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether netParams is nill ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_netParams_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether ownerId is nill ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_ownerId_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether reservationId is nill ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_reservationId_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether serviceTag is nill ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_serviceTag_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userData is nill ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_userData_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether launchIndex is nill ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_launchIndex_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether networkIndex is nill ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_networkIndex_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether groupNames is nill ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_groupNames_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether volumes is nill ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_volumes_nil( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether groupNames is nill at i ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_groupNames_nil_at( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set groupNames to nill at i ++ * @param _ccInstanceType _ adb_ccInstanceType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_groupNames_nil_at( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Check whether volumes is nill at i ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_volumes_nil_at( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set volumes to nill at i ++ * @param _ccInstanceType _ adb_ccInstanceType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_set_volumes_nil_at( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccInstanceType_deserialize( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ccInstanceType_declare_parent_namespaces( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ccInstanceType adb_ccInstanceType_t object ++ * @param env pointer to environment struct ++ * @param ccInstanceType_om_node node to serialize from ++ * @param ccInstanceType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ccInstanceType_serialize( ++ adb_ccInstanceType_t* _ccInstanceType, ++ const axutil_env_t *env, ++ axiom_node_t* ccInstanceType_om_node, axiom_element_t *ccInstanceType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ccInstanceType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccInstanceType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_CCINSTANCETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ccResourceType.c' +--- old/cluster/generated/adb_ccResourceType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ccResourceType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,972 @@ ++ ++ ++ /** ++ * adb_ccResourceType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ccResourceType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ccResourceType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ccResourceType ++ { ++ adb_virtualMachineType_t* property_instanceType; ++ ++ ++ axis2_bool_t is_valid_instanceType; ++ ++ ++ int property_maxInstances; ++ ++ ++ axis2_bool_t is_valid_maxInstances; ++ ++ ++ int property_availableInstances; ++ ++ ++ axis2_bool_t is_valid_availableInstances; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccResourceType_set_instanceType_nil( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccResourceType_set_maxInstances_nil( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccResourceType_set_availableInstances_nil( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ccResourceType_t* AXIS2_CALL ++ adb_ccResourceType_create( ++ const axutil_env_t *env) ++ { ++ adb_ccResourceType_t *_ccResourceType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ccResourceType = (adb_ccResourceType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ccResourceType_t)); ++ ++ if(NULL == _ccResourceType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ccResourceType, 0, sizeof(adb_ccResourceType_t)); ++ ++ _ccResourceType->property_instanceType = NULL; ++ _ccResourceType->is_valid_instanceType = AXIS2_FALSE; ++ _ccResourceType->is_valid_maxInstances = AXIS2_FALSE; ++ _ccResourceType->is_valid_availableInstances = AXIS2_FALSE; ++ ++ ++ return _ccResourceType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccResourceType_free ( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, AXIS2_FAILURE); ++ ++ adb_ccResourceType_reset_instanceType(_ccResourceType, env); ++ adb_ccResourceType_reset_maxInstances(_ccResourceType, env); ++ adb_ccResourceType_reset_availableInstances(_ccResourceType, env); ++ ++ ++ if(_ccResourceType) ++ { ++ AXIS2_FREE(env->allocator, _ccResourceType); ++ _ccResourceType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccResourceType_deserialize( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ccResourceType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building instanceType element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "instanceType", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_virtualMachineType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_virtualMachineType_create(env); ++ ++ status = adb_virtualMachineType_deserialize((adb_virtualMachineType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element instanceType"); ++ } ++ else ++ { ++ status = adb_ccResourceType_set_instanceType(_ccResourceType, env, ++ (adb_virtualMachineType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceType "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building maxInstances element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "maxInstances", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ccResourceType_set_maxInstances(_ccResourceType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element maxInstances"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for maxInstances "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building availableInstances element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "availableInstances", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ccResourceType_set_availableInstances(_ccResourceType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element availableInstances"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for availableInstances "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ccResourceType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ccResourceType_declare_parent_namespaces( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ccResourceType_serialize( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t text_value_2[64]; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ccResourceType->is_valid_instanceType) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceType"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceType"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceType element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceType", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ if(!adb_virtualMachineType_is_particle()) ++ { ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ } ++ ++ adb_virtualMachineType_serialize(_ccResourceType->property_instanceType, ++ env, current_node, parent_element, ++ adb_virtualMachineType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index); ++ ++ if(!adb_virtualMachineType_is_particle()) ++ { ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ccResourceType->is_valid_maxInstances) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("maxInstances"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("maxInstances"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing maxInstances element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%smaxInstances>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_2, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ccResourceType->property_maxInstances); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ccResourceType->is_valid_availableInstances) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("availableInstances"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("availableInstances"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing availableInstances element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%savailableInstances>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_3, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ccResourceType->property_availableInstances); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for instanceType. ++ */ ++ adb_virtualMachineType_t* AXIS2_CALL ++ adb_ccResourceType_get_instanceType( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, NULL); ++ ++ ++ return _ccResourceType->property_instanceType; ++ } ++ ++ /** ++ * setter for instanceType ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccResourceType_set_instanceType( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env, ++ adb_virtualMachineType_t* arg_instanceType) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, AXIS2_FAILURE); ++ ++ if(_ccResourceType->is_valid_instanceType && ++ arg_instanceType == _ccResourceType->property_instanceType) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ccResourceType_reset_instanceType(_ccResourceType, env); ++ ++ ++ if(NULL == arg_instanceType) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ccResourceType->property_instanceType = arg_instanceType; ++ _ccResourceType->is_valid_instanceType = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceType ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccResourceType_reset_instanceType( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ccResourceType->property_instanceType != NULL) ++ { ++ ++ ++ adb_virtualMachineType_free(_ccResourceType->property_instanceType, env); ++ _ccResourceType->property_instanceType = NULL; ++ } ++ ++ ++ ++ _ccResourceType->is_valid_instanceType = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceType is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccResourceType_is_instanceType_nil( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, AXIS2_TRUE); ++ ++ return !_ccResourceType->is_valid_instanceType; ++ } ++ ++ /** ++ * Set instanceType to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccResourceType_set_instanceType_nil( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env) ++ { ++ return adb_ccResourceType_reset_instanceType(_ccResourceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for maxInstances. ++ */ ++ int AXIS2_CALL ++ adb_ccResourceType_get_maxInstances( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, (int)0); ++ ++ ++ return _ccResourceType->property_maxInstances; ++ } ++ ++ /** ++ * setter for maxInstances ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccResourceType_set_maxInstances( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env, ++ const int arg_maxInstances) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, AXIS2_FAILURE); ++ ++ if(_ccResourceType->is_valid_maxInstances && ++ arg_maxInstances == _ccResourceType->property_maxInstances) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ccResourceType_reset_maxInstances(_ccResourceType, env); ++ ++ _ccResourceType->property_maxInstances = arg_maxInstances; ++ _ccResourceType->is_valid_maxInstances = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for maxInstances ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccResourceType_reset_maxInstances( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, AXIS2_FAILURE); ++ ++ ++ _ccResourceType->is_valid_maxInstances = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether maxInstances is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccResourceType_is_maxInstances_nil( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, AXIS2_TRUE); ++ ++ return !_ccResourceType->is_valid_maxInstances; ++ } ++ ++ /** ++ * Set maxInstances to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccResourceType_set_maxInstances_nil( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env) ++ { ++ return adb_ccResourceType_reset_maxInstances(_ccResourceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for availableInstances. ++ */ ++ int AXIS2_CALL ++ adb_ccResourceType_get_availableInstances( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, (int)0); ++ ++ ++ return _ccResourceType->property_availableInstances; ++ } ++ ++ /** ++ * setter for availableInstances ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccResourceType_set_availableInstances( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env, ++ const int arg_availableInstances) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, AXIS2_FAILURE); ++ ++ if(_ccResourceType->is_valid_availableInstances && ++ arg_availableInstances == _ccResourceType->property_availableInstances) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ccResourceType_reset_availableInstances(_ccResourceType, env); ++ ++ _ccResourceType->property_availableInstances = arg_availableInstances; ++ _ccResourceType->is_valid_availableInstances = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for availableInstances ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccResourceType_reset_availableInstances( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, AXIS2_FAILURE); ++ ++ ++ _ccResourceType->is_valid_availableInstances = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether availableInstances is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccResourceType_is_availableInstances_nil( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, AXIS2_TRUE); ++ ++ return !_ccResourceType->is_valid_availableInstances; ++ } ++ ++ /** ++ * Set availableInstances to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccResourceType_set_availableInstances_nil( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env) ++ { ++ return adb_ccResourceType_reset_availableInstances(_ccResourceType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ccResourceType.h' +--- old/cluster/generated/adb_ccResourceType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ccResourceType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,301 @@ ++ ++ ++ #ifndef ADB_CCRESOURCETYPE_H ++ #define ADB_CCRESOURCETYPE_H ++ ++ /** ++ * adb_ccResourceType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ccResourceType class ++ */ ++ typedef struct adb_ccResourceType adb_ccResourceType_t; ++ ++ ++ #include "adb_virtualMachineType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ccResourceType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ccResourceType_t object ++ */ ++ adb_ccResourceType_t* AXIS2_CALL ++ adb_ccResourceType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ccResourceType_t object ++ * @param _ccResourceType adb_ccResourceType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccResourceType_free ( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for instanceType. ++ * @param _ccResourceType adb_ccResourceType_t object ++ * @param env pointer to environment struct ++ * @return adb_virtualMachineType_t* ++ */ ++ adb_virtualMachineType_t* AXIS2_CALL ++ adb_ccResourceType_get_instanceType( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceType. ++ * @param _ccResourceType adb_ccResourceType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceType adb_virtualMachineType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccResourceType_set_instanceType( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env, ++ adb_virtualMachineType_t* arg_instanceType); ++ ++ /** ++ * Resetter for instanceType ++ * @param _ccResourceType adb_ccResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccResourceType_reset_instanceType( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for maxInstances. ++ * @param _ccResourceType adb_ccResourceType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ccResourceType_get_maxInstances( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for maxInstances. ++ * @param _ccResourceType adb_ccResourceType_t object ++ * @param env pointer to environment struct ++ * @param arg_maxInstances int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccResourceType_set_maxInstances( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env, ++ const int arg_maxInstances); ++ ++ /** ++ * Resetter for maxInstances ++ * @param _ccResourceType adb_ccResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccResourceType_reset_maxInstances( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for availableInstances. ++ * @param _ccResourceType adb_ccResourceType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ccResourceType_get_availableInstances( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for availableInstances. ++ * @param _ccResourceType adb_ccResourceType_t object ++ * @param env pointer to environment struct ++ * @param arg_availableInstances int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccResourceType_set_availableInstances( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env, ++ const int arg_availableInstances); ++ ++ /** ++ * Resetter for availableInstances ++ * @param _ccResourceType adb_ccResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccResourceType_reset_availableInstances( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether instanceType is nill ++ * @param _ccResourceType adb_ccResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccResourceType_is_instanceType_nil( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether maxInstances is nill ++ * @param _ccResourceType adb_ccResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccResourceType_is_maxInstances_nil( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether availableInstances is nill ++ * @param _ccResourceType adb_ccResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccResourceType_is_availableInstances_nil( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ccResourceType adb_ccResourceType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccResourceType_deserialize( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ccResourceType adb_ccResourceType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ccResourceType_declare_parent_namespaces( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ccResourceType adb_ccResourceType_t object ++ * @param env pointer to environment struct ++ * @param ccResourceType_om_node node to serialize from ++ * @param ccResourceType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ccResourceType_serialize( ++ adb_ccResourceType_t* _ccResourceType, ++ const axutil_env_t *env, ++ axiom_node_t* ccResourceType_om_node, axiom_element_t *ccResourceType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ccResourceType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccResourceType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_CCRESOURCETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ccTerminatedInstanceType.c' +--- old/cluster/generated/adb_ccTerminatedInstanceType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ccTerminatedInstanceType.c 2010-01-05 01:00:40 +0000 +@@ -0,0 +1,554 @@ ++ ++ ++ /** ++ * adb_ccTerminatedInstanceType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ccTerminatedInstanceType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ccTerminatedInstanceType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ccTerminatedInstanceType ++ { ++ axis2_char_t* property_instanceId; ++ ++ ++ axis2_bool_t is_valid_instanceId; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccTerminatedInstanceType_set_instanceId_nil( ++ adb_ccTerminatedInstanceType_t* _ccTerminatedInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ccTerminatedInstanceType_t* AXIS2_CALL ++ adb_ccTerminatedInstanceType_create( ++ const axutil_env_t *env) ++ { ++ adb_ccTerminatedInstanceType_t *_ccTerminatedInstanceType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ccTerminatedInstanceType = (adb_ccTerminatedInstanceType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ccTerminatedInstanceType_t)); ++ ++ if(NULL == _ccTerminatedInstanceType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ccTerminatedInstanceType, 0, sizeof(adb_ccTerminatedInstanceType_t)); ++ ++ _ccTerminatedInstanceType->property_instanceId = NULL; ++ _ccTerminatedInstanceType->is_valid_instanceId = AXIS2_FALSE; ++ ++ ++ return _ccTerminatedInstanceType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccTerminatedInstanceType_free ( ++ adb_ccTerminatedInstanceType_t* _ccTerminatedInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccTerminatedInstanceType, AXIS2_FAILURE); ++ ++ adb_ccTerminatedInstanceType_reset_instanceId(_ccTerminatedInstanceType, env); ++ ++ ++ if(_ccTerminatedInstanceType) ++ { ++ AXIS2_FREE(env->allocator, _ccTerminatedInstanceType); ++ _ccTerminatedInstanceType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ccTerminatedInstanceType_deserialize( ++ adb_ccTerminatedInstanceType_t* _ccTerminatedInstanceType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccTerminatedInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ccTerminatedInstanceType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building instanceId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ccTerminatedInstanceType_set_instanceId(_ccTerminatedInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ccTerminatedInstanceType_set_instanceId(_ccTerminatedInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element instanceId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ccTerminatedInstanceType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ccTerminatedInstanceType_declare_parent_namespaces( ++ adb_ccTerminatedInstanceType_t* _ccTerminatedInstanceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ccTerminatedInstanceType_serialize( ++ adb_ccTerminatedInstanceType_t* _ccTerminatedInstanceType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ccTerminatedInstanceType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ccTerminatedInstanceType->is_valid_instanceId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ccTerminatedInstanceType->property_instanceId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for instanceId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccTerminatedInstanceType_get_instanceId( ++ adb_ccTerminatedInstanceType_t* _ccTerminatedInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ccTerminatedInstanceType, NULL); ++ ++ ++ return _ccTerminatedInstanceType->property_instanceId; ++ } ++ ++ /** ++ * setter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccTerminatedInstanceType_set_instanceId( ++ adb_ccTerminatedInstanceType_t* _ccTerminatedInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccTerminatedInstanceType, AXIS2_FAILURE); ++ ++ if(_ccTerminatedInstanceType->is_valid_instanceId && ++ arg_instanceId == _ccTerminatedInstanceType->property_instanceId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ccTerminatedInstanceType_reset_instanceId(_ccTerminatedInstanceType, env); ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ccTerminatedInstanceType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId); ++ if(NULL == _ccTerminatedInstanceType->property_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId"); ++ return AXIS2_FAILURE; ++ } ++ _ccTerminatedInstanceType->is_valid_instanceId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccTerminatedInstanceType_reset_instanceId( ++ adb_ccTerminatedInstanceType_t* _ccTerminatedInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ccTerminatedInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ccTerminatedInstanceType->property_instanceId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ccTerminatedInstanceType->property_instanceId); ++ _ccTerminatedInstanceType->property_instanceId = NULL; ++ } ++ ++ ++ ++ _ccTerminatedInstanceType->is_valid_instanceId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccTerminatedInstanceType_is_instanceId_nil( ++ adb_ccTerminatedInstanceType_t* _ccTerminatedInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ccTerminatedInstanceType, AXIS2_TRUE); ++ ++ return !_ccTerminatedInstanceType->is_valid_instanceId; ++ } ++ ++ /** ++ * Set instanceId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccTerminatedInstanceType_set_instanceId_nil( ++ adb_ccTerminatedInstanceType_t* _ccTerminatedInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ccTerminatedInstanceType_reset_instanceId(_ccTerminatedInstanceType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ccTerminatedInstanceType.h' +--- old/cluster/generated/adb_ccTerminatedInstanceType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ccTerminatedInstanceType.h 2010-01-05 01:00:40 +0000 +@@ -0,0 +1,195 @@ ++ ++ ++ #ifndef ADB_CCTERMINATEDINSTANCETYPE_H ++ #define ADB_CCTERMINATEDINSTANCETYPE_H ++ ++ /** ++ * adb_ccTerminatedInstanceType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ccTerminatedInstanceType class ++ */ ++ typedef struct adb_ccTerminatedInstanceType adb_ccTerminatedInstanceType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ccTerminatedInstanceType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ccTerminatedInstanceType_t object ++ */ ++ adb_ccTerminatedInstanceType_t* AXIS2_CALL ++ adb_ccTerminatedInstanceType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ccTerminatedInstanceType_t object ++ * @param _ccTerminatedInstanceType adb_ccTerminatedInstanceType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccTerminatedInstanceType_free ( ++ adb_ccTerminatedInstanceType_t* _ccTerminatedInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for instanceId. ++ * @param _ccTerminatedInstanceType adb_ccTerminatedInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ccTerminatedInstanceType_get_instanceId( ++ adb_ccTerminatedInstanceType_t* _ccTerminatedInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceId. ++ * @param _ccTerminatedInstanceType adb_ccTerminatedInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccTerminatedInstanceType_set_instanceId( ++ adb_ccTerminatedInstanceType_t* _ccTerminatedInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId); ++ ++ /** ++ * Resetter for instanceId ++ * @param _ccTerminatedInstanceType adb_ccTerminatedInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccTerminatedInstanceType_reset_instanceId( ++ adb_ccTerminatedInstanceType_t* _ccTerminatedInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether instanceId is nill ++ * @param _ccTerminatedInstanceType adb_ccTerminatedInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccTerminatedInstanceType_is_instanceId_nil( ++ adb_ccTerminatedInstanceType_t* _ccTerminatedInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ccTerminatedInstanceType adb_ccTerminatedInstanceType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ccTerminatedInstanceType_deserialize( ++ adb_ccTerminatedInstanceType_t* _ccTerminatedInstanceType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ccTerminatedInstanceType adb_ccTerminatedInstanceType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ccTerminatedInstanceType_declare_parent_namespaces( ++ adb_ccTerminatedInstanceType_t* _ccTerminatedInstanceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ccTerminatedInstanceType adb_ccTerminatedInstanceType_t object ++ * @param env pointer to environment struct ++ * @param ccTerminatedInstanceType_om_node node to serialize from ++ * @param ccTerminatedInstanceType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ccTerminatedInstanceType_serialize( ++ adb_ccTerminatedInstanceType_t* _ccTerminatedInstanceType, ++ const axutil_env_t *env, ++ axiom_node_t* ccTerminatedInstanceType_om_node, axiom_element_t *ccTerminatedInstanceType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ccTerminatedInstanceType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ccTerminatedInstanceType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_CCTERMINATEDINSTANCETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_configureNetworkResponseType.c' +--- old/cluster/generated/adb_configureNetworkResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_configureNetworkResponseType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,1401 @@ ++ ++ ++ /** ++ * adb_configureNetworkResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_configureNetworkResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = configureNetworkResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_configureNetworkResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_set_correlationId_nil( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_set_userId_nil( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_set_return_nil( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_configureNetworkResponseType_t* AXIS2_CALL ++ adb_configureNetworkResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_configureNetworkResponseType_t *_configureNetworkResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _configureNetworkResponseType = (adb_configureNetworkResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_configureNetworkResponseType_t)); ++ ++ if(NULL == _configureNetworkResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_configureNetworkResponseType, 0, sizeof(adb_configureNetworkResponseType_t)); ++ ++ _configureNetworkResponseType->property_correlationId = NULL; ++ _configureNetworkResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _configureNetworkResponseType->property_userId = NULL; ++ _configureNetworkResponseType->is_valid_userId = AXIS2_FALSE; ++ _configureNetworkResponseType->property_statusMessage = NULL; ++ _configureNetworkResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _configureNetworkResponseType->is_valid_return = AXIS2_FALSE; ++ ++ ++ return _configureNetworkResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_free ( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_FAILURE); ++ ++ adb_configureNetworkResponseType_reset_correlationId(_configureNetworkResponseType, env); ++ adb_configureNetworkResponseType_reset_userId(_configureNetworkResponseType, env); ++ adb_configureNetworkResponseType_reset_statusMessage(_configureNetworkResponseType, env); ++ adb_configureNetworkResponseType_reset_return(_configureNetworkResponseType, env); ++ ++ ++ if(_configureNetworkResponseType) ++ { ++ AXIS2_FREE(env->allocator, _configureNetworkResponseType); ++ _configureNetworkResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_deserialize( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for configureNetworkResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_configureNetworkResponseType_set_correlationId(_configureNetworkResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_configureNetworkResponseType_set_correlationId(_configureNetworkResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_configureNetworkResponseType_set_userId(_configureNetworkResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_configureNetworkResponseType_set_userId(_configureNetworkResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_configureNetworkResponseType_set_statusMessage(_configureNetworkResponseType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_configureNetworkResponseType_set_return(_configureNetworkResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_configureNetworkResponseType_set_return(_configureNetworkResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_configureNetworkResponseType_declare_parent_namespaces( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_configureNetworkResponseType_serialize( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_configureNetworkResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _configureNetworkResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_configureNetworkResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _configureNetworkResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_configureNetworkResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _configureNetworkResponseType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_configureNetworkResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_configureNetworkResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_configureNetworkResponseType_get_correlationId( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, NULL); ++ ++ ++ return _configureNetworkResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_set_correlationId( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_FAILURE); ++ ++ if(_configureNetworkResponseType->is_valid_correlationId && ++ arg_correlationId == _configureNetworkResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_configureNetworkResponseType_reset_correlationId(_configureNetworkResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _configureNetworkResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _configureNetworkResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _configureNetworkResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_reset_correlationId( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_configureNetworkResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _configureNetworkResponseType->property_correlationId); ++ _configureNetworkResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _configureNetworkResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkResponseType_is_correlationId_nil( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_TRUE); ++ ++ return !_configureNetworkResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_set_correlationId_nil( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_configureNetworkResponseType_reset_correlationId(_configureNetworkResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_configureNetworkResponseType_get_userId( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, NULL); ++ ++ ++ return _configureNetworkResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_set_userId( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_FAILURE); ++ ++ if(_configureNetworkResponseType->is_valid_userId && ++ arg_userId == _configureNetworkResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_configureNetworkResponseType_reset_userId(_configureNetworkResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _configureNetworkResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _configureNetworkResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _configureNetworkResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_reset_userId( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_configureNetworkResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _configureNetworkResponseType->property_userId); ++ _configureNetworkResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _configureNetworkResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkResponseType_is_userId_nil( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_TRUE); ++ ++ return !_configureNetworkResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_set_userId_nil( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_configureNetworkResponseType_reset_userId(_configureNetworkResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_configureNetworkResponseType_get_statusMessage( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, NULL); ++ ++ ++ return _configureNetworkResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_set_statusMessage( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_FAILURE); ++ ++ if(_configureNetworkResponseType->is_valid_statusMessage && ++ arg_statusMessage == _configureNetworkResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_configureNetworkResponseType_reset_statusMessage(_configureNetworkResponseType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _configureNetworkResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _configureNetworkResponseType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _configureNetworkResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_reset_statusMessage( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_configureNetworkResponseType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _configureNetworkResponseType->property_statusMessage); ++ _configureNetworkResponseType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _configureNetworkResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkResponseType_is_statusMessage_nil( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_TRUE); ++ ++ return !_configureNetworkResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_set_statusMessage_nil( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_configureNetworkResponseType_reset_statusMessage(_configureNetworkResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkResponseType_get_return( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, (axis2_bool_t)0); ++ ++ ++ return _configureNetworkResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_set_return( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_FAILURE); ++ ++ if(_configureNetworkResponseType->is_valid_return && ++ arg_return == _configureNetworkResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_configureNetworkResponseType_reset_return(_configureNetworkResponseType, env); ++ ++ _configureNetworkResponseType->property_return = arg_return; ++ _configureNetworkResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_reset_return( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ _configureNetworkResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkResponseType_is_return_nil( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_TRUE); ++ ++ return !_configureNetworkResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_set_return_nil( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_configureNetworkResponseType_reset_return(_configureNetworkResponseType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_configureNetworkResponseType.h' +--- old/cluster/generated/adb_configureNetworkResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_configureNetworkResponseType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,362 @@ ++ ++ ++ #ifndef ADB_CONFIGURENETWORKRESPONSETYPE_H ++ #define ADB_CONFIGURENETWORKRESPONSETYPE_H ++ ++ /** ++ * adb_configureNetworkResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_configureNetworkResponseType class ++ */ ++ typedef struct adb_configureNetworkResponseType adb_configureNetworkResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_configureNetworkResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_configureNetworkResponseType_t object ++ */ ++ adb_configureNetworkResponseType_t* AXIS2_CALL ++ adb_configureNetworkResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_configureNetworkResponseType_t object ++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_free ( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_configureNetworkResponseType_get_correlationId( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_set_correlationId( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_reset_correlationId( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_configureNetworkResponseType_get_userId( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_set_userId( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_reset_userId( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_configureNetworkResponseType_get_statusMessage( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_set_statusMessage( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_reset_statusMessage( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkResponseType_get_return( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_set_return( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_reset_return( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkResponseType_is_correlationId_nil( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkResponseType_is_userId_nil( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkResponseType_is_statusMessage_nil( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_set_statusMessage_nil( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkResponseType_is_return_nil( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkResponseType_deserialize( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_configureNetworkResponseType_declare_parent_namespaces( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param configureNetworkResponseType_om_node node to serialize from ++ * @param configureNetworkResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_configureNetworkResponseType_serialize( ++ adb_configureNetworkResponseType_t* _configureNetworkResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* configureNetworkResponseType_om_node, axiom_element_t *configureNetworkResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_configureNetworkResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_CONFIGURENETWORKRESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_configureNetworkType.c' +--- old/cluster/generated/adb_configureNetworkType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_configureNetworkType.c 2010-01-05 01:00:47 +0000 +@@ -0,0 +1,2076 @@ ++ ++ ++ /** ++ * adb_configureNetworkType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_configureNetworkType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = configureNetworkType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_configureNetworkType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ axutil_array_list_t* property_rules; ++ ++ ++ axis2_bool_t is_valid_rules; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_correlationId_nil( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_userId_nil( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_return_nil( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_rules_nil_at( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_rules_nil( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_configureNetworkType_t* AXIS2_CALL ++ adb_configureNetworkType_create( ++ const axutil_env_t *env) ++ { ++ adb_configureNetworkType_t *_configureNetworkType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _configureNetworkType = (adb_configureNetworkType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_configureNetworkType_t)); ++ ++ if(NULL == _configureNetworkType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_configureNetworkType, 0, sizeof(adb_configureNetworkType_t)); ++ ++ _configureNetworkType->property_correlationId = NULL; ++ _configureNetworkType->is_valid_correlationId = AXIS2_FALSE; ++ _configureNetworkType->property_userId = NULL; ++ _configureNetworkType->is_valid_userId = AXIS2_FALSE; ++ _configureNetworkType->property_statusMessage = NULL; ++ _configureNetworkType->is_valid_statusMessage = AXIS2_FALSE; ++ _configureNetworkType->is_valid_return = AXIS2_FALSE; ++ _configureNetworkType->property_rules = NULL; ++ _configureNetworkType->is_valid_rules = AXIS2_FALSE; ++ ++ ++ return _configureNetworkType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_free ( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE); ++ ++ adb_configureNetworkType_reset_correlationId(_configureNetworkType, env); ++ adb_configureNetworkType_reset_userId(_configureNetworkType, env); ++ adb_configureNetworkType_reset_statusMessage(_configureNetworkType, env); ++ adb_configureNetworkType_reset_return(_configureNetworkType, env); ++ adb_configureNetworkType_reset_rules(_configureNetworkType, env); ++ ++ ++ if(_configureNetworkType) ++ { ++ AXIS2_FREE(env->allocator, _configureNetworkType); ++ _configureNetworkType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_deserialize( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for configureNetworkType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_configureNetworkType_set_correlationId(_configureNetworkType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_configureNetworkType_set_correlationId(_configureNetworkType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_configureNetworkType_set_userId(_configureNetworkType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_configureNetworkType_set_userId(_configureNetworkType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_configureNetworkType_set_statusMessage(_configureNetworkType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_configureNetworkType_set_return(_configureNetworkType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_configureNetworkType_set_return(_configureNetworkType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building rules array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building rules element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "rules", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ element = (void*)adb_networkRule_create(env); ++ ++ status = adb_networkRule_deserialize((adb_networkRule_t*)element, env, ++ ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building element rules "); ++ } ++ else ++ { ++ axutil_array_list_add_at(arr_list, env, i, element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for rules "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "rules (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_configureNetworkType_set_rules(_configureNetworkType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_configureNetworkType_declare_parent_namespaces( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_configureNetworkType_serialize( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t text_value_5[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_configureNetworkType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _configureNetworkType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_configureNetworkType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _configureNetworkType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_configureNetworkType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _configureNetworkType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_configureNetworkType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_configureNetworkType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_configureNetworkType->is_valid_rules) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("rules"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("rules"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing rules array ++ */ ++ if (_configureNetworkType->property_rules != NULL) ++ { ++ ++ ++ sprintf(start_input_str, "<%s%srules", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_configureNetworkType->property_rules, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_configureNetworkType->property_rules, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing rules element ++ */ ++ ++ ++ ++ if(!adb_networkRule_is_particle()) ++ { ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ } ++ ++ adb_networkRule_serialize((adb_networkRule_t*)element, ++ env, current_node, parent_element, ++ adb_networkRule_is_particle() || AXIS2_FALSE, namespaces, next_ns_index); ++ ++ if(!adb_networkRule_is_particle()) ++ { ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ } ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_configureNetworkType_get_correlationId( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, NULL); ++ ++ ++ return _configureNetworkType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_correlationId( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE); ++ ++ if(_configureNetworkType->is_valid_correlationId && ++ arg_correlationId == _configureNetworkType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_configureNetworkType_reset_correlationId(_configureNetworkType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _configureNetworkType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _configureNetworkType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _configureNetworkType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_reset_correlationId( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_configureNetworkType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _configureNetworkType->property_correlationId); ++ _configureNetworkType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _configureNetworkType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkType_is_correlationId_nil( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_TRUE); ++ ++ return !_configureNetworkType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_correlationId_nil( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_configureNetworkType_reset_correlationId(_configureNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_configureNetworkType_get_userId( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, NULL); ++ ++ ++ return _configureNetworkType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_userId( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE); ++ ++ if(_configureNetworkType->is_valid_userId && ++ arg_userId == _configureNetworkType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_configureNetworkType_reset_userId(_configureNetworkType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _configureNetworkType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _configureNetworkType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _configureNetworkType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_reset_userId( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_configureNetworkType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _configureNetworkType->property_userId); ++ _configureNetworkType->property_userId = NULL; ++ } ++ ++ ++ ++ _configureNetworkType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkType_is_userId_nil( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_TRUE); ++ ++ return !_configureNetworkType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_userId_nil( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_configureNetworkType_reset_userId(_configureNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_configureNetworkType_get_statusMessage( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, NULL); ++ ++ ++ return _configureNetworkType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_statusMessage( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE); ++ ++ if(_configureNetworkType->is_valid_statusMessage && ++ arg_statusMessage == _configureNetworkType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_configureNetworkType_reset_statusMessage(_configureNetworkType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _configureNetworkType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _configureNetworkType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _configureNetworkType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_reset_statusMessage( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_configureNetworkType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _configureNetworkType->property_statusMessage); ++ _configureNetworkType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _configureNetworkType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkType_is_statusMessage_nil( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_TRUE); ++ ++ return !_configureNetworkType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_statusMessage_nil( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_configureNetworkType_reset_statusMessage(_configureNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkType_get_return( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, (axis2_bool_t)0); ++ ++ ++ return _configureNetworkType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_return( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE); ++ ++ if(_configureNetworkType->is_valid_return && ++ arg_return == _configureNetworkType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_configureNetworkType_reset_return(_configureNetworkType, env); ++ ++ _configureNetworkType->property_return = arg_return; ++ _configureNetworkType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_reset_return( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE); ++ ++ ++ _configureNetworkType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkType_is_return_nil( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_TRUE); ++ ++ return !_configureNetworkType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_return_nil( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_configureNetworkType_reset_return(_configureNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for rules. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_configureNetworkType_get_rules( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, NULL); ++ ++ ++ return _configureNetworkType->property_rules; ++ } ++ ++ /** ++ * setter for rules ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_rules( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_rules) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE); ++ ++ if(_configureNetworkType->is_valid_rules && ++ arg_rules == _configureNetworkType->property_rules) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_rules, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "rules has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_rules, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_configureNetworkType_reset_rules(_configureNetworkType, env); ++ ++ ++ if(NULL == arg_rules) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _configureNetworkType->property_rules = arg_rules; ++ if(non_nil_exists) ++ { ++ _configureNetworkType->is_valid_rules = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of rules. ++ */ ++ adb_networkRule_t* AXIS2_CALL ++ adb_configureNetworkType_get_rules_at( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, int i) ++ { ++ adb_networkRule_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, NULL); ++ ++ ++ if(_configureNetworkType->property_rules == NULL) ++ { ++ return (adb_networkRule_t*)0; ++ } ++ ret_val = (adb_networkRule_t*)axutil_array_list_get(_configureNetworkType->property_rules, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of rules. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_rules_at( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, int i, ++ adb_networkRule_t* arg_rules) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE); ++ ++ if( _configureNetworkType->is_valid_rules && ++ _configureNetworkType->property_rules && ++ ++ arg_rules == (adb_networkRule_t*)axutil_array_list_get(_configureNetworkType->property_rules, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_rules) ++ { ++ if(_configureNetworkType->property_rules != NULL) ++ { ++ size = axutil_array_list_size(_configureNetworkType->property_rules, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_configureNetworkType->property_rules, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of rules is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_configureNetworkType->property_rules == NULL) ++ { ++ _configureNetworkType->property_rules = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_configureNetworkType->property_rules, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ adb_networkRule_free((adb_networkRule_t*)element, env); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _configureNetworkType->is_valid_rules = AXIS2_FALSE; ++ axutil_array_list_set(_configureNetworkType->property_rules , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_configureNetworkType->property_rules , env, i, arg_rules); ++ _configureNetworkType->is_valid_rules = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to rules. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_add_rules( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, ++ adb_networkRule_t* arg_rules) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_rules) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_configureNetworkType->property_rules == NULL) ++ { ++ _configureNetworkType->property_rules = axutil_array_list_create(env, 10); ++ } ++ if(_configureNetworkType->property_rules == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for rules"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_configureNetworkType->property_rules , env, arg_rules); ++ _configureNetworkType->is_valid_rules = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the rules array. ++ */ ++ int AXIS2_CALL ++ adb_configureNetworkType_sizeof_rules( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, -1); ++ if(_configureNetworkType->property_rules == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_configureNetworkType->property_rules, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_remove_rules_at( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_configureNetworkType_set_rules_nil_at(_configureNetworkType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for rules ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_reset_rules( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ if (_configureNetworkType->property_rules != NULL) ++ { ++ count = axutil_array_list_size(_configureNetworkType->property_rules, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_configureNetworkType->property_rules, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ adb_networkRule_free((adb_networkRule_t*)element, env); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_configureNetworkType->property_rules, env); ++ } ++ _configureNetworkType->is_valid_rules = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether rules is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkType_is_rules_nil( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_TRUE); ++ ++ return !_configureNetworkType->is_valid_rules; ++ } ++ ++ /** ++ * Set rules to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_rules_nil( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_configureNetworkType_reset_rules(_configureNetworkType, env); ++ } ++ ++ ++ /** ++ * Check whether rules is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkType_is_rules_nil_at( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_TRUE); ++ ++ return (_configureNetworkType->is_valid_rules == AXIS2_FALSE || ++ NULL == _configureNetworkType->property_rules || ++ NULL == axutil_array_list_get(_configureNetworkType->property_rules, env, i)); ++ } ++ ++ /** ++ * Set rules to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_rules_nil_at( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE); ++ ++ if(_configureNetworkType->property_rules == NULL || ++ _configureNetworkType->is_valid_rules == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_configureNetworkType->property_rules, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_configureNetworkType->property_rules, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of rules is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_configureNetworkType->property_rules == NULL) ++ { ++ _configureNetworkType->is_valid_rules = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_configureNetworkType->property_rules, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ adb_networkRule_free((adb_networkRule_t*)element, env); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _configureNetworkType->is_valid_rules = AXIS2_FALSE; ++ axutil_array_list_set(_configureNetworkType->property_rules , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_configureNetworkType->property_rules , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_configureNetworkType.h' +--- old/cluster/generated/adb_configureNetworkType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_configureNetworkType.h 2010-01-05 01:00:47 +0000 +@@ -0,0 +1,540 @@ ++ ++ ++ #ifndef ADB_CONFIGURENETWORKTYPE_H ++ #define ADB_CONFIGURENETWORKTYPE_H ++ ++ /** ++ * adb_configureNetworkType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_configureNetworkType class ++ */ ++ typedef struct adb_configureNetworkType adb_configureNetworkType_t; ++ ++ ++ #include "adb_networkRule.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_configureNetworkType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_configureNetworkType_t object ++ */ ++ adb_configureNetworkType_t* AXIS2_CALL ++ adb_configureNetworkType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_configureNetworkType_t object ++ * @param _configureNetworkType adb_configureNetworkType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_free ( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_configureNetworkType_get_correlationId( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_correlationId( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_reset_correlationId( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_configureNetworkType_get_userId( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_userId( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_reset_userId( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_configureNetworkType_get_statusMessage( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_statusMessage( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_reset_statusMessage( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkType_get_return( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_return( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_reset_return( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for rules. Deprecated for array types, Use adb_configureNetworkType_get_rules_at instead ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @return Array of adb_networkRule_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_configureNetworkType_get_rules( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for rules.Deprecated for array types, Use adb_configureNetworkType_set_rules_at ++ * or adb_configureNetworkType_add_rules instead. ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_rules Array of adb_networkRule_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_rules( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_rules); ++ ++ /** ++ * Resetter for rules ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_reset_rules( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of rules. ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith adb_networkRule_t* of the array ++ */ ++ adb_networkRule_t* AXIS2_CALL ++ adb_configureNetworkType_get_rules_at( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of rules. (If the ith already exist, it will be replaced) ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_rules element to set adb_networkRule_t* to the array ++ * @return ith adb_networkRule_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_rules_at( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, int i, ++ adb_networkRule_t* arg_rules); ++ ++ ++ /** ++ * Add to rules. ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_rules element to add adb_networkRule_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_add_rules( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, ++ adb_networkRule_t* arg_rules); ++ ++ /** ++ * Get the size of the rules array. ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the rules array. ++ */ ++ int AXIS2_CALL ++ adb_configureNetworkType_sizeof_rules( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of rules. ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_remove_rules_at( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkType_is_correlationId_nil( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkType_is_userId_nil( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkType_is_statusMessage_nil( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_statusMessage_nil( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkType_is_return_nil( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether rules is nill ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkType_is_rules_nil( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether rules is nill at i ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkType_is_rules_nil_at( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set rules to nill at i ++ * @param _configureNetworkType _ adb_configureNetworkType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_set_rules_nil_at( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_configureNetworkType_deserialize( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_configureNetworkType_declare_parent_namespaces( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _configureNetworkType adb_configureNetworkType_t object ++ * @param env pointer to environment struct ++ * @param configureNetworkType_om_node node to serialize from ++ * @param configureNetworkType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_configureNetworkType_serialize( ++ adb_configureNetworkType_t* _configureNetworkType, ++ const axutil_env_t *env, ++ axiom_node_t* configureNetworkType_om_node, axiom_element_t *configureNetworkType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_configureNetworkType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_configureNetworkType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_CONFIGURENETWORKTYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_describeInstancesResponseType.c' +--- old/cluster/generated/adb_describeInstancesResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_describeInstancesResponseType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,2065 @@ ++ ++ ++ /** ++ * adb_describeInstancesResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_describeInstancesResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = describeInstancesResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_describeInstancesResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ axutil_array_list_t* property_instances; ++ ++ ++ axis2_bool_t is_valid_instances; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_set_correlationId_nil( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_set_userId_nil( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_set_return_nil( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_describeInstancesResponseType_t* AXIS2_CALL ++ adb_describeInstancesResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_describeInstancesResponseType_t *_describeInstancesResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _describeInstancesResponseType = (adb_describeInstancesResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_describeInstancesResponseType_t)); ++ ++ if(NULL == _describeInstancesResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_describeInstancesResponseType, 0, sizeof(adb_describeInstancesResponseType_t)); ++ ++ _describeInstancesResponseType->property_correlationId = NULL; ++ _describeInstancesResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _describeInstancesResponseType->property_userId = NULL; ++ _describeInstancesResponseType->is_valid_userId = AXIS2_FALSE; ++ _describeInstancesResponseType->property_statusMessage = NULL; ++ _describeInstancesResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _describeInstancesResponseType->is_valid_return = AXIS2_FALSE; ++ _describeInstancesResponseType->property_instances = NULL; ++ _describeInstancesResponseType->is_valid_instances = AXIS2_FALSE; ++ ++ ++ return _describeInstancesResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_free ( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE); ++ ++ adb_describeInstancesResponseType_reset_correlationId(_describeInstancesResponseType, env); ++ adb_describeInstancesResponseType_reset_userId(_describeInstancesResponseType, env); ++ adb_describeInstancesResponseType_reset_statusMessage(_describeInstancesResponseType, env); ++ adb_describeInstancesResponseType_reset_return(_describeInstancesResponseType, env); ++ adb_describeInstancesResponseType_reset_instances(_describeInstancesResponseType, env); ++ ++ ++ if(_describeInstancesResponseType) ++ { ++ AXIS2_FREE(env->allocator, _describeInstancesResponseType); ++ _describeInstancesResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_deserialize( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for describeInstancesResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describeInstancesResponseType_set_correlationId(_describeInstancesResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_describeInstancesResponseType_set_correlationId(_describeInstancesResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describeInstancesResponseType_set_userId(_describeInstancesResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_describeInstancesResponseType_set_userId(_describeInstancesResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describeInstancesResponseType_set_statusMessage(_describeInstancesResponseType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_describeInstancesResponseType_set_return(_describeInstancesResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_describeInstancesResponseType_set_return(_describeInstancesResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building instances array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building instances element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "instances", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ element = (void*)adb_ccInstanceType_create(env); ++ ++ status = adb_ccInstanceType_deserialize((adb_ccInstanceType_t*)element, env, ++ ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building element instances "); ++ } ++ else ++ { ++ axutil_array_list_add_at(arr_list, env, i, element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instances "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instances (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_describeInstancesResponseType_set_instances(_describeInstancesResponseType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_describeInstancesResponseType_declare_parent_namespaces( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_describeInstancesResponseType_serialize( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t text_value_5[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeInstancesResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _describeInstancesResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeInstancesResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _describeInstancesResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeInstancesResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _describeInstancesResponseType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeInstancesResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_describeInstancesResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeInstancesResponseType->is_valid_instances) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instances"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instances"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing instances array ++ */ ++ if (_describeInstancesResponseType->property_instances != NULL) ++ { ++ ++ ++ sprintf(start_input_str, "<%s%sinstances", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_describeInstancesResponseType->property_instances, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_describeInstancesResponseType->property_instances, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing instances element ++ */ ++ ++ ++ ++ if(!adb_ccInstanceType_is_particle()) ++ { ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ } ++ ++ adb_ccInstanceType_serialize((adb_ccInstanceType_t*)element, ++ env, current_node, parent_element, ++ adb_ccInstanceType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index); ++ ++ if(!adb_ccInstanceType_is_particle()) ++ { ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ } ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeInstancesResponseType_get_correlationId( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, NULL); ++ ++ ++ return _describeInstancesResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_set_correlationId( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_describeInstancesResponseType->is_valid_correlationId && ++ arg_correlationId == _describeInstancesResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeInstancesResponseType_reset_correlationId(_describeInstancesResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeInstancesResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _describeInstancesResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _describeInstancesResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_reset_correlationId( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describeInstancesResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describeInstancesResponseType->property_correlationId); ++ _describeInstancesResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _describeInstancesResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesResponseType_is_correlationId_nil( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_TRUE); ++ ++ return !_describeInstancesResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_set_correlationId_nil( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_describeInstancesResponseType_reset_correlationId(_describeInstancesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeInstancesResponseType_get_userId( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, NULL); ++ ++ ++ return _describeInstancesResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_set_userId( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_describeInstancesResponseType->is_valid_userId && ++ arg_userId == _describeInstancesResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeInstancesResponseType_reset_userId(_describeInstancesResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeInstancesResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _describeInstancesResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _describeInstancesResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_reset_userId( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describeInstancesResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describeInstancesResponseType->property_userId); ++ _describeInstancesResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _describeInstancesResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesResponseType_is_userId_nil( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_TRUE); ++ ++ return !_describeInstancesResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_set_userId_nil( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_describeInstancesResponseType_reset_userId(_describeInstancesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeInstancesResponseType_get_statusMessage( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, NULL); ++ ++ ++ return _describeInstancesResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_set_statusMessage( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_describeInstancesResponseType->is_valid_statusMessage && ++ arg_statusMessage == _describeInstancesResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeInstancesResponseType_reset_statusMessage(_describeInstancesResponseType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeInstancesResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _describeInstancesResponseType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _describeInstancesResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_reset_statusMessage( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describeInstancesResponseType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describeInstancesResponseType->property_statusMessage); ++ _describeInstancesResponseType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _describeInstancesResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesResponseType_is_statusMessage_nil( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_TRUE); ++ ++ return !_describeInstancesResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_set_statusMessage_nil( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_describeInstancesResponseType_reset_statusMessage(_describeInstancesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesResponseType_get_return( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, (axis2_bool_t)0); ++ ++ ++ return _describeInstancesResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_set_return( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_describeInstancesResponseType->is_valid_return && ++ arg_return == _describeInstancesResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeInstancesResponseType_reset_return(_describeInstancesResponseType, env); ++ ++ _describeInstancesResponseType->property_return = arg_return; ++ _describeInstancesResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_reset_return( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ _describeInstancesResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesResponseType_is_return_nil( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_TRUE); ++ ++ return !_describeInstancesResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_set_return_nil( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_describeInstancesResponseType_reset_return(_describeInstancesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instances. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_describeInstancesResponseType_get_instances( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, NULL); ++ ++ ++ return _describeInstancesResponseType->property_instances; ++ } ++ ++ /** ++ * setter for instances ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_set_instances( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_instances) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_describeInstancesResponseType->is_valid_instances && ++ arg_instances == _describeInstancesResponseType->property_instances) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_instances, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instances has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_instances, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_describeInstancesResponseType_reset_instances(_describeInstancesResponseType, env); ++ ++ ++ if(NULL == arg_instances) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeInstancesResponseType->property_instances = arg_instances; ++ if(non_nil_exists) ++ { ++ _describeInstancesResponseType->is_valid_instances = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of instances. ++ */ ++ adb_ccInstanceType_t* AXIS2_CALL ++ adb_describeInstancesResponseType_get_instances_at( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ adb_ccInstanceType_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, NULL); ++ ++ ++ if(_describeInstancesResponseType->property_instances == NULL) ++ { ++ return (adb_ccInstanceType_t*)0; ++ } ++ ret_val = (adb_ccInstanceType_t*)axutil_array_list_get(_describeInstancesResponseType->property_instances, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of instances. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_set_instances_at( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, int i, ++ adb_ccInstanceType_t* arg_instances) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE); ++ ++ if( _describeInstancesResponseType->is_valid_instances && ++ _describeInstancesResponseType->property_instances && ++ ++ arg_instances == (adb_ccInstanceType_t*)axutil_array_list_get(_describeInstancesResponseType->property_instances, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instances) ++ { ++ if(_describeInstancesResponseType->property_instances != NULL) ++ { ++ size = axutil_array_list_size(_describeInstancesResponseType->property_instances, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_describeInstancesResponseType->property_instances, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instances is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_describeInstancesResponseType->property_instances == NULL) ++ { ++ _describeInstancesResponseType->property_instances = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_describeInstancesResponseType->property_instances, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ adb_ccInstanceType_free((adb_ccInstanceType_t*)element, env); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _describeInstancesResponseType->is_valid_instances = AXIS2_FALSE; ++ axutil_array_list_set(_describeInstancesResponseType->property_instances , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_describeInstancesResponseType->property_instances , env, i, arg_instances); ++ _describeInstancesResponseType->is_valid_instances = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to instances. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_add_instances( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, ++ adb_ccInstanceType_t* arg_instances) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_instances) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_describeInstancesResponseType->property_instances == NULL) ++ { ++ _describeInstancesResponseType->property_instances = axutil_array_list_create(env, 10); ++ } ++ if(_describeInstancesResponseType->property_instances == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for instances"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_describeInstancesResponseType->property_instances , env, arg_instances); ++ _describeInstancesResponseType->is_valid_instances = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the instances array. ++ */ ++ int AXIS2_CALL ++ adb_describeInstancesResponseType_sizeof_instances( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, -1); ++ if(_describeInstancesResponseType->property_instances == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_describeInstancesResponseType->property_instances, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_remove_instances_at( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_describeInstancesResponseType_set_instances_nil_at(_describeInstancesResponseType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for instances ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_reset_instances( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ if (_describeInstancesResponseType->property_instances != NULL) ++ { ++ count = axutil_array_list_size(_describeInstancesResponseType->property_instances, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_describeInstancesResponseType->property_instances, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ adb_ccInstanceType_free((adb_ccInstanceType_t*)element, env); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_describeInstancesResponseType->property_instances, env); ++ } ++ _describeInstancesResponseType->is_valid_instances = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instances is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesResponseType_is_instances_nil( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_TRUE); ++ ++ return !_describeInstancesResponseType->is_valid_instances; ++ } ++ ++ /** ++ * Set instances to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_set_instances_nil( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_describeInstancesResponseType_reset_instances(_describeInstancesResponseType, env); ++ } ++ ++ ++ /** ++ * Check whether instances is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesResponseType_is_instances_nil_at( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_TRUE); ++ ++ return (_describeInstancesResponseType->is_valid_instances == AXIS2_FALSE || ++ NULL == _describeInstancesResponseType->property_instances || ++ NULL == axutil_array_list_get(_describeInstancesResponseType->property_instances, env, i)); ++ } ++ ++ /** ++ * Set instances to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_set_instances_nil_at( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_describeInstancesResponseType->property_instances == NULL || ++ _describeInstancesResponseType->is_valid_instances == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_describeInstancesResponseType->property_instances, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_describeInstancesResponseType->property_instances, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instances is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_describeInstancesResponseType->property_instances == NULL) ++ { ++ _describeInstancesResponseType->is_valid_instances = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_describeInstancesResponseType->property_instances, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ adb_ccInstanceType_free((adb_ccInstanceType_t*)element, env); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _describeInstancesResponseType->is_valid_instances = AXIS2_FALSE; ++ axutil_array_list_set(_describeInstancesResponseType->property_instances , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_describeInstancesResponseType->property_instances , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_describeInstancesResponseType.h' +--- old/cluster/generated/adb_describeInstancesResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_describeInstancesResponseType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,551 @@ ++ ++ ++ #ifndef ADB_DESCRIBEINSTANCESRESPONSETYPE_H ++ #define ADB_DESCRIBEINSTANCESRESPONSETYPE_H ++ ++ /** ++ * adb_describeInstancesResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_describeInstancesResponseType class ++ */ ++ typedef struct adb_describeInstancesResponseType adb_describeInstancesResponseType_t; ++ ++ ++ #include "adb_ccInstanceType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_describeInstancesResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_describeInstancesResponseType_t object ++ */ ++ adb_describeInstancesResponseType_t* AXIS2_CALL ++ adb_describeInstancesResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_describeInstancesResponseType_t object ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_free ( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeInstancesResponseType_get_correlationId( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_set_correlationId( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_reset_correlationId( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeInstancesResponseType_get_userId( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_set_userId( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_reset_userId( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeInstancesResponseType_get_statusMessage( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_set_statusMessage( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_reset_statusMessage( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesResponseType_get_return( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_set_return( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_reset_return( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instances. Deprecated for array types, Use adb_describeInstancesResponseType_get_instances_at instead ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return Array of adb_ccInstanceType_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_describeInstancesResponseType_get_instances( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instances.Deprecated for array types, Use adb_describeInstancesResponseType_set_instances_at ++ * or adb_describeInstancesResponseType_add_instances instead. ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_instances Array of adb_ccInstanceType_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_set_instances( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_instances); ++ ++ /** ++ * Resetter for instances ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_reset_instances( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of instances. ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith adb_ccInstanceType_t* of the array ++ */ ++ adb_ccInstanceType_t* AXIS2_CALL ++ adb_describeInstancesResponseType_get_instances_at( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of instances. (If the ith already exist, it will be replaced) ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_instances element to set adb_ccInstanceType_t* to the array ++ * @return ith adb_ccInstanceType_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_set_instances_at( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, int i, ++ adb_ccInstanceType_t* arg_instances); ++ ++ ++ /** ++ * Add to instances. ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_instances element to add adb_ccInstanceType_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_add_instances( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, ++ adb_ccInstanceType_t* arg_instances); ++ ++ /** ++ * Get the size of the instances array. ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the instances array. ++ */ ++ int AXIS2_CALL ++ adb_describeInstancesResponseType_sizeof_instances( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of instances. ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_remove_instances_at( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesResponseType_is_correlationId_nil( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesResponseType_is_userId_nil( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesResponseType_is_statusMessage_nil( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_set_statusMessage_nil( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesResponseType_is_return_nil( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether instances is nill ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesResponseType_is_instances_nil( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set instances to nill (currently the same as reset) ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_set_instances_nil( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether instances is nill at i ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesResponseType_is_instances_nil_at( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set instances to nill at i ++ * @param _describeInstancesResponseType _ adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_set_instances_nil_at( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesResponseType_deserialize( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_describeInstancesResponseType_declare_parent_namespaces( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param describeInstancesResponseType_om_node node to serialize from ++ * @param describeInstancesResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_describeInstancesResponseType_serialize( ++ adb_describeInstancesResponseType_t* _describeInstancesResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* describeInstancesResponseType_om_node, axiom_element_t *describeInstancesResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_describeInstancesResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_DESCRIBEINSTANCESRESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_describeInstancesType.c' +--- old/cluster/generated/adb_describeInstancesType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_describeInstancesType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,2061 @@ ++ ++ ++ /** ++ * adb_describeInstancesType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_describeInstancesType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = describeInstancesType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_describeInstancesType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ axutil_array_list_t* property_instanceIds; ++ ++ ++ axis2_bool_t is_valid_instanceIds; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_set_correlationId_nil( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_set_userId_nil( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_set_return_nil( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_describeInstancesType_t* AXIS2_CALL ++ adb_describeInstancesType_create( ++ const axutil_env_t *env) ++ { ++ adb_describeInstancesType_t *_describeInstancesType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _describeInstancesType = (adb_describeInstancesType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_describeInstancesType_t)); ++ ++ if(NULL == _describeInstancesType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_describeInstancesType, 0, sizeof(adb_describeInstancesType_t)); ++ ++ _describeInstancesType->property_correlationId = NULL; ++ _describeInstancesType->is_valid_correlationId = AXIS2_FALSE; ++ _describeInstancesType->property_userId = NULL; ++ _describeInstancesType->is_valid_userId = AXIS2_FALSE; ++ _describeInstancesType->property_statusMessage = NULL; ++ _describeInstancesType->is_valid_statusMessage = AXIS2_FALSE; ++ _describeInstancesType->is_valid_return = AXIS2_FALSE; ++ _describeInstancesType->property_instanceIds = NULL; ++ _describeInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ ++ ++ return _describeInstancesType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_free ( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE); ++ ++ adb_describeInstancesType_reset_correlationId(_describeInstancesType, env); ++ adb_describeInstancesType_reset_userId(_describeInstancesType, env); ++ adb_describeInstancesType_reset_statusMessage(_describeInstancesType, env); ++ adb_describeInstancesType_reset_return(_describeInstancesType, env); ++ adb_describeInstancesType_reset_instanceIds(_describeInstancesType, env); ++ ++ ++ if(_describeInstancesType) ++ { ++ AXIS2_FREE(env->allocator, _describeInstancesType); ++ _describeInstancesType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_deserialize( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for describeInstancesType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describeInstancesType_set_correlationId(_describeInstancesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_describeInstancesType_set_correlationId(_describeInstancesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describeInstancesType_set_userId(_describeInstancesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_describeInstancesType_set_userId(_describeInstancesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describeInstancesType_set_statusMessage(_describeInstancesType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_describeInstancesType_set_return(_describeInstancesType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_describeInstancesType_set_return(_describeInstancesType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building instanceIds array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building instanceIds element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "instanceIds", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceIds "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceIds (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_describeInstancesType_set_instanceIds(_describeInstancesType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_describeInstancesType_declare_parent_namespaces( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_describeInstancesType_serialize( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeInstancesType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _describeInstancesType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeInstancesType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _describeInstancesType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeInstancesType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _describeInstancesType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeInstancesType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_describeInstancesType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeInstancesType->is_valid_instanceIds) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceIds"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceIds"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing instanceIds array ++ */ ++ if (_describeInstancesType->property_instanceIds != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%sinstanceIds>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_describeInstancesType->property_instanceIds, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_describeInstancesType->property_instanceIds, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing instanceIds element ++ */ ++ ++ ++ ++ text_value_5 = (axis2_char_t*)element; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeInstancesType_get_correlationId( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, NULL); ++ ++ ++ return _describeInstancesType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_set_correlationId( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE); ++ ++ if(_describeInstancesType->is_valid_correlationId && ++ arg_correlationId == _describeInstancesType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeInstancesType_reset_correlationId(_describeInstancesType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeInstancesType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _describeInstancesType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _describeInstancesType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_reset_correlationId( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describeInstancesType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describeInstancesType->property_correlationId); ++ _describeInstancesType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _describeInstancesType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesType_is_correlationId_nil( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_TRUE); ++ ++ return !_describeInstancesType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_set_correlationId_nil( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_describeInstancesType_reset_correlationId(_describeInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeInstancesType_get_userId( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, NULL); ++ ++ ++ return _describeInstancesType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_set_userId( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE); ++ ++ if(_describeInstancesType->is_valid_userId && ++ arg_userId == _describeInstancesType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeInstancesType_reset_userId(_describeInstancesType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeInstancesType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _describeInstancesType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _describeInstancesType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_reset_userId( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describeInstancesType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describeInstancesType->property_userId); ++ _describeInstancesType->property_userId = NULL; ++ } ++ ++ ++ ++ _describeInstancesType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesType_is_userId_nil( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_TRUE); ++ ++ return !_describeInstancesType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_set_userId_nil( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_describeInstancesType_reset_userId(_describeInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeInstancesType_get_statusMessage( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, NULL); ++ ++ ++ return _describeInstancesType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_set_statusMessage( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE); ++ ++ if(_describeInstancesType->is_valid_statusMessage && ++ arg_statusMessage == _describeInstancesType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeInstancesType_reset_statusMessage(_describeInstancesType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeInstancesType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _describeInstancesType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _describeInstancesType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_reset_statusMessage( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describeInstancesType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describeInstancesType->property_statusMessage); ++ _describeInstancesType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _describeInstancesType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesType_is_statusMessage_nil( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_TRUE); ++ ++ return !_describeInstancesType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_set_statusMessage_nil( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_describeInstancesType_reset_statusMessage(_describeInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesType_get_return( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, (axis2_bool_t)0); ++ ++ ++ return _describeInstancesType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_set_return( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE); ++ ++ if(_describeInstancesType->is_valid_return && ++ arg_return == _describeInstancesType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeInstancesType_reset_return(_describeInstancesType, env); ++ ++ _describeInstancesType->property_return = arg_return; ++ _describeInstancesType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_reset_return( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE); ++ ++ ++ _describeInstancesType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesType_is_return_nil( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_TRUE); ++ ++ return !_describeInstancesType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_set_return_nil( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_describeInstancesType_reset_return(_describeInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceIds. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_describeInstancesType_get_instanceIds( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, NULL); ++ ++ ++ return _describeInstancesType->property_instanceIds; ++ } ++ ++ /** ++ * setter for instanceIds ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_set_instanceIds( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_instanceIds) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE); ++ ++ if(_describeInstancesType->is_valid_instanceIds && ++ arg_instanceIds == _describeInstancesType->property_instanceIds) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_instanceIds, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceIds has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_instanceIds, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_describeInstancesType_reset_instanceIds(_describeInstancesType, env); ++ ++ ++ if(NULL == arg_instanceIds) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeInstancesType->property_instanceIds = arg_instanceIds; ++ if(non_nil_exists) ++ { ++ _describeInstancesType->is_valid_instanceIds = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of instanceIds. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeInstancesType_get_instanceIds_at( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ axis2_char_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, NULL); ++ ++ ++ if(_describeInstancesType->property_instanceIds == NULL) ++ { ++ return (axis2_char_t*)0; ++ } ++ ret_val = (axis2_char_t*)axutil_array_list_get(_describeInstancesType->property_instanceIds, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of instanceIds. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_set_instanceIds_at( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_instanceIds) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE); ++ ++ if( _describeInstancesType->is_valid_instanceIds && ++ _describeInstancesType->property_instanceIds && ++ ++ arg_instanceIds == (axis2_char_t*)axutil_array_list_get(_describeInstancesType->property_instanceIds, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instanceIds) ++ { ++ if(_describeInstancesType->property_instanceIds != NULL) ++ { ++ size = axutil_array_list_size(_describeInstancesType->property_instanceIds, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_describeInstancesType->property_instanceIds, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instanceIds is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_describeInstancesType->property_instanceIds == NULL) ++ { ++ _describeInstancesType->property_instanceIds = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_describeInstancesType->property_instanceIds, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _describeInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ axutil_array_list_set(_describeInstancesType->property_instanceIds , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_describeInstancesType->property_instanceIds , env, i, axutil_strdup(env, arg_instanceIds)); ++ _describeInstancesType->is_valid_instanceIds = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to instanceIds. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_add_instanceIds( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceIds) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_instanceIds) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_describeInstancesType->property_instanceIds == NULL) ++ { ++ _describeInstancesType->property_instanceIds = axutil_array_list_create(env, 10); ++ } ++ if(_describeInstancesType->property_instanceIds == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for instanceIds"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_describeInstancesType->property_instanceIds , env, axutil_strdup(env, arg_instanceIds)); ++ _describeInstancesType->is_valid_instanceIds = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the instanceIds array. ++ */ ++ int AXIS2_CALL ++ adb_describeInstancesType_sizeof_instanceIds( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, -1); ++ if(_describeInstancesType->property_instanceIds == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_describeInstancesType->property_instanceIds, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_remove_instanceIds_at( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_describeInstancesType_set_instanceIds_nil_at(_describeInstancesType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for instanceIds ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_reset_instanceIds( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ if (_describeInstancesType->property_instanceIds != NULL) ++ { ++ count = axutil_array_list_size(_describeInstancesType->property_instanceIds, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_describeInstancesType->property_instanceIds, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_describeInstancesType->property_instanceIds, env); ++ } ++ _describeInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceIds is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesType_is_instanceIds_nil( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_TRUE); ++ ++ return !_describeInstancesType->is_valid_instanceIds; ++ } ++ ++ /** ++ * Set instanceIds to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_set_instanceIds_nil( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_describeInstancesType_reset_instanceIds(_describeInstancesType, env); ++ } ++ ++ ++ /** ++ * Check whether instanceIds is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesType_is_instanceIds_nil_at( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_TRUE); ++ ++ return (_describeInstancesType->is_valid_instanceIds == AXIS2_FALSE || ++ NULL == _describeInstancesType->property_instanceIds || ++ NULL == axutil_array_list_get(_describeInstancesType->property_instanceIds, env, i)); ++ } ++ ++ /** ++ * Set instanceIds to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_set_instanceIds_nil_at( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE); ++ ++ if(_describeInstancesType->property_instanceIds == NULL || ++ _describeInstancesType->is_valid_instanceIds == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_describeInstancesType->property_instanceIds, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_describeInstancesType->property_instanceIds, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instanceIds is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_describeInstancesType->property_instanceIds == NULL) ++ { ++ _describeInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_describeInstancesType->property_instanceIds, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _describeInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ axutil_array_list_set(_describeInstancesType->property_instanceIds , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_describeInstancesType->property_instanceIds , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_describeInstancesType.h' +--- old/cluster/generated/adb_describeInstancesType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_describeInstancesType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,549 @@ ++ ++ ++ #ifndef ADB_DESCRIBEINSTANCESTYPE_H ++ #define ADB_DESCRIBEINSTANCESTYPE_H ++ ++ /** ++ * adb_describeInstancesType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_describeInstancesType class ++ */ ++ typedef struct adb_describeInstancesType adb_describeInstancesType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_describeInstancesType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_describeInstancesType_t object ++ */ ++ adb_describeInstancesType_t* AXIS2_CALL ++ adb_describeInstancesType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_describeInstancesType_t object ++ * @param _describeInstancesType adb_describeInstancesType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_free ( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeInstancesType_get_correlationId( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_set_correlationId( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_reset_correlationId( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeInstancesType_get_userId( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_set_userId( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_reset_userId( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeInstancesType_get_statusMessage( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_set_statusMessage( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_reset_statusMessage( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesType_get_return( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_set_return( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_reset_return( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceIds. Deprecated for array types, Use adb_describeInstancesType_get_instanceIds_at instead ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return Array of axis2_char_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_describeInstancesType_get_instanceIds( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceIds.Deprecated for array types, Use adb_describeInstancesType_set_instanceIds_at ++ * or adb_describeInstancesType_add_instanceIds instead. ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceIds Array of axis2_char_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_set_instanceIds( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_instanceIds); ++ ++ /** ++ * Resetter for instanceIds ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_reset_instanceIds( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of instanceIds. ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeInstancesType_get_instanceIds_at( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of instanceIds. (If the ith already exist, it will be replaced) ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_instanceIds element to set axis2_char_t* to the array ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_set_instanceIds_at( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_instanceIds); ++ ++ ++ /** ++ * Add to instanceIds. ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceIds element to add axis2_char_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_add_instanceIds( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceIds); ++ ++ /** ++ * Get the size of the instanceIds array. ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the instanceIds array. ++ */ ++ int AXIS2_CALL ++ adb_describeInstancesType_sizeof_instanceIds( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of instanceIds. ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_remove_instanceIds_at( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesType_is_correlationId_nil( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesType_is_userId_nil( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesType_is_statusMessage_nil( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_set_statusMessage_nil( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesType_is_return_nil( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether instanceIds is nill ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesType_is_instanceIds_nil( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set instanceIds to nill (currently the same as reset) ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_set_instanceIds_nil( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env); ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether instanceIds is nill at i ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesType_is_instanceIds_nil_at( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set instanceIds to nill at i ++ * @param _describeInstancesType _ adb_describeInstancesType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_set_instanceIds_nil_at( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeInstancesType_deserialize( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_describeInstancesType_declare_parent_namespaces( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _describeInstancesType adb_describeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param describeInstancesType_om_node node to serialize from ++ * @param describeInstancesType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_describeInstancesType_serialize( ++ adb_describeInstancesType_t* _describeInstancesType, ++ const axutil_env_t *env, ++ axiom_node_t* describeInstancesType_om_node, axiom_element_t *describeInstancesType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_describeInstancesType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeInstancesType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_DESCRIBEINSTANCESTYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_describeNetworksResponseType.c' +--- old/cluster/generated/adb_describeNetworksResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_describeNetworksResponseType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,2572 @@ ++ ++ ++ /** ++ * adb_describeNetworksResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_describeNetworksResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = describeNetworksResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_describeNetworksResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_mode; ++ ++ ++ axis2_bool_t is_valid_mode; ++ ++ ++ int property_addrsPerNet; ++ ++ ++ axis2_bool_t is_valid_addrsPerNet; ++ ++ ++ axutil_array_list_t* property_activeNetworks; ++ ++ ++ axis2_bool_t is_valid_activeNetworks; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_correlationId_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_userId_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_return_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_mode_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_addrsPerNet_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_activeNetworks_nil_at( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_activeNetworks_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_describeNetworksResponseType_t* AXIS2_CALL ++ adb_describeNetworksResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_describeNetworksResponseType_t *_describeNetworksResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _describeNetworksResponseType = (adb_describeNetworksResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_describeNetworksResponseType_t)); ++ ++ if(NULL == _describeNetworksResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_describeNetworksResponseType, 0, sizeof(adb_describeNetworksResponseType_t)); ++ ++ _describeNetworksResponseType->property_correlationId = NULL; ++ _describeNetworksResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _describeNetworksResponseType->property_userId = NULL; ++ _describeNetworksResponseType->is_valid_userId = AXIS2_FALSE; ++ _describeNetworksResponseType->property_statusMessage = NULL; ++ _describeNetworksResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _describeNetworksResponseType->is_valid_return = AXIS2_FALSE; ++ _describeNetworksResponseType->is_valid_mode = AXIS2_FALSE; ++ _describeNetworksResponseType->is_valid_addrsPerNet = AXIS2_FALSE; ++ _describeNetworksResponseType->property_activeNetworks = NULL; ++ _describeNetworksResponseType->is_valid_activeNetworks = AXIS2_FALSE; ++ ++ ++ return _describeNetworksResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_free ( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE); ++ ++ adb_describeNetworksResponseType_reset_correlationId(_describeNetworksResponseType, env); ++ adb_describeNetworksResponseType_reset_userId(_describeNetworksResponseType, env); ++ adb_describeNetworksResponseType_reset_statusMessage(_describeNetworksResponseType, env); ++ adb_describeNetworksResponseType_reset_return(_describeNetworksResponseType, env); ++ adb_describeNetworksResponseType_reset_mode(_describeNetworksResponseType, env); ++ adb_describeNetworksResponseType_reset_addrsPerNet(_describeNetworksResponseType, env); ++ adb_describeNetworksResponseType_reset_activeNetworks(_describeNetworksResponseType, env); ++ ++ ++ if(_describeNetworksResponseType) ++ { ++ AXIS2_FREE(env->allocator, _describeNetworksResponseType); ++ _describeNetworksResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_deserialize( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for describeNetworksResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describeNetworksResponseType_set_correlationId(_describeNetworksResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_describeNetworksResponseType_set_correlationId(_describeNetworksResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describeNetworksResponseType_set_userId(_describeNetworksResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_describeNetworksResponseType_set_userId(_describeNetworksResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describeNetworksResponseType_set_statusMessage(_describeNetworksResponseType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_describeNetworksResponseType_set_return(_describeNetworksResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_describeNetworksResponseType_set_return(_describeNetworksResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building mode element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "mode", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describeNetworksResponseType_set_mode(_describeNetworksResponseType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element mode"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for mode "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building addrsPerNet element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "addrsPerNet", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describeNetworksResponseType_set_addrsPerNet(_describeNetworksResponseType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element addrsPerNet"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for addrsPerNet "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building activeNetworks array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building activeNetworks element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "activeNetworks", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ element = (void*)adb_networkType_create(env); ++ ++ status = adb_networkType_deserialize((adb_networkType_t*)element, env, ++ ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building element activeNetworks "); ++ } ++ else ++ { ++ axutil_array_list_add_at(arr_list, env, i, element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for activeNetworks "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "activeNetworks (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_describeNetworksResponseType_set_activeNetworks(_describeNetworksResponseType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_describeNetworksResponseType_declare_parent_namespaces( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_describeNetworksResponseType_serialize( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t text_value_5[64]; ++ ++ axis2_char_t text_value_6[64]; ++ ++ axis2_char_t text_value_7[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeNetworksResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _describeNetworksResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeNetworksResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _describeNetworksResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeNetworksResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _describeNetworksResponseType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeNetworksResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_describeNetworksResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeNetworksResponseType->is_valid_mode) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("mode"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("mode"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing mode element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%smode>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_5, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _describeNetworksResponseType->property_mode); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeNetworksResponseType->is_valid_addrsPerNet) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("addrsPerNet"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("addrsPerNet"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing addrsPerNet element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%saddrsPerNet>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_6, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _describeNetworksResponseType->property_addrsPerNet); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeNetworksResponseType->is_valid_activeNetworks) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("activeNetworks"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("activeNetworks"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing activeNetworks array ++ */ ++ if (_describeNetworksResponseType->property_activeNetworks != NULL) ++ { ++ ++ ++ sprintf(start_input_str, "<%s%sactiveNetworks", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_describeNetworksResponseType->property_activeNetworks, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing activeNetworks element ++ */ ++ ++ ++ ++ if(!adb_networkType_is_particle()) ++ { ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ } ++ ++ adb_networkType_serialize((adb_networkType_t*)element, ++ env, current_node, parent_element, ++ adb_networkType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index); ++ ++ if(!adb_networkType_is_particle()) ++ { ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ } ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeNetworksResponseType_get_correlationId( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, NULL); ++ ++ ++ return _describeNetworksResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_correlationId( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE); ++ ++ if(_describeNetworksResponseType->is_valid_correlationId && ++ arg_correlationId == _describeNetworksResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeNetworksResponseType_reset_correlationId(_describeNetworksResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeNetworksResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _describeNetworksResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _describeNetworksResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_reset_correlationId( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describeNetworksResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describeNetworksResponseType->property_correlationId); ++ _describeNetworksResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _describeNetworksResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksResponseType_is_correlationId_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_TRUE); ++ ++ return !_describeNetworksResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_correlationId_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_describeNetworksResponseType_reset_correlationId(_describeNetworksResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeNetworksResponseType_get_userId( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, NULL); ++ ++ ++ return _describeNetworksResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_userId( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE); ++ ++ if(_describeNetworksResponseType->is_valid_userId && ++ arg_userId == _describeNetworksResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeNetworksResponseType_reset_userId(_describeNetworksResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeNetworksResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _describeNetworksResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _describeNetworksResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_reset_userId( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describeNetworksResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describeNetworksResponseType->property_userId); ++ _describeNetworksResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _describeNetworksResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksResponseType_is_userId_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_TRUE); ++ ++ return !_describeNetworksResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_userId_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_describeNetworksResponseType_reset_userId(_describeNetworksResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeNetworksResponseType_get_statusMessage( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, NULL); ++ ++ ++ return _describeNetworksResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_statusMessage( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE); ++ ++ if(_describeNetworksResponseType->is_valid_statusMessage && ++ arg_statusMessage == _describeNetworksResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeNetworksResponseType_reset_statusMessage(_describeNetworksResponseType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeNetworksResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _describeNetworksResponseType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _describeNetworksResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_reset_statusMessage( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describeNetworksResponseType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describeNetworksResponseType->property_statusMessage); ++ _describeNetworksResponseType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _describeNetworksResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksResponseType_is_statusMessage_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_TRUE); ++ ++ return !_describeNetworksResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_statusMessage_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_describeNetworksResponseType_reset_statusMessage(_describeNetworksResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksResponseType_get_return( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, (axis2_bool_t)0); ++ ++ ++ return _describeNetworksResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_return( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE); ++ ++ if(_describeNetworksResponseType->is_valid_return && ++ arg_return == _describeNetworksResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeNetworksResponseType_reset_return(_describeNetworksResponseType, env); ++ ++ _describeNetworksResponseType->property_return = arg_return; ++ _describeNetworksResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_reset_return( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE); ++ ++ ++ _describeNetworksResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksResponseType_is_return_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_TRUE); ++ ++ return !_describeNetworksResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_return_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_describeNetworksResponseType_reset_return(_describeNetworksResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for mode. ++ */ ++ int AXIS2_CALL ++ adb_describeNetworksResponseType_get_mode( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, (int)0); ++ ++ ++ return _describeNetworksResponseType->property_mode; ++ } ++ ++ /** ++ * setter for mode ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_mode( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, ++ const int arg_mode) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE); ++ ++ if(_describeNetworksResponseType->is_valid_mode && ++ arg_mode == _describeNetworksResponseType->property_mode) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeNetworksResponseType_reset_mode(_describeNetworksResponseType, env); ++ ++ _describeNetworksResponseType->property_mode = arg_mode; ++ _describeNetworksResponseType->is_valid_mode = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for mode ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_reset_mode( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE); ++ ++ ++ _describeNetworksResponseType->is_valid_mode = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether mode is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksResponseType_is_mode_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_TRUE); ++ ++ return !_describeNetworksResponseType->is_valid_mode; ++ } ++ ++ /** ++ * Set mode to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_mode_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_describeNetworksResponseType_reset_mode(_describeNetworksResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for addrsPerNet. ++ */ ++ int AXIS2_CALL ++ adb_describeNetworksResponseType_get_addrsPerNet( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, (int)0); ++ ++ ++ return _describeNetworksResponseType->property_addrsPerNet; ++ } ++ ++ /** ++ * setter for addrsPerNet ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_addrsPerNet( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, ++ const int arg_addrsPerNet) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE); ++ ++ if(_describeNetworksResponseType->is_valid_addrsPerNet && ++ arg_addrsPerNet == _describeNetworksResponseType->property_addrsPerNet) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeNetworksResponseType_reset_addrsPerNet(_describeNetworksResponseType, env); ++ ++ _describeNetworksResponseType->property_addrsPerNet = arg_addrsPerNet; ++ _describeNetworksResponseType->is_valid_addrsPerNet = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for addrsPerNet ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_reset_addrsPerNet( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE); ++ ++ ++ _describeNetworksResponseType->is_valid_addrsPerNet = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether addrsPerNet is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksResponseType_is_addrsPerNet_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_TRUE); ++ ++ return !_describeNetworksResponseType->is_valid_addrsPerNet; ++ } ++ ++ /** ++ * Set addrsPerNet to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_addrsPerNet_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_describeNetworksResponseType_reset_addrsPerNet(_describeNetworksResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for activeNetworks. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_describeNetworksResponseType_get_activeNetworks( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, NULL); ++ ++ ++ return _describeNetworksResponseType->property_activeNetworks; ++ } ++ ++ /** ++ * setter for activeNetworks ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_activeNetworks( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_activeNetworks) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE); ++ ++ if(_describeNetworksResponseType->is_valid_activeNetworks && ++ arg_activeNetworks == _describeNetworksResponseType->property_activeNetworks) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_activeNetworks, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "activeNetworks has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_activeNetworks, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_describeNetworksResponseType_reset_activeNetworks(_describeNetworksResponseType, env); ++ ++ ++ if(NULL == arg_activeNetworks) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeNetworksResponseType->property_activeNetworks = arg_activeNetworks; ++ if(non_nil_exists) ++ { ++ _describeNetworksResponseType->is_valid_activeNetworks = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of activeNetworks. ++ */ ++ adb_networkType_t* AXIS2_CALL ++ adb_describeNetworksResponseType_get_activeNetworks_at( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, int i) ++ { ++ adb_networkType_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, NULL); ++ ++ ++ if(_describeNetworksResponseType->property_activeNetworks == NULL) ++ { ++ return (adb_networkType_t*)0; ++ } ++ ret_val = (adb_networkType_t*)axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of activeNetworks. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_activeNetworks_at( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, int i, ++ adb_networkType_t* arg_activeNetworks) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE); ++ ++ if( _describeNetworksResponseType->is_valid_activeNetworks && ++ _describeNetworksResponseType->property_activeNetworks && ++ ++ arg_activeNetworks == (adb_networkType_t*)axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_activeNetworks) ++ { ++ if(_describeNetworksResponseType->property_activeNetworks != NULL) ++ { ++ size = axutil_array_list_size(_describeNetworksResponseType->property_activeNetworks, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of activeNetworks is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_describeNetworksResponseType->property_activeNetworks == NULL) ++ { ++ _describeNetworksResponseType->property_activeNetworks = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ adb_networkType_free((adb_networkType_t*)element, env); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _describeNetworksResponseType->is_valid_activeNetworks = AXIS2_FALSE; ++ axutil_array_list_set(_describeNetworksResponseType->property_activeNetworks , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_describeNetworksResponseType->property_activeNetworks , env, i, arg_activeNetworks); ++ _describeNetworksResponseType->is_valid_activeNetworks = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to activeNetworks. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_add_activeNetworks( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, ++ adb_networkType_t* arg_activeNetworks) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_activeNetworks) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_describeNetworksResponseType->property_activeNetworks == NULL) ++ { ++ _describeNetworksResponseType->property_activeNetworks = axutil_array_list_create(env, 10); ++ } ++ if(_describeNetworksResponseType->property_activeNetworks == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for activeNetworks"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_describeNetworksResponseType->property_activeNetworks , env, arg_activeNetworks); ++ _describeNetworksResponseType->is_valid_activeNetworks = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the activeNetworks array. ++ */ ++ int AXIS2_CALL ++ adb_describeNetworksResponseType_sizeof_activeNetworks( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, -1); ++ if(_describeNetworksResponseType->property_activeNetworks == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_describeNetworksResponseType->property_activeNetworks, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_remove_activeNetworks_at( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_describeNetworksResponseType_set_activeNetworks_nil_at(_describeNetworksResponseType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for activeNetworks ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_reset_activeNetworks( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE); ++ ++ ++ ++ if (_describeNetworksResponseType->property_activeNetworks != NULL) ++ { ++ count = axutil_array_list_size(_describeNetworksResponseType->property_activeNetworks, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ adb_networkType_free((adb_networkType_t*)element, env); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_describeNetworksResponseType->property_activeNetworks, env); ++ } ++ _describeNetworksResponseType->is_valid_activeNetworks = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether activeNetworks is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksResponseType_is_activeNetworks_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_TRUE); ++ ++ return !_describeNetworksResponseType->is_valid_activeNetworks; ++ } ++ ++ /** ++ * Set activeNetworks to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_activeNetworks_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_describeNetworksResponseType_reset_activeNetworks(_describeNetworksResponseType, env); ++ } ++ ++ ++ /** ++ * Check whether activeNetworks is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksResponseType_is_activeNetworks_nil_at( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_TRUE); ++ ++ return (_describeNetworksResponseType->is_valid_activeNetworks == AXIS2_FALSE || ++ NULL == _describeNetworksResponseType->property_activeNetworks || ++ NULL == axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i)); ++ } ++ ++ /** ++ * Set activeNetworks to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_activeNetworks_nil_at( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE); ++ ++ if(_describeNetworksResponseType->property_activeNetworks == NULL || ++ _describeNetworksResponseType->is_valid_activeNetworks == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_describeNetworksResponseType->property_activeNetworks, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of activeNetworks is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_describeNetworksResponseType->property_activeNetworks == NULL) ++ { ++ _describeNetworksResponseType->is_valid_activeNetworks = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ adb_networkType_free((adb_networkType_t*)element, env); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _describeNetworksResponseType->is_valid_activeNetworks = AXIS2_FALSE; ++ axutil_array_list_set(_describeNetworksResponseType->property_activeNetworks , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_describeNetworksResponseType->property_activeNetworks , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_describeNetworksResponseType.h' +--- old/cluster/generated/adb_describeNetworksResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_describeNetworksResponseType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,644 @@ ++ ++ ++ #ifndef ADB_DESCRIBENETWORKSRESPONSETYPE_H ++ #define ADB_DESCRIBENETWORKSRESPONSETYPE_H ++ ++ /** ++ * adb_describeNetworksResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_describeNetworksResponseType class ++ */ ++ typedef struct adb_describeNetworksResponseType adb_describeNetworksResponseType_t; ++ ++ ++ #include "adb_networkType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_describeNetworksResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_describeNetworksResponseType_t object ++ */ ++ adb_describeNetworksResponseType_t* AXIS2_CALL ++ adb_describeNetworksResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_describeNetworksResponseType_t object ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_free ( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeNetworksResponseType_get_correlationId( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_correlationId( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_reset_correlationId( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeNetworksResponseType_get_userId( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_userId( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_reset_userId( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeNetworksResponseType_get_statusMessage( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_statusMessage( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_reset_statusMessage( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksResponseType_get_return( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_return( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_reset_return( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for mode. ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_describeNetworksResponseType_get_mode( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for mode. ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_mode int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_mode( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, ++ const int arg_mode); ++ ++ /** ++ * Resetter for mode ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_reset_mode( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for addrsPerNet. ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_describeNetworksResponseType_get_addrsPerNet( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for addrsPerNet. ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_addrsPerNet int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_addrsPerNet( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, ++ const int arg_addrsPerNet); ++ ++ /** ++ * Resetter for addrsPerNet ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_reset_addrsPerNet( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for activeNetworks. Deprecated for array types, Use adb_describeNetworksResponseType_get_activeNetworks_at instead ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @return Array of adb_networkType_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_describeNetworksResponseType_get_activeNetworks( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for activeNetworks.Deprecated for array types, Use adb_describeNetworksResponseType_set_activeNetworks_at ++ * or adb_describeNetworksResponseType_add_activeNetworks instead. ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_activeNetworks Array of adb_networkType_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_activeNetworks( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_activeNetworks); ++ ++ /** ++ * Resetter for activeNetworks ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_reset_activeNetworks( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of activeNetworks. ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith adb_networkType_t* of the array ++ */ ++ adb_networkType_t* AXIS2_CALL ++ adb_describeNetworksResponseType_get_activeNetworks_at( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of activeNetworks. (If the ith already exist, it will be replaced) ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_activeNetworks element to set adb_networkType_t* to the array ++ * @return ith adb_networkType_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_activeNetworks_at( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, int i, ++ adb_networkType_t* arg_activeNetworks); ++ ++ ++ /** ++ * Add to activeNetworks. ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_activeNetworks element to add adb_networkType_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_add_activeNetworks( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, ++ adb_networkType_t* arg_activeNetworks); ++ ++ /** ++ * Get the size of the activeNetworks array. ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the activeNetworks array. ++ */ ++ int AXIS2_CALL ++ adb_describeNetworksResponseType_sizeof_activeNetworks( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of activeNetworks. ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_remove_activeNetworks_at( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksResponseType_is_correlationId_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksResponseType_is_userId_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksResponseType_is_statusMessage_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_statusMessage_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksResponseType_is_return_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether mode is nill ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksResponseType_is_mode_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether addrsPerNet is nill ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksResponseType_is_addrsPerNet_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether activeNetworks is nill ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksResponseType_is_activeNetworks_nil( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether activeNetworks is nill at i ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksResponseType_is_activeNetworks_nil_at( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set activeNetworks to nill at i ++ * @param _describeNetworksResponseType _ adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_set_activeNetworks_nil_at( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksResponseType_deserialize( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_describeNetworksResponseType_declare_parent_namespaces( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object ++ * @param env pointer to environment struct ++ * @param describeNetworksResponseType_om_node node to serialize from ++ * @param describeNetworksResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_describeNetworksResponseType_serialize( ++ adb_describeNetworksResponseType_t* _describeNetworksResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* describeNetworksResponseType_om_node, axiom_element_t *describeNetworksResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_describeNetworksResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_DESCRIBENETWORKSRESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_describeNetworksType.c' +--- old/cluster/generated/adb_describeNetworksType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_describeNetworksType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,2468 @@ ++ ++ ++ /** ++ * adb_describeNetworksType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_describeNetworksType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = describeNetworksType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_describeNetworksType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ axis2_char_t* property_nameserver; ++ ++ ++ axis2_bool_t is_valid_nameserver; ++ ++ ++ axutil_array_list_t* property_clusterControllers; ++ ++ ++ axis2_bool_t is_valid_clusterControllers; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_correlationId_nil( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_userId_nil( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_return_nil( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_nameserver_nil( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_clusterControllers_nil_at( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_clusterControllers_nil( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_describeNetworksType_t* AXIS2_CALL ++ adb_describeNetworksType_create( ++ const axutil_env_t *env) ++ { ++ adb_describeNetworksType_t *_describeNetworksType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _describeNetworksType = (adb_describeNetworksType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_describeNetworksType_t)); ++ ++ if(NULL == _describeNetworksType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_describeNetworksType, 0, sizeof(adb_describeNetworksType_t)); ++ ++ _describeNetworksType->property_correlationId = NULL; ++ _describeNetworksType->is_valid_correlationId = AXIS2_FALSE; ++ _describeNetworksType->property_userId = NULL; ++ _describeNetworksType->is_valid_userId = AXIS2_FALSE; ++ _describeNetworksType->property_statusMessage = NULL; ++ _describeNetworksType->is_valid_statusMessage = AXIS2_FALSE; ++ _describeNetworksType->is_valid_return = AXIS2_FALSE; ++ _describeNetworksType->property_nameserver = NULL; ++ _describeNetworksType->is_valid_nameserver = AXIS2_FALSE; ++ _describeNetworksType->property_clusterControllers = NULL; ++ _describeNetworksType->is_valid_clusterControllers = AXIS2_FALSE; ++ ++ ++ return _describeNetworksType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_free ( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE); ++ ++ adb_describeNetworksType_reset_correlationId(_describeNetworksType, env); ++ adb_describeNetworksType_reset_userId(_describeNetworksType, env); ++ adb_describeNetworksType_reset_statusMessage(_describeNetworksType, env); ++ adb_describeNetworksType_reset_return(_describeNetworksType, env); ++ adb_describeNetworksType_reset_nameserver(_describeNetworksType, env); ++ adb_describeNetworksType_reset_clusterControllers(_describeNetworksType, env); ++ ++ ++ if(_describeNetworksType) ++ { ++ AXIS2_FREE(env->allocator, _describeNetworksType); ++ _describeNetworksType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_deserialize( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for describeNetworksType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describeNetworksType_set_correlationId(_describeNetworksType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_describeNetworksType_set_correlationId(_describeNetworksType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describeNetworksType_set_userId(_describeNetworksType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_describeNetworksType_set_userId(_describeNetworksType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describeNetworksType_set_statusMessage(_describeNetworksType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_describeNetworksType_set_return(_describeNetworksType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_describeNetworksType_set_return(_describeNetworksType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building nameserver element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "nameserver", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describeNetworksType_set_nameserver(_describeNetworksType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element nameserver"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_describeNetworksType_set_nameserver(_describeNetworksType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for nameserver "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building clusterControllers array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building clusterControllers element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "clusterControllers", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value)); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element clusterControllers"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, "")); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for clusterControllers "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "clusterControllers (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_describeNetworksType_set_clusterControllers(_describeNetworksType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_describeNetworksType_declare_parent_namespaces( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_describeNetworksType_serialize( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *text_value_6; ++ axis2_char_t *text_value_6_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeNetworksType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _describeNetworksType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeNetworksType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _describeNetworksType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeNetworksType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _describeNetworksType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeNetworksType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_describeNetworksType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeNetworksType->is_valid_nameserver) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("nameserver"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("nameserver"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing nameserver element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%snameserver>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _describeNetworksType->property_nameserver; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeNetworksType->is_valid_clusterControllers) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("clusterControllers"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("clusterControllers"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing clusterControllers array ++ */ ++ if (_describeNetworksType->property_clusterControllers != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%sclusterControllers>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_describeNetworksType->property_clusterControllers, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_describeNetworksType->property_clusterControllers, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing clusterControllers element ++ */ ++ ++ ++ ++ text_value_6 = (axis2_char_t*)element; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE); ++ if (text_value_6_temp) ++ { ++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp)); ++ AXIS2_FREE(env->allocator, text_value_6_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeNetworksType_get_correlationId( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, NULL); ++ ++ ++ return _describeNetworksType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_correlationId( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE); ++ ++ if(_describeNetworksType->is_valid_correlationId && ++ arg_correlationId == _describeNetworksType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeNetworksType_reset_correlationId(_describeNetworksType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeNetworksType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _describeNetworksType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _describeNetworksType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_reset_correlationId( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describeNetworksType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describeNetworksType->property_correlationId); ++ _describeNetworksType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _describeNetworksType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksType_is_correlationId_nil( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_TRUE); ++ ++ return !_describeNetworksType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_correlationId_nil( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ return adb_describeNetworksType_reset_correlationId(_describeNetworksType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeNetworksType_get_userId( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, NULL); ++ ++ ++ return _describeNetworksType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_userId( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE); ++ ++ if(_describeNetworksType->is_valid_userId && ++ arg_userId == _describeNetworksType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeNetworksType_reset_userId(_describeNetworksType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeNetworksType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _describeNetworksType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _describeNetworksType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_reset_userId( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describeNetworksType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describeNetworksType->property_userId); ++ _describeNetworksType->property_userId = NULL; ++ } ++ ++ ++ ++ _describeNetworksType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksType_is_userId_nil( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_TRUE); ++ ++ return !_describeNetworksType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_userId_nil( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ return adb_describeNetworksType_reset_userId(_describeNetworksType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeNetworksType_get_statusMessage( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, NULL); ++ ++ ++ return _describeNetworksType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_statusMessage( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE); ++ ++ if(_describeNetworksType->is_valid_statusMessage && ++ arg_statusMessage == _describeNetworksType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeNetworksType_reset_statusMessage(_describeNetworksType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeNetworksType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _describeNetworksType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _describeNetworksType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_reset_statusMessage( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describeNetworksType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describeNetworksType->property_statusMessage); ++ _describeNetworksType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _describeNetworksType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksType_is_statusMessage_nil( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_TRUE); ++ ++ return !_describeNetworksType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_statusMessage_nil( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ return adb_describeNetworksType_reset_statusMessage(_describeNetworksType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksType_get_return( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, (axis2_bool_t)0); ++ ++ ++ return _describeNetworksType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_return( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE); ++ ++ if(_describeNetworksType->is_valid_return && ++ arg_return == _describeNetworksType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeNetworksType_reset_return(_describeNetworksType, env); ++ ++ _describeNetworksType->property_return = arg_return; ++ _describeNetworksType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_reset_return( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE); ++ ++ ++ _describeNetworksType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksType_is_return_nil( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_TRUE); ++ ++ return !_describeNetworksType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_return_nil( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ return adb_describeNetworksType_reset_return(_describeNetworksType, env); ++ } ++ ++ ++ ++ /** ++ * getter for nameserver. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeNetworksType_get_nameserver( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, NULL); ++ ++ ++ return _describeNetworksType->property_nameserver; ++ } ++ ++ /** ++ * setter for nameserver ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_nameserver( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_nameserver) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE); ++ ++ if(_describeNetworksType->is_valid_nameserver && ++ arg_nameserver == _describeNetworksType->property_nameserver) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeNetworksType_reset_nameserver(_describeNetworksType, env); ++ ++ ++ if(NULL == arg_nameserver) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeNetworksType->property_nameserver = (axis2_char_t *)axutil_strdup(env, arg_nameserver); ++ if(NULL == _describeNetworksType->property_nameserver) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for nameserver"); ++ return AXIS2_FAILURE; ++ } ++ _describeNetworksType->is_valid_nameserver = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for nameserver ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_reset_nameserver( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describeNetworksType->property_nameserver != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describeNetworksType->property_nameserver); ++ _describeNetworksType->property_nameserver = NULL; ++ } ++ ++ ++ ++ _describeNetworksType->is_valid_nameserver = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether nameserver is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksType_is_nameserver_nil( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_TRUE); ++ ++ return !_describeNetworksType->is_valid_nameserver; ++ } ++ ++ /** ++ * Set nameserver to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_nameserver_nil( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ return adb_describeNetworksType_reset_nameserver(_describeNetworksType, env); ++ } ++ ++ ++ ++ /** ++ * getter for clusterControllers. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_describeNetworksType_get_clusterControllers( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, NULL); ++ ++ ++ return _describeNetworksType->property_clusterControllers; ++ } ++ ++ /** ++ * setter for clusterControllers ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_clusterControllers( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_clusterControllers) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE); ++ ++ if(_describeNetworksType->is_valid_clusterControllers && ++ arg_clusterControllers == _describeNetworksType->property_clusterControllers) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_clusterControllers, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "clusterControllers has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_clusterControllers, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_describeNetworksType_reset_clusterControllers(_describeNetworksType, env); ++ ++ ++ if(NULL == arg_clusterControllers) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeNetworksType->property_clusterControllers = arg_clusterControllers; ++ if(non_nil_exists) ++ { ++ _describeNetworksType->is_valid_clusterControllers = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of clusterControllers. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeNetworksType_get_clusterControllers_at( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, int i) ++ { ++ axis2_char_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, NULL); ++ ++ ++ if(_describeNetworksType->property_clusterControllers == NULL) ++ { ++ return (axis2_char_t*)0; ++ } ++ ret_val = (axis2_char_t*)axutil_array_list_get(_describeNetworksType->property_clusterControllers, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of clusterControllers. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_clusterControllers_at( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_clusterControllers) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE); ++ ++ if( _describeNetworksType->is_valid_clusterControllers && ++ _describeNetworksType->property_clusterControllers && ++ ++ arg_clusterControllers == (axis2_char_t*)axutil_array_list_get(_describeNetworksType->property_clusterControllers, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_clusterControllers) ++ { ++ if(_describeNetworksType->property_clusterControllers != NULL) ++ { ++ size = axutil_array_list_size(_describeNetworksType->property_clusterControllers, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_describeNetworksType->property_clusterControllers, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of clusterControllers is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_describeNetworksType->property_clusterControllers == NULL) ++ { ++ _describeNetworksType->property_clusterControllers = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_describeNetworksType->property_clusterControllers, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _describeNetworksType->is_valid_clusterControllers = AXIS2_FALSE; ++ axutil_array_list_set(_describeNetworksType->property_clusterControllers , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_describeNetworksType->property_clusterControllers , env, i, axutil_strdup(env, arg_clusterControllers)); ++ _describeNetworksType->is_valid_clusterControllers = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to clusterControllers. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_add_clusterControllers( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_clusterControllers) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_clusterControllers) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_describeNetworksType->property_clusterControllers == NULL) ++ { ++ _describeNetworksType->property_clusterControllers = axutil_array_list_create(env, 10); ++ } ++ if(_describeNetworksType->property_clusterControllers == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for clusterControllers"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_describeNetworksType->property_clusterControllers , env, axutil_strdup(env, arg_clusterControllers)); ++ _describeNetworksType->is_valid_clusterControllers = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the clusterControllers array. ++ */ ++ int AXIS2_CALL ++ adb_describeNetworksType_sizeof_clusterControllers( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, -1); ++ if(_describeNetworksType->property_clusterControllers == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_describeNetworksType->property_clusterControllers, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_remove_clusterControllers_at( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_describeNetworksType_set_clusterControllers_nil_at(_describeNetworksType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for clusterControllers ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_reset_clusterControllers( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE); ++ ++ ++ ++ if (_describeNetworksType->property_clusterControllers != NULL) ++ { ++ count = axutil_array_list_size(_describeNetworksType->property_clusterControllers, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_describeNetworksType->property_clusterControllers, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_describeNetworksType->property_clusterControllers, env); ++ } ++ _describeNetworksType->is_valid_clusterControllers = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether clusterControllers is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksType_is_clusterControllers_nil( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_TRUE); ++ ++ return !_describeNetworksType->is_valid_clusterControllers; ++ } ++ ++ /** ++ * Set clusterControllers to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_clusterControllers_nil( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env) ++ { ++ return adb_describeNetworksType_reset_clusterControllers(_describeNetworksType, env); ++ } ++ ++ ++ /** ++ * Check whether clusterControllers is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksType_is_clusterControllers_nil_at( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_TRUE); ++ ++ return (_describeNetworksType->is_valid_clusterControllers == AXIS2_FALSE || ++ NULL == _describeNetworksType->property_clusterControllers || ++ NULL == axutil_array_list_get(_describeNetworksType->property_clusterControllers, env, i)); ++ } ++ ++ /** ++ * Set clusterControllers to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_clusterControllers_nil_at( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE); ++ ++ if(_describeNetworksType->property_clusterControllers == NULL || ++ _describeNetworksType->is_valid_clusterControllers == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_describeNetworksType->property_clusterControllers, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_describeNetworksType->property_clusterControllers, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of clusterControllers is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_describeNetworksType->property_clusterControllers == NULL) ++ { ++ _describeNetworksType->is_valid_clusterControllers = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_describeNetworksType->property_clusterControllers, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _describeNetworksType->is_valid_clusterControllers = AXIS2_FALSE; ++ axutil_array_list_set(_describeNetworksType->property_clusterControllers , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_describeNetworksType->property_clusterControllers , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_describeNetworksType.h' +--- old/cluster/generated/adb_describeNetworksType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_describeNetworksType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,590 @@ ++ ++ ++ #ifndef ADB_DESCRIBENETWORKSTYPE_H ++ #define ADB_DESCRIBENETWORKSTYPE_H ++ ++ /** ++ * adb_describeNetworksType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_describeNetworksType class ++ */ ++ typedef struct adb_describeNetworksType adb_describeNetworksType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_describeNetworksType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_describeNetworksType_t object ++ */ ++ adb_describeNetworksType_t* AXIS2_CALL ++ adb_describeNetworksType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_describeNetworksType_t object ++ * @param _describeNetworksType adb_describeNetworksType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_free ( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeNetworksType_get_correlationId( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_correlationId( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_reset_correlationId( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeNetworksType_get_userId( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_userId( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_reset_userId( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeNetworksType_get_statusMessage( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_statusMessage( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_reset_statusMessage( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksType_get_return( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_return( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_reset_return( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for nameserver. ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeNetworksType_get_nameserver( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for nameserver. ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @param arg_nameserver axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_nameserver( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_nameserver); ++ ++ /** ++ * Resetter for nameserver ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_reset_nameserver( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for clusterControllers. Deprecated for array types, Use adb_describeNetworksType_get_clusterControllers_at instead ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @return Array of axis2_char_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_describeNetworksType_get_clusterControllers( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for clusterControllers.Deprecated for array types, Use adb_describeNetworksType_set_clusterControllers_at ++ * or adb_describeNetworksType_add_clusterControllers instead. ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @param arg_clusterControllers Array of axis2_char_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_clusterControllers( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_clusterControllers); ++ ++ /** ++ * Resetter for clusterControllers ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_reset_clusterControllers( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of clusterControllers. ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeNetworksType_get_clusterControllers_at( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of clusterControllers. (If the ith already exist, it will be replaced) ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_clusterControllers element to set axis2_char_t* to the array ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_clusterControllers_at( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_clusterControllers); ++ ++ ++ /** ++ * Add to clusterControllers. ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @param arg_clusterControllers element to add axis2_char_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_add_clusterControllers( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_clusterControllers); ++ ++ /** ++ * Get the size of the clusterControllers array. ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the clusterControllers array. ++ */ ++ int AXIS2_CALL ++ adb_describeNetworksType_sizeof_clusterControllers( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of clusterControllers. ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_remove_clusterControllers_at( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksType_is_correlationId_nil( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksType_is_userId_nil( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksType_is_statusMessage_nil( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_statusMessage_nil( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksType_is_return_nil( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether nameserver is nill ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksType_is_nameserver_nil( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether clusterControllers is nill ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksType_is_clusterControllers_nil( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env); ++ ++ ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether clusterControllers is nill at i ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksType_is_clusterControllers_nil_at( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set clusterControllers to nill at i ++ * @param _describeNetworksType _ adb_describeNetworksType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_set_clusterControllers_nil_at( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeNetworksType_deserialize( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_describeNetworksType_declare_parent_namespaces( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _describeNetworksType adb_describeNetworksType_t object ++ * @param env pointer to environment struct ++ * @param describeNetworksType_om_node node to serialize from ++ * @param describeNetworksType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_describeNetworksType_serialize( ++ adb_describeNetworksType_t* _describeNetworksType, ++ const axutil_env_t *env, ++ axiom_node_t* describeNetworksType_om_node, axiom_element_t *describeNetworksType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_describeNetworksType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeNetworksType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_DESCRIBENETWORKSTYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_describePublicAddressesResponseType.c' +--- old/cluster/generated/adb_describePublicAddressesResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_describePublicAddressesResponseType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,2845 @@ ++ ++ ++ /** ++ * adb_describePublicAddressesResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_describePublicAddressesResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = describePublicAddressesResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_describePublicAddressesResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ axutil_array_list_t* property_sourceAddresses; ++ ++ ++ axis2_bool_t is_valid_sourceAddresses; ++ ++ ++ axutil_array_list_t* property_destAddresses; ++ ++ ++ axis2_bool_t is_valid_destAddresses; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_correlationId_nil( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_userId_nil( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_return_nil( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_sourceAddresses_nil_at( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_sourceAddresses_nil( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_destAddresses_nil_at( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_destAddresses_nil( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_describePublicAddressesResponseType_t* AXIS2_CALL ++ adb_describePublicAddressesResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_describePublicAddressesResponseType_t *_describePublicAddressesResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _describePublicAddressesResponseType = (adb_describePublicAddressesResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_describePublicAddressesResponseType_t)); ++ ++ if(NULL == _describePublicAddressesResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_describePublicAddressesResponseType, 0, sizeof(adb_describePublicAddressesResponseType_t)); ++ ++ _describePublicAddressesResponseType->property_correlationId = NULL; ++ _describePublicAddressesResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _describePublicAddressesResponseType->property_userId = NULL; ++ _describePublicAddressesResponseType->is_valid_userId = AXIS2_FALSE; ++ _describePublicAddressesResponseType->property_statusMessage = NULL; ++ _describePublicAddressesResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _describePublicAddressesResponseType->is_valid_return = AXIS2_FALSE; ++ _describePublicAddressesResponseType->property_sourceAddresses = NULL; ++ _describePublicAddressesResponseType->is_valid_sourceAddresses = AXIS2_FALSE; ++ _describePublicAddressesResponseType->property_destAddresses = NULL; ++ _describePublicAddressesResponseType->is_valid_destAddresses = AXIS2_FALSE; ++ ++ ++ return _describePublicAddressesResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_free ( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE); ++ ++ adb_describePublicAddressesResponseType_reset_correlationId(_describePublicAddressesResponseType, env); ++ adb_describePublicAddressesResponseType_reset_userId(_describePublicAddressesResponseType, env); ++ adb_describePublicAddressesResponseType_reset_statusMessage(_describePublicAddressesResponseType, env); ++ adb_describePublicAddressesResponseType_reset_return(_describePublicAddressesResponseType, env); ++ adb_describePublicAddressesResponseType_reset_sourceAddresses(_describePublicAddressesResponseType, env); ++ adb_describePublicAddressesResponseType_reset_destAddresses(_describePublicAddressesResponseType, env); ++ ++ ++ if(_describePublicAddressesResponseType) ++ { ++ AXIS2_FREE(env->allocator, _describePublicAddressesResponseType); ++ _describePublicAddressesResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_deserialize( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for describePublicAddressesResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describePublicAddressesResponseType_set_correlationId(_describePublicAddressesResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_describePublicAddressesResponseType_set_correlationId(_describePublicAddressesResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describePublicAddressesResponseType_set_userId(_describePublicAddressesResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_describePublicAddressesResponseType_set_userId(_describePublicAddressesResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describePublicAddressesResponseType_set_statusMessage(_describePublicAddressesResponseType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_describePublicAddressesResponseType_set_return(_describePublicAddressesResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_describePublicAddressesResponseType_set_return(_describePublicAddressesResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building sourceAddresses array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building sourceAddresses element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "sourceAddresses", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value)); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element sourceAddresses"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, "")); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for sourceAddresses "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sourceAddresses (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_describePublicAddressesResponseType_set_sourceAddresses(_describePublicAddressesResponseType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building destAddresses array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building destAddresses element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "destAddresses", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value)); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element destAddresses"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, "")); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for destAddresses "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "destAddresses (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_describePublicAddressesResponseType_set_destAddresses(_describePublicAddressesResponseType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_describePublicAddressesResponseType_declare_parent_namespaces( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_describePublicAddressesResponseType_serialize( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *text_value_6; ++ axis2_char_t *text_value_6_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describePublicAddressesResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _describePublicAddressesResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describePublicAddressesResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _describePublicAddressesResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describePublicAddressesResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _describePublicAddressesResponseType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describePublicAddressesResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_describePublicAddressesResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describePublicAddressesResponseType->is_valid_sourceAddresses) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("sourceAddresses"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("sourceAddresses"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing sourceAddresses array ++ */ ++ if (_describePublicAddressesResponseType->property_sourceAddresses != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%ssourceAddresses>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_describePublicAddressesResponseType->property_sourceAddresses, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_describePublicAddressesResponseType->property_sourceAddresses, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing sourceAddresses element ++ */ ++ ++ ++ ++ text_value_5 = (axis2_char_t*)element; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describePublicAddressesResponseType->is_valid_destAddresses) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("destAddresses"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("destAddresses"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing destAddresses array ++ */ ++ if (_describePublicAddressesResponseType->property_destAddresses != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%sdestAddresses>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_describePublicAddressesResponseType->property_destAddresses, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_describePublicAddressesResponseType->property_destAddresses, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing destAddresses element ++ */ ++ ++ ++ ++ text_value_6 = (axis2_char_t*)element; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE); ++ if (text_value_6_temp) ++ { ++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp)); ++ AXIS2_FREE(env->allocator, text_value_6_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describePublicAddressesResponseType_get_correlationId( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, NULL); ++ ++ ++ return _describePublicAddressesResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_correlationId( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE); ++ ++ if(_describePublicAddressesResponseType->is_valid_correlationId && ++ arg_correlationId == _describePublicAddressesResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describePublicAddressesResponseType_reset_correlationId(_describePublicAddressesResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describePublicAddressesResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _describePublicAddressesResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _describePublicAddressesResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_reset_correlationId( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describePublicAddressesResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describePublicAddressesResponseType->property_correlationId); ++ _describePublicAddressesResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _describePublicAddressesResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_is_correlationId_nil( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_TRUE); ++ ++ return !_describePublicAddressesResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_correlationId_nil( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_describePublicAddressesResponseType_reset_correlationId(_describePublicAddressesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describePublicAddressesResponseType_get_userId( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, NULL); ++ ++ ++ return _describePublicAddressesResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_userId( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE); ++ ++ if(_describePublicAddressesResponseType->is_valid_userId && ++ arg_userId == _describePublicAddressesResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describePublicAddressesResponseType_reset_userId(_describePublicAddressesResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describePublicAddressesResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _describePublicAddressesResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _describePublicAddressesResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_reset_userId( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describePublicAddressesResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describePublicAddressesResponseType->property_userId); ++ _describePublicAddressesResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _describePublicAddressesResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_is_userId_nil( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_TRUE); ++ ++ return !_describePublicAddressesResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_userId_nil( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_describePublicAddressesResponseType_reset_userId(_describePublicAddressesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describePublicAddressesResponseType_get_statusMessage( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, NULL); ++ ++ ++ return _describePublicAddressesResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_statusMessage( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE); ++ ++ if(_describePublicAddressesResponseType->is_valid_statusMessage && ++ arg_statusMessage == _describePublicAddressesResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describePublicAddressesResponseType_reset_statusMessage(_describePublicAddressesResponseType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describePublicAddressesResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _describePublicAddressesResponseType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _describePublicAddressesResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_reset_statusMessage( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describePublicAddressesResponseType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describePublicAddressesResponseType->property_statusMessage); ++ _describePublicAddressesResponseType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _describePublicAddressesResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_is_statusMessage_nil( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_TRUE); ++ ++ return !_describePublicAddressesResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_statusMessage_nil( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_describePublicAddressesResponseType_reset_statusMessage(_describePublicAddressesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_get_return( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, (axis2_bool_t)0); ++ ++ ++ return _describePublicAddressesResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_return( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE); ++ ++ if(_describePublicAddressesResponseType->is_valid_return && ++ arg_return == _describePublicAddressesResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describePublicAddressesResponseType_reset_return(_describePublicAddressesResponseType, env); ++ ++ _describePublicAddressesResponseType->property_return = arg_return; ++ _describePublicAddressesResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_reset_return( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE); ++ ++ ++ _describePublicAddressesResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_is_return_nil( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_TRUE); ++ ++ return !_describePublicAddressesResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_return_nil( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_describePublicAddressesResponseType_reset_return(_describePublicAddressesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for sourceAddresses. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_describePublicAddressesResponseType_get_sourceAddresses( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, NULL); ++ ++ ++ return _describePublicAddressesResponseType->property_sourceAddresses; ++ } ++ ++ /** ++ * setter for sourceAddresses ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_sourceAddresses( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_sourceAddresses) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE); ++ ++ if(_describePublicAddressesResponseType->is_valid_sourceAddresses && ++ arg_sourceAddresses == _describePublicAddressesResponseType->property_sourceAddresses) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_sourceAddresses, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sourceAddresses has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_sourceAddresses, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_describePublicAddressesResponseType_reset_sourceAddresses(_describePublicAddressesResponseType, env); ++ ++ ++ if(NULL == arg_sourceAddresses) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describePublicAddressesResponseType->property_sourceAddresses = arg_sourceAddresses; ++ if(non_nil_exists) ++ { ++ _describePublicAddressesResponseType->is_valid_sourceAddresses = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of sourceAddresses. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describePublicAddressesResponseType_get_sourceAddresses_at( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ axis2_char_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, NULL); ++ ++ ++ if(_describePublicAddressesResponseType->property_sourceAddresses == NULL) ++ { ++ return (axis2_char_t*)0; ++ } ++ ret_val = (axis2_char_t*)axutil_array_list_get(_describePublicAddressesResponseType->property_sourceAddresses, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of sourceAddresses. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_sourceAddresses_at( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_sourceAddresses) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE); ++ ++ if( _describePublicAddressesResponseType->is_valid_sourceAddresses && ++ _describePublicAddressesResponseType->property_sourceAddresses && ++ ++ arg_sourceAddresses == (axis2_char_t*)axutil_array_list_get(_describePublicAddressesResponseType->property_sourceAddresses, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_sourceAddresses) ++ { ++ if(_describePublicAddressesResponseType->property_sourceAddresses != NULL) ++ { ++ size = axutil_array_list_size(_describePublicAddressesResponseType->property_sourceAddresses, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_describePublicAddressesResponseType->property_sourceAddresses, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of sourceAddresses is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_describePublicAddressesResponseType->property_sourceAddresses == NULL) ++ { ++ _describePublicAddressesResponseType->property_sourceAddresses = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_describePublicAddressesResponseType->property_sourceAddresses, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _describePublicAddressesResponseType->is_valid_sourceAddresses = AXIS2_FALSE; ++ axutil_array_list_set(_describePublicAddressesResponseType->property_sourceAddresses , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_describePublicAddressesResponseType->property_sourceAddresses , env, i, axutil_strdup(env, arg_sourceAddresses)); ++ _describePublicAddressesResponseType->is_valid_sourceAddresses = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to sourceAddresses. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_add_sourceAddresses( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_sourceAddresses) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_sourceAddresses) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_describePublicAddressesResponseType->property_sourceAddresses == NULL) ++ { ++ _describePublicAddressesResponseType->property_sourceAddresses = axutil_array_list_create(env, 10); ++ } ++ if(_describePublicAddressesResponseType->property_sourceAddresses == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for sourceAddresses"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_describePublicAddressesResponseType->property_sourceAddresses , env, axutil_strdup(env, arg_sourceAddresses)); ++ _describePublicAddressesResponseType->is_valid_sourceAddresses = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the sourceAddresses array. ++ */ ++ int AXIS2_CALL ++ adb_describePublicAddressesResponseType_sizeof_sourceAddresses( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, -1); ++ if(_describePublicAddressesResponseType->property_sourceAddresses == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_describePublicAddressesResponseType->property_sourceAddresses, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_remove_sourceAddresses_at( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_describePublicAddressesResponseType_set_sourceAddresses_nil_at(_describePublicAddressesResponseType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for sourceAddresses ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_reset_sourceAddresses( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ if (_describePublicAddressesResponseType->property_sourceAddresses != NULL) ++ { ++ count = axutil_array_list_size(_describePublicAddressesResponseType->property_sourceAddresses, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_describePublicAddressesResponseType->property_sourceAddresses, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_describePublicAddressesResponseType->property_sourceAddresses, env); ++ } ++ _describePublicAddressesResponseType->is_valid_sourceAddresses = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether sourceAddresses is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_is_sourceAddresses_nil( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_TRUE); ++ ++ return !_describePublicAddressesResponseType->is_valid_sourceAddresses; ++ } ++ ++ /** ++ * Set sourceAddresses to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_sourceAddresses_nil( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_describePublicAddressesResponseType_reset_sourceAddresses(_describePublicAddressesResponseType, env); ++ } ++ ++ ++ /** ++ * Check whether sourceAddresses is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_is_sourceAddresses_nil_at( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_TRUE); ++ ++ return (_describePublicAddressesResponseType->is_valid_sourceAddresses == AXIS2_FALSE || ++ NULL == _describePublicAddressesResponseType->property_sourceAddresses || ++ NULL == axutil_array_list_get(_describePublicAddressesResponseType->property_sourceAddresses, env, i)); ++ } ++ ++ /** ++ * Set sourceAddresses to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_sourceAddresses_nil_at( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE); ++ ++ if(_describePublicAddressesResponseType->property_sourceAddresses == NULL || ++ _describePublicAddressesResponseType->is_valid_sourceAddresses == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_describePublicAddressesResponseType->property_sourceAddresses, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_describePublicAddressesResponseType->property_sourceAddresses, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of sourceAddresses is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_describePublicAddressesResponseType->property_sourceAddresses == NULL) ++ { ++ _describePublicAddressesResponseType->is_valid_sourceAddresses = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_describePublicAddressesResponseType->property_sourceAddresses, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _describePublicAddressesResponseType->is_valid_sourceAddresses = AXIS2_FALSE; ++ axutil_array_list_set(_describePublicAddressesResponseType->property_sourceAddresses , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_describePublicAddressesResponseType->property_sourceAddresses , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ ++ /** ++ * getter for destAddresses. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_describePublicAddressesResponseType_get_destAddresses( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, NULL); ++ ++ ++ return _describePublicAddressesResponseType->property_destAddresses; ++ } ++ ++ /** ++ * setter for destAddresses ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_destAddresses( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_destAddresses) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE); ++ ++ if(_describePublicAddressesResponseType->is_valid_destAddresses && ++ arg_destAddresses == _describePublicAddressesResponseType->property_destAddresses) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_destAddresses, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "destAddresses has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_destAddresses, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_describePublicAddressesResponseType_reset_destAddresses(_describePublicAddressesResponseType, env); ++ ++ ++ if(NULL == arg_destAddresses) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describePublicAddressesResponseType->property_destAddresses = arg_destAddresses; ++ if(non_nil_exists) ++ { ++ _describePublicAddressesResponseType->is_valid_destAddresses = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of destAddresses. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describePublicAddressesResponseType_get_destAddresses_at( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ axis2_char_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, NULL); ++ ++ ++ if(_describePublicAddressesResponseType->property_destAddresses == NULL) ++ { ++ return (axis2_char_t*)0; ++ } ++ ret_val = (axis2_char_t*)axutil_array_list_get(_describePublicAddressesResponseType->property_destAddresses, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of destAddresses. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_destAddresses_at( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_destAddresses) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE); ++ ++ if( _describePublicAddressesResponseType->is_valid_destAddresses && ++ _describePublicAddressesResponseType->property_destAddresses && ++ ++ arg_destAddresses == (axis2_char_t*)axutil_array_list_get(_describePublicAddressesResponseType->property_destAddresses, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_destAddresses) ++ { ++ if(_describePublicAddressesResponseType->property_destAddresses != NULL) ++ { ++ size = axutil_array_list_size(_describePublicAddressesResponseType->property_destAddresses, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_describePublicAddressesResponseType->property_destAddresses, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of destAddresses is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_describePublicAddressesResponseType->property_destAddresses == NULL) ++ { ++ _describePublicAddressesResponseType->property_destAddresses = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_describePublicAddressesResponseType->property_destAddresses, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _describePublicAddressesResponseType->is_valid_destAddresses = AXIS2_FALSE; ++ axutil_array_list_set(_describePublicAddressesResponseType->property_destAddresses , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_describePublicAddressesResponseType->property_destAddresses , env, i, axutil_strdup(env, arg_destAddresses)); ++ _describePublicAddressesResponseType->is_valid_destAddresses = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to destAddresses. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_add_destAddresses( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_destAddresses) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_destAddresses) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_describePublicAddressesResponseType->property_destAddresses == NULL) ++ { ++ _describePublicAddressesResponseType->property_destAddresses = axutil_array_list_create(env, 10); ++ } ++ if(_describePublicAddressesResponseType->property_destAddresses == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for destAddresses"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_describePublicAddressesResponseType->property_destAddresses , env, axutil_strdup(env, arg_destAddresses)); ++ _describePublicAddressesResponseType->is_valid_destAddresses = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the destAddresses array. ++ */ ++ int AXIS2_CALL ++ adb_describePublicAddressesResponseType_sizeof_destAddresses( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, -1); ++ if(_describePublicAddressesResponseType->property_destAddresses == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_describePublicAddressesResponseType->property_destAddresses, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_remove_destAddresses_at( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_describePublicAddressesResponseType_set_destAddresses_nil_at(_describePublicAddressesResponseType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for destAddresses ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_reset_destAddresses( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ if (_describePublicAddressesResponseType->property_destAddresses != NULL) ++ { ++ count = axutil_array_list_size(_describePublicAddressesResponseType->property_destAddresses, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_describePublicAddressesResponseType->property_destAddresses, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_describePublicAddressesResponseType->property_destAddresses, env); ++ } ++ _describePublicAddressesResponseType->is_valid_destAddresses = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether destAddresses is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_is_destAddresses_nil( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_TRUE); ++ ++ return !_describePublicAddressesResponseType->is_valid_destAddresses; ++ } ++ ++ /** ++ * Set destAddresses to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_destAddresses_nil( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_describePublicAddressesResponseType_reset_destAddresses(_describePublicAddressesResponseType, env); ++ } ++ ++ ++ /** ++ * Check whether destAddresses is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_is_destAddresses_nil_at( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_TRUE); ++ ++ return (_describePublicAddressesResponseType->is_valid_destAddresses == AXIS2_FALSE || ++ NULL == _describePublicAddressesResponseType->property_destAddresses || ++ NULL == axutil_array_list_get(_describePublicAddressesResponseType->property_destAddresses, env, i)); ++ } ++ ++ /** ++ * Set destAddresses to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_destAddresses_nil_at( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE); ++ ++ if(_describePublicAddressesResponseType->property_destAddresses == NULL || ++ _describePublicAddressesResponseType->is_valid_destAddresses == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_describePublicAddressesResponseType->property_destAddresses, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_describePublicAddressesResponseType->property_destAddresses, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of destAddresses is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_describePublicAddressesResponseType->property_destAddresses == NULL) ++ { ++ _describePublicAddressesResponseType->is_valid_destAddresses = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_describePublicAddressesResponseType->property_destAddresses, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _describePublicAddressesResponseType->is_valid_destAddresses = AXIS2_FALSE; ++ axutil_array_list_set(_describePublicAddressesResponseType->property_destAddresses , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_describePublicAddressesResponseType->property_destAddresses , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_describePublicAddressesResponseType.h' +--- old/cluster/generated/adb_describePublicAddressesResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_describePublicAddressesResponseType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,682 @@ ++ ++ ++ #ifndef ADB_DESCRIBEPUBLICADDRESSESRESPONSETYPE_H ++ #define ADB_DESCRIBEPUBLICADDRESSESRESPONSETYPE_H ++ ++ /** ++ * adb_describePublicAddressesResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_describePublicAddressesResponseType class ++ */ ++ typedef struct adb_describePublicAddressesResponseType adb_describePublicAddressesResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_describePublicAddressesResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_describePublicAddressesResponseType_t object ++ */ ++ adb_describePublicAddressesResponseType_t* AXIS2_CALL ++ adb_describePublicAddressesResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_describePublicAddressesResponseType_t object ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_free ( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describePublicAddressesResponseType_get_correlationId( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_correlationId( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_reset_correlationId( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describePublicAddressesResponseType_get_userId( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_userId( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_reset_userId( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describePublicAddressesResponseType_get_statusMessage( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_statusMessage( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_reset_statusMessage( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_get_return( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_return( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_reset_return( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for sourceAddresses. Deprecated for array types, Use adb_describePublicAddressesResponseType_get_sourceAddresses_at instead ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @return Array of axis2_char_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_describePublicAddressesResponseType_get_sourceAddresses( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for sourceAddresses.Deprecated for array types, Use adb_describePublicAddressesResponseType_set_sourceAddresses_at ++ * or adb_describePublicAddressesResponseType_add_sourceAddresses instead. ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_sourceAddresses Array of axis2_char_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_sourceAddresses( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_sourceAddresses); ++ ++ /** ++ * Resetter for sourceAddresses ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_reset_sourceAddresses( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for destAddresses. Deprecated for array types, Use adb_describePublicAddressesResponseType_get_destAddresses_at instead ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @return Array of axis2_char_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_describePublicAddressesResponseType_get_destAddresses( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for destAddresses.Deprecated for array types, Use adb_describePublicAddressesResponseType_set_destAddresses_at ++ * or adb_describePublicAddressesResponseType_add_destAddresses instead. ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_destAddresses Array of axis2_char_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_destAddresses( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_destAddresses); ++ ++ /** ++ * Resetter for destAddresses ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_reset_destAddresses( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of sourceAddresses. ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describePublicAddressesResponseType_get_sourceAddresses_at( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of sourceAddresses. (If the ith already exist, it will be replaced) ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_sourceAddresses element to set axis2_char_t* to the array ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_sourceAddresses_at( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_sourceAddresses); ++ ++ ++ /** ++ * Add to sourceAddresses. ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_sourceAddresses element to add axis2_char_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_add_sourceAddresses( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_sourceAddresses); ++ ++ /** ++ * Get the size of the sourceAddresses array. ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the sourceAddresses array. ++ */ ++ int AXIS2_CALL ++ adb_describePublicAddressesResponseType_sizeof_sourceAddresses( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of sourceAddresses. ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_remove_sourceAddresses_at( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /** ++ * Get the ith element of destAddresses. ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describePublicAddressesResponseType_get_destAddresses_at( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of destAddresses. (If the ith already exist, it will be replaced) ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_destAddresses element to set axis2_char_t* to the array ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_destAddresses_at( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_destAddresses); ++ ++ ++ /** ++ * Add to destAddresses. ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_destAddresses element to add axis2_char_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_add_destAddresses( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_destAddresses); ++ ++ /** ++ * Get the size of the destAddresses array. ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the destAddresses array. ++ */ ++ int AXIS2_CALL ++ adb_describePublicAddressesResponseType_sizeof_destAddresses( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of destAddresses. ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_remove_destAddresses_at( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_is_correlationId_nil( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_is_userId_nil( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_is_statusMessage_nil( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_statusMessage_nil( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_is_return_nil( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether sourceAddresses is nill ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_is_sourceAddresses_nil( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether destAddresses is nill ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_is_destAddresses_nil( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether sourceAddresses is nill at i ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_is_sourceAddresses_nil_at( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set sourceAddresses to nill at i ++ * @param _describePublicAddressesResponseType _ adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_sourceAddresses_nil_at( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Check whether destAddresses is nill at i ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_is_destAddresses_nil_at( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set destAddresses to nill at i ++ * @param _describePublicAddressesResponseType _ adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_set_destAddresses_nil_at( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_deserialize( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_describePublicAddressesResponseType_declare_parent_namespaces( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object ++ * @param env pointer to environment struct ++ * @param describePublicAddressesResponseType_om_node node to serialize from ++ * @param describePublicAddressesResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_describePublicAddressesResponseType_serialize( ++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* describePublicAddressesResponseType_om_node, axiom_element_t *describePublicAddressesResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_describePublicAddressesResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_DESCRIBEPUBLICADDRESSESRESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_describePublicAddressesType.c' +--- old/cluster/generated/adb_describePublicAddressesType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_describePublicAddressesType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,1401 @@ ++ ++ ++ /** ++ * adb_describePublicAddressesType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_describePublicAddressesType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = describePublicAddressesType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_describePublicAddressesType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_set_correlationId_nil( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_set_userId_nil( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_set_return_nil( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_describePublicAddressesType_t* AXIS2_CALL ++ adb_describePublicAddressesType_create( ++ const axutil_env_t *env) ++ { ++ adb_describePublicAddressesType_t *_describePublicAddressesType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _describePublicAddressesType = (adb_describePublicAddressesType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_describePublicAddressesType_t)); ++ ++ if(NULL == _describePublicAddressesType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_describePublicAddressesType, 0, sizeof(adb_describePublicAddressesType_t)); ++ ++ _describePublicAddressesType->property_correlationId = NULL; ++ _describePublicAddressesType->is_valid_correlationId = AXIS2_FALSE; ++ _describePublicAddressesType->property_userId = NULL; ++ _describePublicAddressesType->is_valid_userId = AXIS2_FALSE; ++ _describePublicAddressesType->property_statusMessage = NULL; ++ _describePublicAddressesType->is_valid_statusMessage = AXIS2_FALSE; ++ _describePublicAddressesType->is_valid_return = AXIS2_FALSE; ++ ++ ++ return _describePublicAddressesType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_free ( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_FAILURE); ++ ++ adb_describePublicAddressesType_reset_correlationId(_describePublicAddressesType, env); ++ adb_describePublicAddressesType_reset_userId(_describePublicAddressesType, env); ++ adb_describePublicAddressesType_reset_statusMessage(_describePublicAddressesType, env); ++ adb_describePublicAddressesType_reset_return(_describePublicAddressesType, env); ++ ++ ++ if(_describePublicAddressesType) ++ { ++ AXIS2_FREE(env->allocator, _describePublicAddressesType); ++ _describePublicAddressesType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_deserialize( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for describePublicAddressesType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describePublicAddressesType_set_correlationId(_describePublicAddressesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_describePublicAddressesType_set_correlationId(_describePublicAddressesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describePublicAddressesType_set_userId(_describePublicAddressesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_describePublicAddressesType_set_userId(_describePublicAddressesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describePublicAddressesType_set_statusMessage(_describePublicAddressesType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_describePublicAddressesType_set_return(_describePublicAddressesType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_describePublicAddressesType_set_return(_describePublicAddressesType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_describePublicAddressesType_declare_parent_namespaces( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_describePublicAddressesType_serialize( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describePublicAddressesType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _describePublicAddressesType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describePublicAddressesType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _describePublicAddressesType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describePublicAddressesType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _describePublicAddressesType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describePublicAddressesType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_describePublicAddressesType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describePublicAddressesType_get_correlationId( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, NULL); ++ ++ ++ return _describePublicAddressesType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_set_correlationId( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_FAILURE); ++ ++ if(_describePublicAddressesType->is_valid_correlationId && ++ arg_correlationId == _describePublicAddressesType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describePublicAddressesType_reset_correlationId(_describePublicAddressesType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describePublicAddressesType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _describePublicAddressesType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _describePublicAddressesType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_reset_correlationId( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describePublicAddressesType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describePublicAddressesType->property_correlationId); ++ _describePublicAddressesType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _describePublicAddressesType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesType_is_correlationId_nil( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_TRUE); ++ ++ return !_describePublicAddressesType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_set_correlationId_nil( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env) ++ { ++ return adb_describePublicAddressesType_reset_correlationId(_describePublicAddressesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describePublicAddressesType_get_userId( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, NULL); ++ ++ ++ return _describePublicAddressesType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_set_userId( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_FAILURE); ++ ++ if(_describePublicAddressesType->is_valid_userId && ++ arg_userId == _describePublicAddressesType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describePublicAddressesType_reset_userId(_describePublicAddressesType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describePublicAddressesType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _describePublicAddressesType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _describePublicAddressesType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_reset_userId( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describePublicAddressesType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describePublicAddressesType->property_userId); ++ _describePublicAddressesType->property_userId = NULL; ++ } ++ ++ ++ ++ _describePublicAddressesType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesType_is_userId_nil( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_TRUE); ++ ++ return !_describePublicAddressesType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_set_userId_nil( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env) ++ { ++ return adb_describePublicAddressesType_reset_userId(_describePublicAddressesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describePublicAddressesType_get_statusMessage( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, NULL); ++ ++ ++ return _describePublicAddressesType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_set_statusMessage( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_FAILURE); ++ ++ if(_describePublicAddressesType->is_valid_statusMessage && ++ arg_statusMessage == _describePublicAddressesType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describePublicAddressesType_reset_statusMessage(_describePublicAddressesType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describePublicAddressesType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _describePublicAddressesType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _describePublicAddressesType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_reset_statusMessage( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describePublicAddressesType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describePublicAddressesType->property_statusMessage); ++ _describePublicAddressesType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _describePublicAddressesType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesType_is_statusMessage_nil( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_TRUE); ++ ++ return !_describePublicAddressesType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_set_statusMessage_nil( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env) ++ { ++ return adb_describePublicAddressesType_reset_statusMessage(_describePublicAddressesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesType_get_return( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, (axis2_bool_t)0); ++ ++ ++ return _describePublicAddressesType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_set_return( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_FAILURE); ++ ++ if(_describePublicAddressesType->is_valid_return && ++ arg_return == _describePublicAddressesType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describePublicAddressesType_reset_return(_describePublicAddressesType, env); ++ ++ _describePublicAddressesType->property_return = arg_return; ++ _describePublicAddressesType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_reset_return( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_FAILURE); ++ ++ ++ _describePublicAddressesType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesType_is_return_nil( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_TRUE); ++ ++ return !_describePublicAddressesType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_set_return_nil( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env) ++ { ++ return adb_describePublicAddressesType_reset_return(_describePublicAddressesType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_describePublicAddressesType.h' +--- old/cluster/generated/adb_describePublicAddressesType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_describePublicAddressesType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,362 @@ ++ ++ ++ #ifndef ADB_DESCRIBEPUBLICADDRESSESTYPE_H ++ #define ADB_DESCRIBEPUBLICADDRESSESTYPE_H ++ ++ /** ++ * adb_describePublicAddressesType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_describePublicAddressesType class ++ */ ++ typedef struct adb_describePublicAddressesType adb_describePublicAddressesType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_describePublicAddressesType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_describePublicAddressesType_t object ++ */ ++ adb_describePublicAddressesType_t* AXIS2_CALL ++ adb_describePublicAddressesType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_describePublicAddressesType_t object ++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_free ( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describePublicAddressesType_get_correlationId( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_set_correlationId( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_reset_correlationId( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describePublicAddressesType_get_userId( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_set_userId( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_reset_userId( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describePublicAddressesType_get_statusMessage( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_set_statusMessage( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_reset_statusMessage( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesType_get_return( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_set_return( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_reset_return( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesType_is_correlationId_nil( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesType_is_userId_nil( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesType_is_statusMessage_nil( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_set_statusMessage_nil( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesType_is_return_nil( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describePublicAddressesType_deserialize( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_describePublicAddressesType_declare_parent_namespaces( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object ++ * @param env pointer to environment struct ++ * @param describePublicAddressesType_om_node node to serialize from ++ * @param describePublicAddressesType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_describePublicAddressesType_serialize( ++ adb_describePublicAddressesType_t* _describePublicAddressesType, ++ const axutil_env_t *env, ++ axiom_node_t* describePublicAddressesType_om_node, axiom_element_t *describePublicAddressesType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_describePublicAddressesType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describePublicAddressesType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_DESCRIBEPUBLICADDRESSESTYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_describeResourcesResponseType.c' +--- old/cluster/generated/adb_describeResourcesResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_describeResourcesResponseType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,2779 @@ ++ ++ ++ /** ++ * adb_describeResourcesResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_describeResourcesResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = describeResourcesResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_describeResourcesResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ axutil_array_list_t* property_resources; ++ ++ ++ axis2_bool_t is_valid_resources; ++ ++ ++ axutil_array_list_t* property_serviceTags; ++ ++ ++ axis2_bool_t is_valid_serviceTags; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_correlationId_nil( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_userId_nil( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_return_nil( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_serviceTags_nil_at( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_serviceTags_nil( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_describeResourcesResponseType_t* AXIS2_CALL ++ adb_describeResourcesResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_describeResourcesResponseType_t *_describeResourcesResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _describeResourcesResponseType = (adb_describeResourcesResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_describeResourcesResponseType_t)); ++ ++ if(NULL == _describeResourcesResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_describeResourcesResponseType, 0, sizeof(adb_describeResourcesResponseType_t)); ++ ++ _describeResourcesResponseType->property_correlationId = NULL; ++ _describeResourcesResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _describeResourcesResponseType->property_userId = NULL; ++ _describeResourcesResponseType->is_valid_userId = AXIS2_FALSE; ++ _describeResourcesResponseType->property_statusMessage = NULL; ++ _describeResourcesResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _describeResourcesResponseType->is_valid_return = AXIS2_FALSE; ++ _describeResourcesResponseType->property_resources = NULL; ++ _describeResourcesResponseType->is_valid_resources = AXIS2_FALSE; ++ _describeResourcesResponseType->property_serviceTags = NULL; ++ _describeResourcesResponseType->is_valid_serviceTags = AXIS2_FALSE; ++ ++ ++ return _describeResourcesResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_free ( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE); ++ ++ adb_describeResourcesResponseType_reset_correlationId(_describeResourcesResponseType, env); ++ adb_describeResourcesResponseType_reset_userId(_describeResourcesResponseType, env); ++ adb_describeResourcesResponseType_reset_statusMessage(_describeResourcesResponseType, env); ++ adb_describeResourcesResponseType_reset_return(_describeResourcesResponseType, env); ++ adb_describeResourcesResponseType_reset_resources(_describeResourcesResponseType, env); ++ adb_describeResourcesResponseType_reset_serviceTags(_describeResourcesResponseType, env); ++ ++ ++ if(_describeResourcesResponseType) ++ { ++ AXIS2_FREE(env->allocator, _describeResourcesResponseType); ++ _describeResourcesResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_deserialize( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for describeResourcesResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describeResourcesResponseType_set_correlationId(_describeResourcesResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_describeResourcesResponseType_set_correlationId(_describeResourcesResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describeResourcesResponseType_set_userId(_describeResourcesResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_describeResourcesResponseType_set_userId(_describeResourcesResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describeResourcesResponseType_set_statusMessage(_describeResourcesResponseType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_describeResourcesResponseType_set_return(_describeResourcesResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_describeResourcesResponseType_set_return(_describeResourcesResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building resources array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building resources element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "resources", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ element = (void*)adb_ccResourceType_create(env); ++ ++ status = adb_ccResourceType_deserialize((adb_ccResourceType_t*)element, env, ++ ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building element resources "); ++ } ++ else ++ { ++ axutil_array_list_add_at(arr_list, env, i, element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for resources "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "resources (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_describeResourcesResponseType_set_resources(_describeResourcesResponseType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building serviceTags array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building serviceTags element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "serviceTags", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value)); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element serviceTags"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, "")); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for serviceTags "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "serviceTags (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_describeResourcesResponseType_set_serviceTags(_describeResourcesResponseType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_describeResourcesResponseType_declare_parent_namespaces( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_describeResourcesResponseType_serialize( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t text_value_5[64]; ++ ++ axis2_char_t *text_value_6; ++ axis2_char_t *text_value_6_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeResourcesResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _describeResourcesResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeResourcesResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _describeResourcesResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeResourcesResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _describeResourcesResponseType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeResourcesResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_describeResourcesResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeResourcesResponseType->is_valid_resources) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("resources"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("resources"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing resources array ++ */ ++ if (_describeResourcesResponseType->property_resources != NULL) ++ { ++ ++ ++ sprintf(start_input_str, "<%s%sresources", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_describeResourcesResponseType->property_resources, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_describeResourcesResponseType->property_resources, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing resources element ++ */ ++ ++ ++ ++ if(!adb_ccResourceType_is_particle()) ++ { ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ } ++ ++ adb_ccResourceType_serialize((adb_ccResourceType_t*)element, ++ env, current_node, parent_element, ++ adb_ccResourceType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index); ++ ++ if(!adb_ccResourceType_is_particle()) ++ { ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ } ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeResourcesResponseType->is_valid_serviceTags) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("serviceTags"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("serviceTags"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing serviceTags array ++ */ ++ if (_describeResourcesResponseType->property_serviceTags != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%sserviceTags>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_describeResourcesResponseType->property_serviceTags, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_describeResourcesResponseType->property_serviceTags, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing serviceTags element ++ */ ++ ++ ++ ++ text_value_6 = (axis2_char_t*)element; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE); ++ if (text_value_6_temp) ++ { ++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp)); ++ AXIS2_FREE(env->allocator, text_value_6_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeResourcesResponseType_get_correlationId( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, NULL); ++ ++ ++ return _describeResourcesResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_correlationId( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE); ++ ++ if(_describeResourcesResponseType->is_valid_correlationId && ++ arg_correlationId == _describeResourcesResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeResourcesResponseType_reset_correlationId(_describeResourcesResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeResourcesResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _describeResourcesResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _describeResourcesResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_reset_correlationId( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describeResourcesResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describeResourcesResponseType->property_correlationId); ++ _describeResourcesResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _describeResourcesResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesResponseType_is_correlationId_nil( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_TRUE); ++ ++ return !_describeResourcesResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_correlationId_nil( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_describeResourcesResponseType_reset_correlationId(_describeResourcesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeResourcesResponseType_get_userId( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, NULL); ++ ++ ++ return _describeResourcesResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_userId( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE); ++ ++ if(_describeResourcesResponseType->is_valid_userId && ++ arg_userId == _describeResourcesResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeResourcesResponseType_reset_userId(_describeResourcesResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeResourcesResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _describeResourcesResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _describeResourcesResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_reset_userId( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describeResourcesResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describeResourcesResponseType->property_userId); ++ _describeResourcesResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _describeResourcesResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesResponseType_is_userId_nil( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_TRUE); ++ ++ return !_describeResourcesResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_userId_nil( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_describeResourcesResponseType_reset_userId(_describeResourcesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeResourcesResponseType_get_statusMessage( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, NULL); ++ ++ ++ return _describeResourcesResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_statusMessage( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE); ++ ++ if(_describeResourcesResponseType->is_valid_statusMessage && ++ arg_statusMessage == _describeResourcesResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeResourcesResponseType_reset_statusMessage(_describeResourcesResponseType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeResourcesResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _describeResourcesResponseType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _describeResourcesResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_reset_statusMessage( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describeResourcesResponseType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describeResourcesResponseType->property_statusMessage); ++ _describeResourcesResponseType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _describeResourcesResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesResponseType_is_statusMessage_nil( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_TRUE); ++ ++ return !_describeResourcesResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_statusMessage_nil( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_describeResourcesResponseType_reset_statusMessage(_describeResourcesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesResponseType_get_return( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, (axis2_bool_t)0); ++ ++ ++ return _describeResourcesResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_return( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE); ++ ++ if(_describeResourcesResponseType->is_valid_return && ++ arg_return == _describeResourcesResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeResourcesResponseType_reset_return(_describeResourcesResponseType, env); ++ ++ _describeResourcesResponseType->property_return = arg_return; ++ _describeResourcesResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_reset_return( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE); ++ ++ ++ _describeResourcesResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesResponseType_is_return_nil( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_TRUE); ++ ++ return !_describeResourcesResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_return_nil( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_describeResourcesResponseType_reset_return(_describeResourcesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for resources. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_describeResourcesResponseType_get_resources( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, NULL); ++ ++ ++ return _describeResourcesResponseType->property_resources; ++ } ++ ++ /** ++ * setter for resources ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_resources( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_resources) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE); ++ ++ if(_describeResourcesResponseType->is_valid_resources && ++ arg_resources == _describeResourcesResponseType->property_resources) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_resources, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "resources has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_resources, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_describeResourcesResponseType_reset_resources(_describeResourcesResponseType, env); ++ ++ ++ if(NULL == arg_resources) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeResourcesResponseType->property_resources = arg_resources; ++ if(non_nil_exists) ++ { ++ _describeResourcesResponseType->is_valid_resources = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of resources. ++ */ ++ adb_ccResourceType_t* AXIS2_CALL ++ adb_describeResourcesResponseType_get_resources_at( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ adb_ccResourceType_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, NULL); ++ ++ ++ if(_describeResourcesResponseType->property_resources == NULL) ++ { ++ return (adb_ccResourceType_t*)0; ++ } ++ ret_val = (adb_ccResourceType_t*)axutil_array_list_get(_describeResourcesResponseType->property_resources, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of resources. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_resources_at( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, int i, ++ adb_ccResourceType_t* arg_resources) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE); ++ ++ if( _describeResourcesResponseType->is_valid_resources && ++ _describeResourcesResponseType->property_resources && ++ ++ arg_resources == (adb_ccResourceType_t*)axutil_array_list_get(_describeResourcesResponseType->property_resources, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_resources) ++ { ++ if(_describeResourcesResponseType->property_resources != NULL) ++ { ++ size = axutil_array_list_size(_describeResourcesResponseType->property_resources, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_describeResourcesResponseType->property_resources, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of resources is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_describeResourcesResponseType->property_resources == NULL) ++ { ++ _describeResourcesResponseType->property_resources = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_describeResourcesResponseType->property_resources, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ adb_ccResourceType_free((adb_ccResourceType_t*)element, env); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _describeResourcesResponseType->is_valid_resources = AXIS2_FALSE; ++ axutil_array_list_set(_describeResourcesResponseType->property_resources , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_describeResourcesResponseType->property_resources , env, i, arg_resources); ++ _describeResourcesResponseType->is_valid_resources = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to resources. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_add_resources( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, ++ adb_ccResourceType_t* arg_resources) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_resources) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_describeResourcesResponseType->property_resources == NULL) ++ { ++ _describeResourcesResponseType->property_resources = axutil_array_list_create(env, 10); ++ } ++ if(_describeResourcesResponseType->property_resources == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for resources"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_describeResourcesResponseType->property_resources , env, arg_resources); ++ _describeResourcesResponseType->is_valid_resources = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the resources array. ++ */ ++ int AXIS2_CALL ++ adb_describeResourcesResponseType_sizeof_resources( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, -1); ++ if(_describeResourcesResponseType->property_resources == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_describeResourcesResponseType->property_resources, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_remove_resources_at( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_describeResourcesResponseType_set_resources_nil_at(_describeResourcesResponseType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for resources ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_reset_resources( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ if (_describeResourcesResponseType->property_resources != NULL) ++ { ++ count = axutil_array_list_size(_describeResourcesResponseType->property_resources, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_describeResourcesResponseType->property_resources, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ adb_ccResourceType_free((adb_ccResourceType_t*)element, env); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_describeResourcesResponseType->property_resources, env); ++ } ++ _describeResourcesResponseType->is_valid_resources = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether resources is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesResponseType_is_resources_nil( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_TRUE); ++ ++ return !_describeResourcesResponseType->is_valid_resources; ++ } ++ ++ /** ++ * Set resources to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_resources_nil( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_describeResourcesResponseType_reset_resources(_describeResourcesResponseType, env); ++ } ++ ++ ++ /** ++ * Check whether resources is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesResponseType_is_resources_nil_at( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_TRUE); ++ ++ return (_describeResourcesResponseType->is_valid_resources == AXIS2_FALSE || ++ NULL == _describeResourcesResponseType->property_resources || ++ NULL == axutil_array_list_get(_describeResourcesResponseType->property_resources, env, i)); ++ } ++ ++ /** ++ * Set resources to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_resources_nil_at( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE); ++ ++ if(_describeResourcesResponseType->property_resources == NULL || ++ _describeResourcesResponseType->is_valid_resources == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_describeResourcesResponseType->property_resources, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_describeResourcesResponseType->property_resources, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of resources is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_describeResourcesResponseType->property_resources == NULL) ++ { ++ _describeResourcesResponseType->is_valid_resources = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_describeResourcesResponseType->property_resources, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ adb_ccResourceType_free((adb_ccResourceType_t*)element, env); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _describeResourcesResponseType->is_valid_resources = AXIS2_FALSE; ++ axutil_array_list_set(_describeResourcesResponseType->property_resources , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_describeResourcesResponseType->property_resources , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ ++ /** ++ * getter for serviceTags. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_describeResourcesResponseType_get_serviceTags( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, NULL); ++ ++ ++ return _describeResourcesResponseType->property_serviceTags; ++ } ++ ++ /** ++ * setter for serviceTags ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_serviceTags( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_serviceTags) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE); ++ ++ if(_describeResourcesResponseType->is_valid_serviceTags && ++ arg_serviceTags == _describeResourcesResponseType->property_serviceTags) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_serviceTags, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "serviceTags has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_serviceTags, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_describeResourcesResponseType_reset_serviceTags(_describeResourcesResponseType, env); ++ ++ ++ if(NULL == arg_serviceTags) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeResourcesResponseType->property_serviceTags = arg_serviceTags; ++ if(non_nil_exists) ++ { ++ _describeResourcesResponseType->is_valid_serviceTags = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of serviceTags. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeResourcesResponseType_get_serviceTags_at( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ axis2_char_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, NULL); ++ ++ ++ if(_describeResourcesResponseType->property_serviceTags == NULL) ++ { ++ return (axis2_char_t*)0; ++ } ++ ret_val = (axis2_char_t*)axutil_array_list_get(_describeResourcesResponseType->property_serviceTags, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of serviceTags. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_serviceTags_at( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_serviceTags) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE); ++ ++ if( _describeResourcesResponseType->is_valid_serviceTags && ++ _describeResourcesResponseType->property_serviceTags && ++ ++ arg_serviceTags == (axis2_char_t*)axutil_array_list_get(_describeResourcesResponseType->property_serviceTags, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_serviceTags) ++ { ++ if(_describeResourcesResponseType->property_serviceTags != NULL) ++ { ++ size = axutil_array_list_size(_describeResourcesResponseType->property_serviceTags, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_describeResourcesResponseType->property_serviceTags, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of serviceTags is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_describeResourcesResponseType->property_serviceTags == NULL) ++ { ++ _describeResourcesResponseType->property_serviceTags = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_describeResourcesResponseType->property_serviceTags, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _describeResourcesResponseType->is_valid_serviceTags = AXIS2_FALSE; ++ axutil_array_list_set(_describeResourcesResponseType->property_serviceTags , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_describeResourcesResponseType->property_serviceTags , env, i, axutil_strdup(env, arg_serviceTags)); ++ _describeResourcesResponseType->is_valid_serviceTags = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to serviceTags. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_add_serviceTags( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_serviceTags) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_serviceTags) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_describeResourcesResponseType->property_serviceTags == NULL) ++ { ++ _describeResourcesResponseType->property_serviceTags = axutil_array_list_create(env, 10); ++ } ++ if(_describeResourcesResponseType->property_serviceTags == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for serviceTags"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_describeResourcesResponseType->property_serviceTags , env, axutil_strdup(env, arg_serviceTags)); ++ _describeResourcesResponseType->is_valid_serviceTags = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the serviceTags array. ++ */ ++ int AXIS2_CALL ++ adb_describeResourcesResponseType_sizeof_serviceTags( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, -1); ++ if(_describeResourcesResponseType->property_serviceTags == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_describeResourcesResponseType->property_serviceTags, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_remove_serviceTags_at( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_describeResourcesResponseType_set_serviceTags_nil_at(_describeResourcesResponseType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for serviceTags ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_reset_serviceTags( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ if (_describeResourcesResponseType->property_serviceTags != NULL) ++ { ++ count = axutil_array_list_size(_describeResourcesResponseType->property_serviceTags, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_describeResourcesResponseType->property_serviceTags, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_describeResourcesResponseType->property_serviceTags, env); ++ } ++ _describeResourcesResponseType->is_valid_serviceTags = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether serviceTags is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesResponseType_is_serviceTags_nil( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_TRUE); ++ ++ return !_describeResourcesResponseType->is_valid_serviceTags; ++ } ++ ++ /** ++ * Set serviceTags to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_serviceTags_nil( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_describeResourcesResponseType_reset_serviceTags(_describeResourcesResponseType, env); ++ } ++ ++ ++ /** ++ * Check whether serviceTags is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesResponseType_is_serviceTags_nil_at( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_TRUE); ++ ++ return (_describeResourcesResponseType->is_valid_serviceTags == AXIS2_FALSE || ++ NULL == _describeResourcesResponseType->property_serviceTags || ++ NULL == axutil_array_list_get(_describeResourcesResponseType->property_serviceTags, env, i)); ++ } ++ ++ /** ++ * Set serviceTags to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_serviceTags_nil_at( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE); ++ ++ if(_describeResourcesResponseType->property_serviceTags == NULL || ++ _describeResourcesResponseType->is_valid_serviceTags == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_describeResourcesResponseType->property_serviceTags, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_describeResourcesResponseType->property_serviceTags, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of serviceTags is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_describeResourcesResponseType->property_serviceTags == NULL) ++ { ++ _describeResourcesResponseType->is_valid_serviceTags = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_describeResourcesResponseType->property_serviceTags, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _describeResourcesResponseType->is_valid_serviceTags = AXIS2_FALSE; ++ axutil_array_list_set(_describeResourcesResponseType->property_serviceTags , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_describeResourcesResponseType->property_serviceTags , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_describeResourcesResponseType.h' +--- old/cluster/generated/adb_describeResourcesResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_describeResourcesResponseType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,695 @@ ++ ++ ++ #ifndef ADB_DESCRIBERESOURCESRESPONSETYPE_H ++ #define ADB_DESCRIBERESOURCESRESPONSETYPE_H ++ ++ /** ++ * adb_describeResourcesResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_describeResourcesResponseType class ++ */ ++ typedef struct adb_describeResourcesResponseType adb_describeResourcesResponseType_t; ++ ++ ++ #include "adb_ccResourceType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_describeResourcesResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_describeResourcesResponseType_t object ++ */ ++ adb_describeResourcesResponseType_t* AXIS2_CALL ++ adb_describeResourcesResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_describeResourcesResponseType_t object ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_free ( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeResourcesResponseType_get_correlationId( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_correlationId( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_reset_correlationId( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeResourcesResponseType_get_userId( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_userId( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_reset_userId( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeResourcesResponseType_get_statusMessage( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_statusMessage( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_reset_statusMessage( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesResponseType_get_return( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_return( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_reset_return( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for resources. Deprecated for array types, Use adb_describeResourcesResponseType_get_resources_at instead ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @return Array of adb_ccResourceType_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_describeResourcesResponseType_get_resources( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for resources.Deprecated for array types, Use adb_describeResourcesResponseType_set_resources_at ++ * or adb_describeResourcesResponseType_add_resources instead. ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_resources Array of adb_ccResourceType_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_resources( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_resources); ++ ++ /** ++ * Resetter for resources ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_reset_resources( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for serviceTags. Deprecated for array types, Use adb_describeResourcesResponseType_get_serviceTags_at instead ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @return Array of axis2_char_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_describeResourcesResponseType_get_serviceTags( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for serviceTags.Deprecated for array types, Use adb_describeResourcesResponseType_set_serviceTags_at ++ * or adb_describeResourcesResponseType_add_serviceTags instead. ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_serviceTags Array of axis2_char_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_serviceTags( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_serviceTags); ++ ++ /** ++ * Resetter for serviceTags ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_reset_serviceTags( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of resources. ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith adb_ccResourceType_t* of the array ++ */ ++ adb_ccResourceType_t* AXIS2_CALL ++ adb_describeResourcesResponseType_get_resources_at( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of resources. (If the ith already exist, it will be replaced) ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_resources element to set adb_ccResourceType_t* to the array ++ * @return ith adb_ccResourceType_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_resources_at( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, int i, ++ adb_ccResourceType_t* arg_resources); ++ ++ ++ /** ++ * Add to resources. ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_resources element to add adb_ccResourceType_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_add_resources( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, ++ adb_ccResourceType_t* arg_resources); ++ ++ /** ++ * Get the size of the resources array. ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the resources array. ++ */ ++ int AXIS2_CALL ++ adb_describeResourcesResponseType_sizeof_resources( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of resources. ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_remove_resources_at( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /** ++ * Get the ith element of serviceTags. ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeResourcesResponseType_get_serviceTags_at( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of serviceTags. (If the ith already exist, it will be replaced) ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_serviceTags element to set axis2_char_t* to the array ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_serviceTags_at( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_serviceTags); ++ ++ ++ /** ++ * Add to serviceTags. ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_serviceTags element to add axis2_char_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_add_serviceTags( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_serviceTags); ++ ++ /** ++ * Get the size of the serviceTags array. ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the serviceTags array. ++ */ ++ int AXIS2_CALL ++ adb_describeResourcesResponseType_sizeof_serviceTags( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of serviceTags. ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_remove_serviceTags_at( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesResponseType_is_correlationId_nil( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesResponseType_is_userId_nil( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesResponseType_is_statusMessage_nil( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_statusMessage_nil( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesResponseType_is_return_nil( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether resources is nill ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesResponseType_is_resources_nil( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set resources to nill (currently the same as reset) ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_resources_nil( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether serviceTags is nill ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesResponseType_is_serviceTags_nil( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether resources is nill at i ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesResponseType_is_resources_nil_at( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set resources to nill at i ++ * @param _describeResourcesResponseType _ adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_resources_nil_at( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Check whether serviceTags is nill at i ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesResponseType_is_serviceTags_nil_at( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set serviceTags to nill at i ++ * @param _describeResourcesResponseType _ adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_set_serviceTags_nil_at( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesResponseType_deserialize( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_describeResourcesResponseType_declare_parent_namespaces( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object ++ * @param env pointer to environment struct ++ * @param describeResourcesResponseType_om_node node to serialize from ++ * @param describeResourcesResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_describeResourcesResponseType_serialize( ++ adb_describeResourcesResponseType_t* _describeResourcesResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* describeResourcesResponseType_om_node, axiom_element_t *describeResourcesResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_describeResourcesResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_DESCRIBERESOURCESRESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_describeResourcesType.c' +--- old/cluster/generated/adb_describeResourcesType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_describeResourcesType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,2085 @@ ++ ++ ++ /** ++ * adb_describeResourcesType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_describeResourcesType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = describeResourcesType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_describeResourcesType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ axutil_array_list_t* property_instanceTypes; ++ ++ ++ axis2_bool_t is_valid_instanceTypes; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_correlationId_nil( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_userId_nil( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_return_nil( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_instanceTypes_nil_at( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_instanceTypes_nil( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_describeResourcesType_t* AXIS2_CALL ++ adb_describeResourcesType_create( ++ const axutil_env_t *env) ++ { ++ adb_describeResourcesType_t *_describeResourcesType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _describeResourcesType = (adb_describeResourcesType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_describeResourcesType_t)); ++ ++ if(NULL == _describeResourcesType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_describeResourcesType, 0, sizeof(adb_describeResourcesType_t)); ++ ++ _describeResourcesType->property_correlationId = NULL; ++ _describeResourcesType->is_valid_correlationId = AXIS2_FALSE; ++ _describeResourcesType->property_userId = NULL; ++ _describeResourcesType->is_valid_userId = AXIS2_FALSE; ++ _describeResourcesType->property_statusMessage = NULL; ++ _describeResourcesType->is_valid_statusMessage = AXIS2_FALSE; ++ _describeResourcesType->is_valid_return = AXIS2_FALSE; ++ _describeResourcesType->property_instanceTypes = NULL; ++ _describeResourcesType->is_valid_instanceTypes = AXIS2_FALSE; ++ ++ ++ return _describeResourcesType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_free ( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE); ++ ++ adb_describeResourcesType_reset_correlationId(_describeResourcesType, env); ++ adb_describeResourcesType_reset_userId(_describeResourcesType, env); ++ adb_describeResourcesType_reset_statusMessage(_describeResourcesType, env); ++ adb_describeResourcesType_reset_return(_describeResourcesType, env); ++ adb_describeResourcesType_reset_instanceTypes(_describeResourcesType, env); ++ ++ ++ if(_describeResourcesType) ++ { ++ AXIS2_FREE(env->allocator, _describeResourcesType); ++ _describeResourcesType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_deserialize( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for describeResourcesType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describeResourcesType_set_correlationId(_describeResourcesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_describeResourcesType_set_correlationId(_describeResourcesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describeResourcesType_set_userId(_describeResourcesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_describeResourcesType_set_userId(_describeResourcesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_describeResourcesType_set_statusMessage(_describeResourcesType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_describeResourcesType_set_return(_describeResourcesType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_describeResourcesType_set_return(_describeResourcesType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building instanceTypes array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building instanceTypes element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "instanceTypes", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ element = (void*)adb_virtualMachineType_create(env); ++ ++ status = adb_virtualMachineType_deserialize((adb_virtualMachineType_t*)element, env, ++ ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building element instanceTypes "); ++ } ++ else ++ { ++ axutil_array_list_add_at(arr_list, env, i, element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceTypes "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 1) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceTypes (@minOccurs = '1') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_describeResourcesType_set_instanceTypes(_describeResourcesType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_describeResourcesType_declare_parent_namespaces( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_describeResourcesType_serialize( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t text_value_5[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeResourcesType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _describeResourcesType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeResourcesType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _describeResourcesType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeResourcesType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _describeResourcesType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeResourcesType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_describeResourcesType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_describeResourcesType->is_valid_instanceTypes) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceTypes"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceTypes"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceTypes"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing instanceTypes array ++ */ ++ if (_describeResourcesType->property_instanceTypes != NULL) ++ { ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceTypes", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_describeResourcesType->property_instanceTypes, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_describeResourcesType->property_instanceTypes, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing instanceTypes element ++ */ ++ ++ ++ ++ if(!adb_virtualMachineType_is_particle()) ++ { ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ } ++ ++ adb_virtualMachineType_serialize((adb_virtualMachineType_t*)element, ++ env, current_node, parent_element, ++ adb_virtualMachineType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index); ++ ++ if(!adb_virtualMachineType_is_particle()) ++ { ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ } ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeResourcesType_get_correlationId( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, NULL); ++ ++ ++ return _describeResourcesType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_correlationId( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE); ++ ++ if(_describeResourcesType->is_valid_correlationId && ++ arg_correlationId == _describeResourcesType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeResourcesType_reset_correlationId(_describeResourcesType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeResourcesType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _describeResourcesType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _describeResourcesType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_reset_correlationId( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describeResourcesType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describeResourcesType->property_correlationId); ++ _describeResourcesType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _describeResourcesType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesType_is_correlationId_nil( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_TRUE); ++ ++ return !_describeResourcesType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_correlationId_nil( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env) ++ { ++ return adb_describeResourcesType_reset_correlationId(_describeResourcesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeResourcesType_get_userId( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, NULL); ++ ++ ++ return _describeResourcesType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_userId( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE); ++ ++ if(_describeResourcesType->is_valid_userId && ++ arg_userId == _describeResourcesType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeResourcesType_reset_userId(_describeResourcesType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeResourcesType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _describeResourcesType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _describeResourcesType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_reset_userId( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describeResourcesType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describeResourcesType->property_userId); ++ _describeResourcesType->property_userId = NULL; ++ } ++ ++ ++ ++ _describeResourcesType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesType_is_userId_nil( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_TRUE); ++ ++ return !_describeResourcesType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_userId_nil( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env) ++ { ++ return adb_describeResourcesType_reset_userId(_describeResourcesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeResourcesType_get_statusMessage( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, NULL); ++ ++ ++ return _describeResourcesType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_statusMessage( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE); ++ ++ if(_describeResourcesType->is_valid_statusMessage && ++ arg_statusMessage == _describeResourcesType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeResourcesType_reset_statusMessage(_describeResourcesType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeResourcesType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _describeResourcesType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _describeResourcesType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_reset_statusMessage( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_describeResourcesType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _describeResourcesType->property_statusMessage); ++ _describeResourcesType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _describeResourcesType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesType_is_statusMessage_nil( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_TRUE); ++ ++ return !_describeResourcesType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_statusMessage_nil( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env) ++ { ++ return adb_describeResourcesType_reset_statusMessage(_describeResourcesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesType_get_return( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, (axis2_bool_t)0); ++ ++ ++ return _describeResourcesType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_return( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE); ++ ++ if(_describeResourcesType->is_valid_return && ++ arg_return == _describeResourcesType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_describeResourcesType_reset_return(_describeResourcesType, env); ++ ++ _describeResourcesType->property_return = arg_return; ++ _describeResourcesType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_reset_return( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE); ++ ++ ++ _describeResourcesType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesType_is_return_nil( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_TRUE); ++ ++ return !_describeResourcesType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_return_nil( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env) ++ { ++ return adb_describeResourcesType_reset_return(_describeResourcesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceTypes. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_describeResourcesType_get_instanceTypes( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, NULL); ++ ++ ++ return _describeResourcesType->property_instanceTypes; ++ } ++ ++ /** ++ * setter for instanceTypes ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_instanceTypes( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_instanceTypes) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE); ++ ++ if(_describeResourcesType->is_valid_instanceTypes && ++ arg_instanceTypes == _describeResourcesType->property_instanceTypes) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_instanceTypes, env); ++ ++ if (size < 1) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceTypes has less than minOccurs(1)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_instanceTypes, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of instanceTypes is being set to NULL, but it is not a nullable or minOccurs=0 element"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(NULL == arg_instanceTypes) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceTypes is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_describeResourcesType_reset_instanceTypes(_describeResourcesType, env); ++ ++ ++ if(NULL == arg_instanceTypes) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _describeResourcesType->property_instanceTypes = arg_instanceTypes; ++ if(non_nil_exists) ++ { ++ _describeResourcesType->is_valid_instanceTypes = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of instanceTypes. ++ */ ++ adb_virtualMachineType_t* AXIS2_CALL ++ adb_describeResourcesType_get_instanceTypes_at( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, int i) ++ { ++ adb_virtualMachineType_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, NULL); ++ ++ ++ if(_describeResourcesType->property_instanceTypes == NULL) ++ { ++ return (adb_virtualMachineType_t*)0; ++ } ++ ret_val = (adb_virtualMachineType_t*)axutil_array_list_get(_describeResourcesType->property_instanceTypes, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of instanceTypes. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_instanceTypes_at( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, int i, ++ adb_virtualMachineType_t* arg_instanceTypes) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE); ++ ++ if( _describeResourcesType->is_valid_instanceTypes && ++ _describeResourcesType->property_instanceTypes && ++ ++ arg_instanceTypes == (adb_virtualMachineType_t*)axutil_array_list_get(_describeResourcesType->property_instanceTypes, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instanceTypes) ++ { ++ if(_describeResourcesType->property_instanceTypes != NULL) ++ { ++ size = axutil_array_list_size(_describeResourcesType->property_instanceTypes, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_describeResourcesType->property_instanceTypes, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 1) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if(!non_nil_exists) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of instanceTypes is being set to NULL, but it is not a nullable or minOccurs=0 element"); ++ return AXIS2_FAILURE; ++ } ++ ++ if( k < 1) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instanceTypes is beinng set to be smaller than the specificed number of minOccurs(1)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_describeResourcesType->property_instanceTypes == NULL) ++ { ++ _describeResourcesType->property_instanceTypes = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_describeResourcesType->property_instanceTypes, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ adb_virtualMachineType_free((adb_virtualMachineType_t*)element, env); ++ ++ } ++ ++ ++ axutil_array_list_set(_describeResourcesType->property_instanceTypes , env, i, arg_instanceTypes); ++ _describeResourcesType->is_valid_instanceTypes = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to instanceTypes. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_add_instanceTypes( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, ++ adb_virtualMachineType_t* arg_instanceTypes) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_instanceTypes) ++ { ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of instanceTypes is being set to NULL, but it is not a nullable or minOccurs=0 element"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ ++ if(_describeResourcesType->property_instanceTypes == NULL) ++ { ++ _describeResourcesType->property_instanceTypes = axutil_array_list_create(env, 10); ++ } ++ if(_describeResourcesType->property_instanceTypes == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for instanceTypes"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_describeResourcesType->property_instanceTypes , env, arg_instanceTypes); ++ _describeResourcesType->is_valid_instanceTypes = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the instanceTypes array. ++ */ ++ int AXIS2_CALL ++ adb_describeResourcesType_sizeof_instanceTypes( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, -1); ++ if(_describeResourcesType->property_instanceTypes == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_describeResourcesType->property_instanceTypes, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_remove_instanceTypes_at( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_describeResourcesType_set_instanceTypes_nil_at(_describeResourcesType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for instanceTypes ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_reset_instanceTypes( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE); ++ ++ ++ ++ if (_describeResourcesType->property_instanceTypes != NULL) ++ { ++ count = axutil_array_list_size(_describeResourcesType->property_instanceTypes, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_describeResourcesType->property_instanceTypes, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ adb_virtualMachineType_free((adb_virtualMachineType_t*)element, env); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_describeResourcesType->property_instanceTypes, env); ++ } ++ _describeResourcesType->is_valid_instanceTypes = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceTypes is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesType_is_instanceTypes_nil( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_TRUE); ++ ++ return !_describeResourcesType->is_valid_instanceTypes; ++ } ++ ++ /** ++ * Set instanceTypes to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_instanceTypes_nil( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env) ++ { ++ return adb_describeResourcesType_reset_instanceTypes(_describeResourcesType, env); ++ } ++ ++ ++ /** ++ * Check whether instanceTypes is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesType_is_instanceTypes_nil_at( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_TRUE); ++ ++ return (_describeResourcesType->is_valid_instanceTypes == AXIS2_FALSE || ++ NULL == _describeResourcesType->property_instanceTypes || ++ NULL == axutil_array_list_get(_describeResourcesType->property_instanceTypes, env, i)); ++ } ++ ++ /** ++ * Set instanceTypes to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_instanceTypes_nil_at( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE); ++ ++ if(_describeResourcesType->property_instanceTypes == NULL || ++ _describeResourcesType->is_valid_instanceTypes == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_describeResourcesType->property_instanceTypes, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_describeResourcesType->property_instanceTypes, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 1) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ if(!non_nil_exists) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of instanceTypes is being set to NULL, but it is not a nullable or minOccurs=0 element"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if( k < 1) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instanceTypes is beinng set to be smaller than the specificed number of minOccurs(1)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_describeResourcesType->property_instanceTypes == NULL) ++ { ++ _describeResourcesType->is_valid_instanceTypes = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_describeResourcesType->property_instanceTypes, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ adb_virtualMachineType_free((adb_virtualMachineType_t*)element, env); ++ ++ } ++ ++ ++ ++ ++ axutil_array_list_set(_describeResourcesType->property_instanceTypes , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_describeResourcesType.h' +--- old/cluster/generated/adb_describeResourcesType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_describeResourcesType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,540 @@ ++ ++ ++ #ifndef ADB_DESCRIBERESOURCESTYPE_H ++ #define ADB_DESCRIBERESOURCESTYPE_H ++ ++ /** ++ * adb_describeResourcesType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_describeResourcesType class ++ */ ++ typedef struct adb_describeResourcesType adb_describeResourcesType_t; ++ ++ ++ #include "adb_virtualMachineType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_describeResourcesType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_describeResourcesType_t object ++ */ ++ adb_describeResourcesType_t* AXIS2_CALL ++ adb_describeResourcesType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_describeResourcesType_t object ++ * @param _describeResourcesType adb_describeResourcesType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_free ( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeResourcesType_get_correlationId( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_correlationId( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_reset_correlationId( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeResourcesType_get_userId( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_userId( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_reset_userId( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_describeResourcesType_get_statusMessage( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_statusMessage( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_reset_statusMessage( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesType_get_return( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_return( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_reset_return( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceTypes. Deprecated for array types, Use adb_describeResourcesType_get_instanceTypes_at instead ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @return Array of adb_virtualMachineType_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_describeResourcesType_get_instanceTypes( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceTypes.Deprecated for array types, Use adb_describeResourcesType_set_instanceTypes_at ++ * or adb_describeResourcesType_add_instanceTypes instead. ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceTypes Array of adb_virtualMachineType_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_instanceTypes( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_instanceTypes); ++ ++ /** ++ * Resetter for instanceTypes ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_reset_instanceTypes( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of instanceTypes. ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith adb_virtualMachineType_t* of the array ++ */ ++ adb_virtualMachineType_t* AXIS2_CALL ++ adb_describeResourcesType_get_instanceTypes_at( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of instanceTypes. (If the ith already exist, it will be replaced) ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_instanceTypes element to set adb_virtualMachineType_t* to the array ++ * @return ith adb_virtualMachineType_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_instanceTypes_at( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, int i, ++ adb_virtualMachineType_t* arg_instanceTypes); ++ ++ ++ /** ++ * Add to instanceTypes. ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceTypes element to add adb_virtualMachineType_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_add_instanceTypes( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, ++ adb_virtualMachineType_t* arg_instanceTypes); ++ ++ /** ++ * Get the size of the instanceTypes array. ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the instanceTypes array. ++ */ ++ int AXIS2_CALL ++ adb_describeResourcesType_sizeof_instanceTypes( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of instanceTypes. ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_remove_instanceTypes_at( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesType_is_correlationId_nil( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesType_is_userId_nil( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesType_is_statusMessage_nil( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_statusMessage_nil( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesType_is_return_nil( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether instanceTypes is nill ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesType_is_instanceTypes_nil( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether instanceTypes is nill at i ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesType_is_instanceTypes_nil_at( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set instanceTypes to nill at i ++ * @param _describeResourcesType _ adb_describeResourcesType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_set_instanceTypes_nil_at( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_describeResourcesType_deserialize( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_describeResourcesType_declare_parent_namespaces( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _describeResourcesType adb_describeResourcesType_t object ++ * @param env pointer to environment struct ++ * @param describeResourcesType_om_node node to serialize from ++ * @param describeResourcesType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_describeResourcesType_serialize( ++ adb_describeResourcesType_t* _describeResourcesType, ++ const axutil_env_t *env, ++ axiom_node_t* describeResourcesType_om_node, axiom_element_t *describeResourcesType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_describeResourcesType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_describeResourcesType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_DESCRIBERESOURCESTYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_detachVolumeResponseType.c' +--- old/cluster/generated/adb_detachVolumeResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_detachVolumeResponseType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,1401 @@ ++ ++ ++ /** ++ * adb_detachVolumeResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_detachVolumeResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = detachVolumeResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_detachVolumeResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_set_correlationId_nil( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_set_userId_nil( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_set_return_nil( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_detachVolumeResponseType_t* AXIS2_CALL ++ adb_detachVolumeResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_detachVolumeResponseType_t *_detachVolumeResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _detachVolumeResponseType = (adb_detachVolumeResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_detachVolumeResponseType_t)); ++ ++ if(NULL == _detachVolumeResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_detachVolumeResponseType, 0, sizeof(adb_detachVolumeResponseType_t)); ++ ++ _detachVolumeResponseType->property_correlationId = NULL; ++ _detachVolumeResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _detachVolumeResponseType->property_userId = NULL; ++ _detachVolumeResponseType->is_valid_userId = AXIS2_FALSE; ++ _detachVolumeResponseType->property_statusMessage = NULL; ++ _detachVolumeResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _detachVolumeResponseType->is_valid_return = AXIS2_FALSE; ++ ++ ++ return _detachVolumeResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_free ( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_FAILURE); ++ ++ adb_detachVolumeResponseType_reset_correlationId(_detachVolumeResponseType, env); ++ adb_detachVolumeResponseType_reset_userId(_detachVolumeResponseType, env); ++ adb_detachVolumeResponseType_reset_statusMessage(_detachVolumeResponseType, env); ++ adb_detachVolumeResponseType_reset_return(_detachVolumeResponseType, env); ++ ++ ++ if(_detachVolumeResponseType) ++ { ++ AXIS2_FREE(env->allocator, _detachVolumeResponseType); ++ _detachVolumeResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_deserialize( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for detachVolumeResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_detachVolumeResponseType_set_correlationId(_detachVolumeResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_detachVolumeResponseType_set_correlationId(_detachVolumeResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_detachVolumeResponseType_set_userId(_detachVolumeResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_detachVolumeResponseType_set_userId(_detachVolumeResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_detachVolumeResponseType_set_statusMessage(_detachVolumeResponseType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_detachVolumeResponseType_set_return(_detachVolumeResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_detachVolumeResponseType_set_return(_detachVolumeResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_detachVolumeResponseType_declare_parent_namespaces( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_detachVolumeResponseType_serialize( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_detachVolumeResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _detachVolumeResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_detachVolumeResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _detachVolumeResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_detachVolumeResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _detachVolumeResponseType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_detachVolumeResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_detachVolumeResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_detachVolumeResponseType_get_correlationId( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, NULL); ++ ++ ++ return _detachVolumeResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_set_correlationId( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_FAILURE); ++ ++ if(_detachVolumeResponseType->is_valid_correlationId && ++ arg_correlationId == _detachVolumeResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_detachVolumeResponseType_reset_correlationId(_detachVolumeResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _detachVolumeResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _detachVolumeResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _detachVolumeResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_reset_correlationId( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_detachVolumeResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _detachVolumeResponseType->property_correlationId); ++ _detachVolumeResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _detachVolumeResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeResponseType_is_correlationId_nil( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_TRUE); ++ ++ return !_detachVolumeResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_set_correlationId_nil( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_detachVolumeResponseType_reset_correlationId(_detachVolumeResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_detachVolumeResponseType_get_userId( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, NULL); ++ ++ ++ return _detachVolumeResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_set_userId( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_FAILURE); ++ ++ if(_detachVolumeResponseType->is_valid_userId && ++ arg_userId == _detachVolumeResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_detachVolumeResponseType_reset_userId(_detachVolumeResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _detachVolumeResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _detachVolumeResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _detachVolumeResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_reset_userId( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_detachVolumeResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _detachVolumeResponseType->property_userId); ++ _detachVolumeResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _detachVolumeResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeResponseType_is_userId_nil( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_TRUE); ++ ++ return !_detachVolumeResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_set_userId_nil( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_detachVolumeResponseType_reset_userId(_detachVolumeResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_detachVolumeResponseType_get_statusMessage( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, NULL); ++ ++ ++ return _detachVolumeResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_set_statusMessage( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_FAILURE); ++ ++ if(_detachVolumeResponseType->is_valid_statusMessage && ++ arg_statusMessage == _detachVolumeResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_detachVolumeResponseType_reset_statusMessage(_detachVolumeResponseType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _detachVolumeResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _detachVolumeResponseType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _detachVolumeResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_reset_statusMessage( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_detachVolumeResponseType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _detachVolumeResponseType->property_statusMessage); ++ _detachVolumeResponseType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _detachVolumeResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeResponseType_is_statusMessage_nil( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_TRUE); ++ ++ return !_detachVolumeResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_set_statusMessage_nil( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_detachVolumeResponseType_reset_statusMessage(_detachVolumeResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeResponseType_get_return( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, (axis2_bool_t)0); ++ ++ ++ return _detachVolumeResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_set_return( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_FAILURE); ++ ++ if(_detachVolumeResponseType->is_valid_return && ++ arg_return == _detachVolumeResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_detachVolumeResponseType_reset_return(_detachVolumeResponseType, env); ++ ++ _detachVolumeResponseType->property_return = arg_return; ++ _detachVolumeResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_reset_return( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ _detachVolumeResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeResponseType_is_return_nil( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_TRUE); ++ ++ return !_detachVolumeResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_set_return_nil( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_detachVolumeResponseType_reset_return(_detachVolumeResponseType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_detachVolumeResponseType.h' +--- old/cluster/generated/adb_detachVolumeResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_detachVolumeResponseType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,362 @@ ++ ++ ++ #ifndef ADB_DETACHVOLUMERESPONSETYPE_H ++ #define ADB_DETACHVOLUMERESPONSETYPE_H ++ ++ /** ++ * adb_detachVolumeResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_detachVolumeResponseType class ++ */ ++ typedef struct adb_detachVolumeResponseType adb_detachVolumeResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_detachVolumeResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_detachVolumeResponseType_t object ++ */ ++ adb_detachVolumeResponseType_t* AXIS2_CALL ++ adb_detachVolumeResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_detachVolumeResponseType_t object ++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_free ( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_detachVolumeResponseType_get_correlationId( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_set_correlationId( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_reset_correlationId( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_detachVolumeResponseType_get_userId( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_set_userId( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_reset_userId( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_detachVolumeResponseType_get_statusMessage( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_set_statusMessage( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_reset_statusMessage( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeResponseType_get_return( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_set_return( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_reset_return( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeResponseType_is_correlationId_nil( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeResponseType_is_userId_nil( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeResponseType_is_statusMessage_nil( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_set_statusMessage_nil( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeResponseType_is_return_nil( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeResponseType_deserialize( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_detachVolumeResponseType_declare_parent_namespaces( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param detachVolumeResponseType_om_node node to serialize from ++ * @param detachVolumeResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_detachVolumeResponseType_serialize( ++ adb_detachVolumeResponseType_t* _detachVolumeResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* detachVolumeResponseType_om_node, axiom_element_t *detachVolumeResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_detachVolumeResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_DETACHVOLUMERESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_detachVolumeType.c' +--- old/cluster/generated/adb_detachVolumeType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_detachVolumeType.c 2010-01-05 01:00:47 +0000 +@@ -0,0 +1,3005 @@ ++ ++ ++ /** ++ * adb_detachVolumeType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_detachVolumeType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = detachVolumeType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_detachVolumeType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ axis2_char_t* property_instanceId; ++ ++ ++ axis2_bool_t is_valid_instanceId; ++ ++ ++ axis2_char_t* property_volumeId; ++ ++ ++ axis2_bool_t is_valid_volumeId; ++ ++ ++ axis2_char_t* property_remoteDev; ++ ++ ++ axis2_bool_t is_valid_remoteDev; ++ ++ ++ axis2_char_t* property_localDev; ++ ++ ++ axis2_bool_t is_valid_localDev; ++ ++ ++ axis2_bool_t property_force; ++ ++ ++ axis2_bool_t is_valid_force; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_correlationId_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_userId_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_return_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_instanceId_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_volumeId_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_remoteDev_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_localDev_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_force_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_detachVolumeType_t* AXIS2_CALL ++ adb_detachVolumeType_create( ++ const axutil_env_t *env) ++ { ++ adb_detachVolumeType_t *_detachVolumeType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _detachVolumeType = (adb_detachVolumeType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_detachVolumeType_t)); ++ ++ if(NULL == _detachVolumeType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_detachVolumeType, 0, sizeof(adb_detachVolumeType_t)); ++ ++ _detachVolumeType->property_correlationId = NULL; ++ _detachVolumeType->is_valid_correlationId = AXIS2_FALSE; ++ _detachVolumeType->property_userId = NULL; ++ _detachVolumeType->is_valid_userId = AXIS2_FALSE; ++ _detachVolumeType->property_statusMessage = NULL; ++ _detachVolumeType->is_valid_statusMessage = AXIS2_FALSE; ++ _detachVolumeType->is_valid_return = AXIS2_FALSE; ++ _detachVolumeType->property_instanceId = NULL; ++ _detachVolumeType->is_valid_instanceId = AXIS2_FALSE; ++ _detachVolumeType->property_volumeId = NULL; ++ _detachVolumeType->is_valid_volumeId = AXIS2_FALSE; ++ _detachVolumeType->property_remoteDev = NULL; ++ _detachVolumeType->is_valid_remoteDev = AXIS2_FALSE; ++ _detachVolumeType->property_localDev = NULL; ++ _detachVolumeType->is_valid_localDev = AXIS2_FALSE; ++ _detachVolumeType->is_valid_force = AXIS2_FALSE; ++ ++ ++ return _detachVolumeType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_free ( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE); ++ ++ adb_detachVolumeType_reset_correlationId(_detachVolumeType, env); ++ adb_detachVolumeType_reset_userId(_detachVolumeType, env); ++ adb_detachVolumeType_reset_statusMessage(_detachVolumeType, env); ++ adb_detachVolumeType_reset_return(_detachVolumeType, env); ++ adb_detachVolumeType_reset_instanceId(_detachVolumeType, env); ++ adb_detachVolumeType_reset_volumeId(_detachVolumeType, env); ++ adb_detachVolumeType_reset_remoteDev(_detachVolumeType, env); ++ adb_detachVolumeType_reset_localDev(_detachVolumeType, env); ++ adb_detachVolumeType_reset_force(_detachVolumeType, env); ++ ++ ++ if(_detachVolumeType) ++ { ++ AXIS2_FREE(env->allocator, _detachVolumeType); ++ _detachVolumeType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_deserialize( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for detachVolumeType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_detachVolumeType_set_correlationId(_detachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_detachVolumeType_set_correlationId(_detachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_detachVolumeType_set_userId(_detachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_detachVolumeType_set_userId(_detachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_detachVolumeType_set_statusMessage(_detachVolumeType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_detachVolumeType_set_return(_detachVolumeType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_detachVolumeType_set_return(_detachVolumeType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_detachVolumeType_set_instanceId(_detachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_detachVolumeType_set_instanceId(_detachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building volumeId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "volumeId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_detachVolumeType_set_volumeId(_detachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element volumeId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_detachVolumeType_set_volumeId(_detachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for volumeId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building remoteDev element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "remoteDev", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_detachVolumeType_set_remoteDev(_detachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element remoteDev"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_detachVolumeType_set_remoteDev(_detachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for remoteDev "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building localDev element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "localDev", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_detachVolumeType_set_localDev(_detachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element localDev"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_detachVolumeType_set_localDev(_detachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for localDev "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building force element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "force", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_detachVolumeType_set_force(_detachVolumeType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_detachVolumeType_set_force(_detachVolumeType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element force"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for force "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_detachVolumeType_declare_parent_namespaces( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_detachVolumeType_serialize( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *text_value_6; ++ axis2_char_t *text_value_6_temp; ++ ++ axis2_char_t *text_value_7; ++ axis2_char_t *text_value_7_temp; ++ ++ axis2_char_t *text_value_8; ++ axis2_char_t *text_value_8_temp; ++ ++ axis2_char_t text_value_9[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_detachVolumeType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _detachVolumeType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_detachVolumeType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _detachVolumeType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_detachVolumeType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _detachVolumeType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_detachVolumeType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_detachVolumeType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_detachVolumeType->is_valid_instanceId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _detachVolumeType->property_instanceId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_detachVolumeType->is_valid_volumeId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("volumeId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("volumeId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing volumeId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%svolumeId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_6 = _detachVolumeType->property_volumeId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE); ++ if (text_value_6_temp) ++ { ++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp)); ++ AXIS2_FREE(env->allocator, text_value_6_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_detachVolumeType->is_valid_remoteDev) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("remoteDev"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("remoteDev"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing remoteDev element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sremoteDev>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_7 = _detachVolumeType->property_remoteDev; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE); ++ if (text_value_7_temp) ++ { ++ axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp)); ++ AXIS2_FREE(env->allocator, text_value_7_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_detachVolumeType->is_valid_localDev) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("localDev"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("localDev"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing localDev element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%slocalDev>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_8 = _detachVolumeType->property_localDev; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE); ++ if (text_value_8_temp) ++ { ++ axutil_stream_write(stream, env, text_value_8_temp, axutil_strlen(text_value_8_temp)); ++ AXIS2_FREE(env->allocator, text_value_8_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_detachVolumeType->is_valid_force) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("force"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("force"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing force element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sforce>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_9, (_detachVolumeType->property_force)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_9, axutil_strlen(text_value_9)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_detachVolumeType_get_correlationId( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, NULL); ++ ++ ++ return _detachVolumeType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_correlationId( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE); ++ ++ if(_detachVolumeType->is_valid_correlationId && ++ arg_correlationId == _detachVolumeType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_detachVolumeType_reset_correlationId(_detachVolumeType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _detachVolumeType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _detachVolumeType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _detachVolumeType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_reset_correlationId( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_detachVolumeType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _detachVolumeType->property_correlationId); ++ _detachVolumeType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _detachVolumeType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeType_is_correlationId_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_TRUE); ++ ++ return !_detachVolumeType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_correlationId_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_detachVolumeType_reset_correlationId(_detachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_detachVolumeType_get_userId( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, NULL); ++ ++ ++ return _detachVolumeType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_userId( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE); ++ ++ if(_detachVolumeType->is_valid_userId && ++ arg_userId == _detachVolumeType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_detachVolumeType_reset_userId(_detachVolumeType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _detachVolumeType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _detachVolumeType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _detachVolumeType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_reset_userId( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_detachVolumeType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _detachVolumeType->property_userId); ++ _detachVolumeType->property_userId = NULL; ++ } ++ ++ ++ ++ _detachVolumeType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeType_is_userId_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_TRUE); ++ ++ return !_detachVolumeType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_userId_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_detachVolumeType_reset_userId(_detachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_detachVolumeType_get_statusMessage( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, NULL); ++ ++ ++ return _detachVolumeType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_statusMessage( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE); ++ ++ if(_detachVolumeType->is_valid_statusMessage && ++ arg_statusMessage == _detachVolumeType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_detachVolumeType_reset_statusMessage(_detachVolumeType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _detachVolumeType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _detachVolumeType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _detachVolumeType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_reset_statusMessage( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_detachVolumeType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _detachVolumeType->property_statusMessage); ++ _detachVolumeType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _detachVolumeType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeType_is_statusMessage_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_TRUE); ++ ++ return !_detachVolumeType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_statusMessage_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_detachVolumeType_reset_statusMessage(_detachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeType_get_return( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, (axis2_bool_t)0); ++ ++ ++ return _detachVolumeType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_return( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE); ++ ++ if(_detachVolumeType->is_valid_return && ++ arg_return == _detachVolumeType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_detachVolumeType_reset_return(_detachVolumeType, env); ++ ++ _detachVolumeType->property_return = arg_return; ++ _detachVolumeType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_reset_return( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE); ++ ++ ++ _detachVolumeType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeType_is_return_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_TRUE); ++ ++ return !_detachVolumeType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_return_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_detachVolumeType_reset_return(_detachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_detachVolumeType_get_instanceId( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, NULL); ++ ++ ++ return _detachVolumeType->property_instanceId; ++ } ++ ++ /** ++ * setter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_instanceId( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE); ++ ++ if(_detachVolumeType->is_valid_instanceId && ++ arg_instanceId == _detachVolumeType->property_instanceId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_detachVolumeType_reset_instanceId(_detachVolumeType, env); ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _detachVolumeType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId); ++ if(NULL == _detachVolumeType->property_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId"); ++ return AXIS2_FAILURE; ++ } ++ _detachVolumeType->is_valid_instanceId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_reset_instanceId( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_detachVolumeType->property_instanceId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _detachVolumeType->property_instanceId); ++ _detachVolumeType->property_instanceId = NULL; ++ } ++ ++ ++ ++ _detachVolumeType->is_valid_instanceId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeType_is_instanceId_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_TRUE); ++ ++ return !_detachVolumeType->is_valid_instanceId; ++ } ++ ++ /** ++ * Set instanceId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_instanceId_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_detachVolumeType_reset_instanceId(_detachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for volumeId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_detachVolumeType_get_volumeId( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, NULL); ++ ++ ++ return _detachVolumeType->property_volumeId; ++ } ++ ++ /** ++ * setter for volumeId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_volumeId( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_volumeId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE); ++ ++ if(_detachVolumeType->is_valid_volumeId && ++ arg_volumeId == _detachVolumeType->property_volumeId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_detachVolumeType_reset_volumeId(_detachVolumeType, env); ++ ++ ++ if(NULL == arg_volumeId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _detachVolumeType->property_volumeId = (axis2_char_t *)axutil_strdup(env, arg_volumeId); ++ if(NULL == _detachVolumeType->property_volumeId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for volumeId"); ++ return AXIS2_FAILURE; ++ } ++ _detachVolumeType->is_valid_volumeId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for volumeId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_reset_volumeId( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_detachVolumeType->property_volumeId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _detachVolumeType->property_volumeId); ++ _detachVolumeType->property_volumeId = NULL; ++ } ++ ++ ++ ++ _detachVolumeType->is_valid_volumeId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether volumeId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeType_is_volumeId_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_TRUE); ++ ++ return !_detachVolumeType->is_valid_volumeId; ++ } ++ ++ /** ++ * Set volumeId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_volumeId_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_detachVolumeType_reset_volumeId(_detachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for remoteDev. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_detachVolumeType_get_remoteDev( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, NULL); ++ ++ ++ return _detachVolumeType->property_remoteDev; ++ } ++ ++ /** ++ * setter for remoteDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_remoteDev( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_remoteDev) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE); ++ ++ if(_detachVolumeType->is_valid_remoteDev && ++ arg_remoteDev == _detachVolumeType->property_remoteDev) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_detachVolumeType_reset_remoteDev(_detachVolumeType, env); ++ ++ ++ if(NULL == arg_remoteDev) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _detachVolumeType->property_remoteDev = (axis2_char_t *)axutil_strdup(env, arg_remoteDev); ++ if(NULL == _detachVolumeType->property_remoteDev) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for remoteDev"); ++ return AXIS2_FAILURE; ++ } ++ _detachVolumeType->is_valid_remoteDev = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for remoteDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_reset_remoteDev( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_detachVolumeType->property_remoteDev != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _detachVolumeType->property_remoteDev); ++ _detachVolumeType->property_remoteDev = NULL; ++ } ++ ++ ++ ++ _detachVolumeType->is_valid_remoteDev = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether remoteDev is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeType_is_remoteDev_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_TRUE); ++ ++ return !_detachVolumeType->is_valid_remoteDev; ++ } ++ ++ /** ++ * Set remoteDev to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_remoteDev_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_detachVolumeType_reset_remoteDev(_detachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for localDev. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_detachVolumeType_get_localDev( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, NULL); ++ ++ ++ return _detachVolumeType->property_localDev; ++ } ++ ++ /** ++ * setter for localDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_localDev( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_localDev) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE); ++ ++ if(_detachVolumeType->is_valid_localDev && ++ arg_localDev == _detachVolumeType->property_localDev) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_detachVolumeType_reset_localDev(_detachVolumeType, env); ++ ++ ++ if(NULL == arg_localDev) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _detachVolumeType->property_localDev = (axis2_char_t *)axutil_strdup(env, arg_localDev); ++ if(NULL == _detachVolumeType->property_localDev) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for localDev"); ++ return AXIS2_FAILURE; ++ } ++ _detachVolumeType->is_valid_localDev = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for localDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_reset_localDev( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_detachVolumeType->property_localDev != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _detachVolumeType->property_localDev); ++ _detachVolumeType->property_localDev = NULL; ++ } ++ ++ ++ ++ _detachVolumeType->is_valid_localDev = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether localDev is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeType_is_localDev_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_TRUE); ++ ++ return !_detachVolumeType->is_valid_localDev; ++ } ++ ++ /** ++ * Set localDev to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_localDev_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_detachVolumeType_reset_localDev(_detachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for force. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeType_get_force( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, (axis2_bool_t)0); ++ ++ ++ return _detachVolumeType->property_force; ++ } ++ ++ /** ++ * setter for force ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_force( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_force) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE); ++ ++ if(_detachVolumeType->is_valid_force && ++ arg_force == _detachVolumeType->property_force) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_detachVolumeType_reset_force(_detachVolumeType, env); ++ ++ _detachVolumeType->property_force = arg_force; ++ _detachVolumeType->is_valid_force = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for force ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_reset_force( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE); ++ ++ ++ _detachVolumeType->is_valid_force = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether force is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeType_is_force_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_TRUE); ++ ++ return !_detachVolumeType->is_valid_force; ++ } ++ ++ /** ++ * Set force to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_force_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_detachVolumeType_reset_force(_detachVolumeType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_detachVolumeType.h' +--- old/cluster/generated/adb_detachVolumeType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_detachVolumeType.h 2010-01-05 01:00:47 +0000 +@@ -0,0 +1,622 @@ ++ ++ ++ #ifndef ADB_DETACHVOLUMETYPE_H ++ #define ADB_DETACHVOLUMETYPE_H ++ ++ /** ++ * adb_detachVolumeType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_detachVolumeType class ++ */ ++ typedef struct adb_detachVolumeType adb_detachVolumeType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_detachVolumeType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_detachVolumeType_t object ++ */ ++ adb_detachVolumeType_t* AXIS2_CALL ++ adb_detachVolumeType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_detachVolumeType_t object ++ * @param _detachVolumeType adb_detachVolumeType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_free ( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_detachVolumeType_get_correlationId( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_correlationId( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_reset_correlationId( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_detachVolumeType_get_userId( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_userId( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_reset_userId( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_detachVolumeType_get_statusMessage( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_statusMessage( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_reset_statusMessage( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeType_get_return( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_return( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_reset_return( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceId. ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_detachVolumeType_get_instanceId( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceId. ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_instanceId( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId); ++ ++ /** ++ * Resetter for instanceId ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_reset_instanceId( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for volumeId. ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_detachVolumeType_get_volumeId( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for volumeId. ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_volumeId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_volumeId( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_volumeId); ++ ++ /** ++ * Resetter for volumeId ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_reset_volumeId( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for remoteDev. ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_detachVolumeType_get_remoteDev( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for remoteDev. ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_remoteDev axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_remoteDev( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_remoteDev); ++ ++ /** ++ * Resetter for remoteDev ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_reset_remoteDev( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for localDev. ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_detachVolumeType_get_localDev( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for localDev. ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_localDev axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_localDev( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_localDev); ++ ++ /** ++ * Resetter for localDev ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_reset_localDev( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for force. ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeType_get_force( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for force. ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_force axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_force( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_force); ++ ++ /** ++ * Resetter for force ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_reset_force( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeType_is_correlationId_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeType_is_userId_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeType_is_statusMessage_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_set_statusMessage_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeType_is_return_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether instanceId is nill ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeType_is_instanceId_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether volumeId is nill ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeType_is_volumeId_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether remoteDev is nill ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeType_is_remoteDev_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether localDev is nill ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeType_is_localDev_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether force is nill ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeType_is_force_nil( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_detachVolumeType_deserialize( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_detachVolumeType_declare_parent_namespaces( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _detachVolumeType adb_detachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param detachVolumeType_om_node node to serialize from ++ * @param detachVolumeType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_detachVolumeType_serialize( ++ adb_detachVolumeType_t* _detachVolumeType, ++ const axutil_env_t *env, ++ axiom_node_t* detachVolumeType_om_node, axiom_element_t *detachVolumeType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_detachVolumeType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_detachVolumeType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_DETACHVOLUMETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_eucalyptusMessage.c' +--- old/cluster/generated/adb_eucalyptusMessage.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_eucalyptusMessage.c 2010-01-05 01:00:47 +0000 +@@ -0,0 +1,1401 @@ ++ ++ ++ /** ++ * adb_eucalyptusMessage.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_eucalyptusMessage.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = eucalyptusMessage ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_eucalyptusMessage ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_correlationId_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_userId_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_return_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_eucalyptusMessage_t* AXIS2_CALL ++ adb_eucalyptusMessage_create( ++ const axutil_env_t *env) ++ { ++ adb_eucalyptusMessage_t *_eucalyptusMessage = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _eucalyptusMessage = (adb_eucalyptusMessage_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_eucalyptusMessage_t)); ++ ++ if(NULL == _eucalyptusMessage) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_eucalyptusMessage, 0, sizeof(adb_eucalyptusMessage_t)); ++ ++ _eucalyptusMessage->property_correlationId = NULL; ++ _eucalyptusMessage->is_valid_correlationId = AXIS2_FALSE; ++ _eucalyptusMessage->property_userId = NULL; ++ _eucalyptusMessage->is_valid_userId = AXIS2_FALSE; ++ _eucalyptusMessage->property_statusMessage = NULL; ++ _eucalyptusMessage->is_valid_statusMessage = AXIS2_FALSE; ++ _eucalyptusMessage->is_valid_return = AXIS2_FALSE; ++ ++ ++ return _eucalyptusMessage; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_free ( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ adb_eucalyptusMessage_reset_correlationId(_eucalyptusMessage, env); ++ adb_eucalyptusMessage_reset_userId(_eucalyptusMessage, env); ++ adb_eucalyptusMessage_reset_statusMessage(_eucalyptusMessage, env); ++ adb_eucalyptusMessage_reset_return(_eucalyptusMessage, env); ++ ++ ++ if(_eucalyptusMessage) ++ { ++ AXIS2_FREE(env->allocator, _eucalyptusMessage); ++ _eucalyptusMessage = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_deserialize( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for eucalyptusMessage : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_eucalyptusMessage_set_correlationId(_eucalyptusMessage, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_eucalyptusMessage_set_correlationId(_eucalyptusMessage, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_eucalyptusMessage_set_userId(_eucalyptusMessage, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_eucalyptusMessage_set_userId(_eucalyptusMessage, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_eucalyptusMessage_set_statusMessage(_eucalyptusMessage, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_eucalyptusMessage_set_return(_eucalyptusMessage, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_eucalyptusMessage_set_return(_eucalyptusMessage, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_eucalyptusMessage_declare_parent_namespaces( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_eucalyptusMessage_serialize( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_eucalyptusMessage->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _eucalyptusMessage->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_eucalyptusMessage->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _eucalyptusMessage->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_eucalyptusMessage->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _eucalyptusMessage->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_eucalyptusMessage->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_eucalyptusMessage->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_eucalyptusMessage_get_correlationId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, NULL); ++ ++ ++ return _eucalyptusMessage->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_correlationId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ if(_eucalyptusMessage->is_valid_correlationId && ++ arg_correlationId == _eucalyptusMessage->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_eucalyptusMessage_reset_correlationId(_eucalyptusMessage, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _eucalyptusMessage->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _eucalyptusMessage->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _eucalyptusMessage->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_reset_correlationId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_eucalyptusMessage->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _eucalyptusMessage->property_correlationId); ++ _eucalyptusMessage->property_correlationId = NULL; ++ } ++ ++ ++ ++ _eucalyptusMessage->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_correlationId_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_TRUE); ++ ++ return !_eucalyptusMessage->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_correlationId_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ return adb_eucalyptusMessage_reset_correlationId(_eucalyptusMessage, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_eucalyptusMessage_get_userId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, NULL); ++ ++ ++ return _eucalyptusMessage->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_userId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ if(_eucalyptusMessage->is_valid_userId && ++ arg_userId == _eucalyptusMessage->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_eucalyptusMessage_reset_userId(_eucalyptusMessage, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _eucalyptusMessage->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _eucalyptusMessage->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _eucalyptusMessage->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_reset_userId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_eucalyptusMessage->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _eucalyptusMessage->property_userId); ++ _eucalyptusMessage->property_userId = NULL; ++ } ++ ++ ++ ++ _eucalyptusMessage->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_userId_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_TRUE); ++ ++ return !_eucalyptusMessage->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_userId_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ return adb_eucalyptusMessage_reset_userId(_eucalyptusMessage, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_eucalyptusMessage_get_statusMessage( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, NULL); ++ ++ ++ return _eucalyptusMessage->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_statusMessage( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ if(_eucalyptusMessage->is_valid_statusMessage && ++ arg_statusMessage == _eucalyptusMessage->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_eucalyptusMessage_reset_statusMessage(_eucalyptusMessage, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _eucalyptusMessage->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _eucalyptusMessage->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _eucalyptusMessage->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_reset_statusMessage( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_eucalyptusMessage->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _eucalyptusMessage->property_statusMessage); ++ _eucalyptusMessage->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _eucalyptusMessage->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_statusMessage_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_TRUE); ++ ++ return !_eucalyptusMessage->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_statusMessage_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ return adb_eucalyptusMessage_reset_statusMessage(_eucalyptusMessage, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_get_return( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, (axis2_bool_t)0); ++ ++ ++ return _eucalyptusMessage->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_return( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ if(_eucalyptusMessage->is_valid_return && ++ arg_return == _eucalyptusMessage->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_eucalyptusMessage_reset_return(_eucalyptusMessage, env); ++ ++ _eucalyptusMessage->property_return = arg_return; ++ _eucalyptusMessage->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_reset_return( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ ++ _eucalyptusMessage->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_return_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_TRUE); ++ ++ return !_eucalyptusMessage->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_return_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ return adb_eucalyptusMessage_reset_return(_eucalyptusMessage, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_eucalyptusMessage.h' +--- old/cluster/generated/adb_eucalyptusMessage.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_eucalyptusMessage.h 2010-01-05 01:00:47 +0000 +@@ -0,0 +1,362 @@ ++ ++ ++ #ifndef ADB_EUCALYPTUSMESSAGE_H ++ #define ADB_EUCALYPTUSMESSAGE_H ++ ++ /** ++ * adb_eucalyptusMessage.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_eucalyptusMessage class ++ */ ++ typedef struct adb_eucalyptusMessage adb_eucalyptusMessage_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_eucalyptusMessage_t ++ * @param env pointer to environment struct ++ * @return newly created adb_eucalyptusMessage_t object ++ */ ++ adb_eucalyptusMessage_t* AXIS2_CALL ++ adb_eucalyptusMessage_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_eucalyptusMessage_t object ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_free ( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_eucalyptusMessage_get_correlationId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_correlationId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_reset_correlationId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_eucalyptusMessage_get_userId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_userId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_reset_userId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_eucalyptusMessage_get_statusMessage( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_statusMessage( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_reset_statusMessage( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_get_return( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_return( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_reset_return( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_correlationId_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_userId_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_statusMessage_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_statusMessage_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_return_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_deserialize( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_eucalyptusMessage_declare_parent_namespaces( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @param eucalyptusMessage_om_node node to serialize from ++ * @param eucalyptusMessage_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_eucalyptusMessage_serialize( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ axiom_node_t* eucalyptusMessage_om_node, axiom_element_t *eucalyptusMessage_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_eucalyptusMessage is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_EUCALYPTUSMESSAGE_H */ ++ ++ + +=== added file 'cluster/generated/adb_getConsoleOutputResponseType.c' +--- old/cluster/generated/adb_getConsoleOutputResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_getConsoleOutputResponseType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,1738 @@ ++ ++ ++ /** ++ * adb_getConsoleOutputResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_getConsoleOutputResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = getConsoleOutputResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_getConsoleOutputResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ axis2_char_t* property_consoleOutput; ++ ++ ++ axis2_bool_t is_valid_consoleOutput; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_set_correlationId_nil( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_set_userId_nil( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_set_return_nil( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_set_consoleOutput_nil( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_getConsoleOutputResponseType_t* AXIS2_CALL ++ adb_getConsoleOutputResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_getConsoleOutputResponseType_t *_getConsoleOutputResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _getConsoleOutputResponseType = (adb_getConsoleOutputResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_getConsoleOutputResponseType_t)); ++ ++ if(NULL == _getConsoleOutputResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_getConsoleOutputResponseType, 0, sizeof(adb_getConsoleOutputResponseType_t)); ++ ++ _getConsoleOutputResponseType->property_correlationId = NULL; ++ _getConsoleOutputResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _getConsoleOutputResponseType->property_userId = NULL; ++ _getConsoleOutputResponseType->is_valid_userId = AXIS2_FALSE; ++ _getConsoleOutputResponseType->property_statusMessage = NULL; ++ _getConsoleOutputResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _getConsoleOutputResponseType->is_valid_return = AXIS2_FALSE; ++ _getConsoleOutputResponseType->property_consoleOutput = NULL; ++ _getConsoleOutputResponseType->is_valid_consoleOutput = AXIS2_FALSE; ++ ++ ++ return _getConsoleOutputResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_free ( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ adb_getConsoleOutputResponseType_reset_correlationId(_getConsoleOutputResponseType, env); ++ adb_getConsoleOutputResponseType_reset_userId(_getConsoleOutputResponseType, env); ++ adb_getConsoleOutputResponseType_reset_statusMessage(_getConsoleOutputResponseType, env); ++ adb_getConsoleOutputResponseType_reset_return(_getConsoleOutputResponseType, env); ++ adb_getConsoleOutputResponseType_reset_consoleOutput(_getConsoleOutputResponseType, env); ++ ++ ++ if(_getConsoleOutputResponseType) ++ { ++ AXIS2_FREE(env->allocator, _getConsoleOutputResponseType); ++ _getConsoleOutputResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_deserialize( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for getConsoleOutputResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getConsoleOutputResponseType_set_correlationId(_getConsoleOutputResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_getConsoleOutputResponseType_set_correlationId(_getConsoleOutputResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getConsoleOutputResponseType_set_userId(_getConsoleOutputResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_getConsoleOutputResponseType_set_userId(_getConsoleOutputResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getConsoleOutputResponseType_set_statusMessage(_getConsoleOutputResponseType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_getConsoleOutputResponseType_set_return(_getConsoleOutputResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_getConsoleOutputResponseType_set_return(_getConsoleOutputResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building consoleOutput element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "consoleOutput", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getConsoleOutputResponseType_set_consoleOutput(_getConsoleOutputResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element consoleOutput"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_getConsoleOutputResponseType_set_consoleOutput(_getConsoleOutputResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for consoleOutput "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_getConsoleOutputResponseType_declare_parent_namespaces( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_getConsoleOutputResponseType_serialize( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getConsoleOutputResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _getConsoleOutputResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getConsoleOutputResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _getConsoleOutputResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getConsoleOutputResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _getConsoleOutputResponseType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getConsoleOutputResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_getConsoleOutputResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getConsoleOutputResponseType->is_valid_consoleOutput) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("consoleOutput"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("consoleOutput"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing consoleOutput element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sconsoleOutput>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _getConsoleOutputResponseType->property_consoleOutput; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getConsoleOutputResponseType_get_correlationId( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, NULL); ++ ++ ++ return _getConsoleOutputResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_set_correlationId( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ if(_getConsoleOutputResponseType->is_valid_correlationId && ++ arg_correlationId == _getConsoleOutputResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getConsoleOutputResponseType_reset_correlationId(_getConsoleOutputResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getConsoleOutputResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _getConsoleOutputResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _getConsoleOutputResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_reset_correlationId( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getConsoleOutputResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getConsoleOutputResponseType->property_correlationId); ++ _getConsoleOutputResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _getConsoleOutputResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_is_correlationId_nil( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_TRUE); ++ ++ return !_getConsoleOutputResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_set_correlationId_nil( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_getConsoleOutputResponseType_reset_correlationId(_getConsoleOutputResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getConsoleOutputResponseType_get_userId( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, NULL); ++ ++ ++ return _getConsoleOutputResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_set_userId( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ if(_getConsoleOutputResponseType->is_valid_userId && ++ arg_userId == _getConsoleOutputResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getConsoleOutputResponseType_reset_userId(_getConsoleOutputResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getConsoleOutputResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _getConsoleOutputResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _getConsoleOutputResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_reset_userId( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getConsoleOutputResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getConsoleOutputResponseType->property_userId); ++ _getConsoleOutputResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _getConsoleOutputResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_is_userId_nil( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_TRUE); ++ ++ return !_getConsoleOutputResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_set_userId_nil( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_getConsoleOutputResponseType_reset_userId(_getConsoleOutputResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getConsoleOutputResponseType_get_statusMessage( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, NULL); ++ ++ ++ return _getConsoleOutputResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_set_statusMessage( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ if(_getConsoleOutputResponseType->is_valid_statusMessage && ++ arg_statusMessage == _getConsoleOutputResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getConsoleOutputResponseType_reset_statusMessage(_getConsoleOutputResponseType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getConsoleOutputResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _getConsoleOutputResponseType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _getConsoleOutputResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_reset_statusMessage( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getConsoleOutputResponseType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getConsoleOutputResponseType->property_statusMessage); ++ _getConsoleOutputResponseType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _getConsoleOutputResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_is_statusMessage_nil( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_TRUE); ++ ++ return !_getConsoleOutputResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_set_statusMessage_nil( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_getConsoleOutputResponseType_reset_statusMessage(_getConsoleOutputResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_get_return( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, (axis2_bool_t)0); ++ ++ ++ return _getConsoleOutputResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_set_return( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ if(_getConsoleOutputResponseType->is_valid_return && ++ arg_return == _getConsoleOutputResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getConsoleOutputResponseType_reset_return(_getConsoleOutputResponseType, env); ++ ++ _getConsoleOutputResponseType->property_return = arg_return; ++ _getConsoleOutputResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_reset_return( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ ++ _getConsoleOutputResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_is_return_nil( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_TRUE); ++ ++ return !_getConsoleOutputResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_set_return_nil( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_getConsoleOutputResponseType_reset_return(_getConsoleOutputResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for consoleOutput. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getConsoleOutputResponseType_get_consoleOutput( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, NULL); ++ ++ ++ return _getConsoleOutputResponseType->property_consoleOutput; ++ } ++ ++ /** ++ * setter for consoleOutput ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_set_consoleOutput( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_consoleOutput) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ if(_getConsoleOutputResponseType->is_valid_consoleOutput && ++ arg_consoleOutput == _getConsoleOutputResponseType->property_consoleOutput) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getConsoleOutputResponseType_reset_consoleOutput(_getConsoleOutputResponseType, env); ++ ++ ++ if(NULL == arg_consoleOutput) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getConsoleOutputResponseType->property_consoleOutput = (axis2_char_t *)axutil_strdup(env, arg_consoleOutput); ++ if(NULL == _getConsoleOutputResponseType->property_consoleOutput) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for consoleOutput"); ++ return AXIS2_FAILURE; ++ } ++ _getConsoleOutputResponseType->is_valid_consoleOutput = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for consoleOutput ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_reset_consoleOutput( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getConsoleOutputResponseType->property_consoleOutput != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getConsoleOutputResponseType->property_consoleOutput); ++ _getConsoleOutputResponseType->property_consoleOutput = NULL; ++ } ++ ++ ++ ++ _getConsoleOutputResponseType->is_valid_consoleOutput = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether consoleOutput is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_is_consoleOutput_nil( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_TRUE); ++ ++ return !_getConsoleOutputResponseType->is_valid_consoleOutput; ++ } ++ ++ /** ++ * Set consoleOutput to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_set_consoleOutput_nil( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_getConsoleOutputResponseType_reset_consoleOutput(_getConsoleOutputResponseType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_getConsoleOutputResponseType.h' +--- old/cluster/generated/adb_getConsoleOutputResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_getConsoleOutputResponseType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,414 @@ ++ ++ ++ #ifndef ADB_GETCONSOLEOUTPUTRESPONSETYPE_H ++ #define ADB_GETCONSOLEOUTPUTRESPONSETYPE_H ++ ++ /** ++ * adb_getConsoleOutputResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_getConsoleOutputResponseType class ++ */ ++ typedef struct adb_getConsoleOutputResponseType adb_getConsoleOutputResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_getConsoleOutputResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_getConsoleOutputResponseType_t object ++ */ ++ adb_getConsoleOutputResponseType_t* AXIS2_CALL ++ adb_getConsoleOutputResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_getConsoleOutputResponseType_t object ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_free ( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getConsoleOutputResponseType_get_correlationId( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_set_correlationId( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_reset_correlationId( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getConsoleOutputResponseType_get_userId( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_set_userId( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_reset_userId( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getConsoleOutputResponseType_get_statusMessage( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_set_statusMessage( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_reset_statusMessage( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_get_return( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_set_return( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_reset_return( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for consoleOutput. ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getConsoleOutputResponseType_get_consoleOutput( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for consoleOutput. ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_consoleOutput axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_set_consoleOutput( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_consoleOutput); ++ ++ /** ++ * Resetter for consoleOutput ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_reset_consoleOutput( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_is_correlationId_nil( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_is_userId_nil( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_is_statusMessage_nil( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_set_statusMessage_nil( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_is_return_nil( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether consoleOutput is nill ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_is_consoleOutput_nil( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_deserialize( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_getConsoleOutputResponseType_declare_parent_namespaces( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @param getConsoleOutputResponseType_om_node node to serialize from ++ * @param getConsoleOutputResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_getConsoleOutputResponseType_serialize( ++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* getConsoleOutputResponseType_om_node, axiom_element_t *getConsoleOutputResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_getConsoleOutputResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_GETCONSOLEOUTPUTRESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_getConsoleOutputType.c' +--- old/cluster/generated/adb_getConsoleOutputType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_getConsoleOutputType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,1738 @@ ++ ++ ++ /** ++ * adb_getConsoleOutputType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_getConsoleOutputType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = getConsoleOutputType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_getConsoleOutputType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ axis2_char_t* property_instanceId; ++ ++ ++ axis2_bool_t is_valid_instanceId; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_set_correlationId_nil( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_set_userId_nil( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_set_return_nil( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_set_instanceId_nil( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_getConsoleOutputType_t* AXIS2_CALL ++ adb_getConsoleOutputType_create( ++ const axutil_env_t *env) ++ { ++ adb_getConsoleOutputType_t *_getConsoleOutputType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _getConsoleOutputType = (adb_getConsoleOutputType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_getConsoleOutputType_t)); ++ ++ if(NULL == _getConsoleOutputType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_getConsoleOutputType, 0, sizeof(adb_getConsoleOutputType_t)); ++ ++ _getConsoleOutputType->property_correlationId = NULL; ++ _getConsoleOutputType->is_valid_correlationId = AXIS2_FALSE; ++ _getConsoleOutputType->property_userId = NULL; ++ _getConsoleOutputType->is_valid_userId = AXIS2_FALSE; ++ _getConsoleOutputType->property_statusMessage = NULL; ++ _getConsoleOutputType->is_valid_statusMessage = AXIS2_FALSE; ++ _getConsoleOutputType->is_valid_return = AXIS2_FALSE; ++ _getConsoleOutputType->property_instanceId = NULL; ++ _getConsoleOutputType->is_valid_instanceId = AXIS2_FALSE; ++ ++ ++ return _getConsoleOutputType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_free ( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_FAILURE); ++ ++ adb_getConsoleOutputType_reset_correlationId(_getConsoleOutputType, env); ++ adb_getConsoleOutputType_reset_userId(_getConsoleOutputType, env); ++ adb_getConsoleOutputType_reset_statusMessage(_getConsoleOutputType, env); ++ adb_getConsoleOutputType_reset_return(_getConsoleOutputType, env); ++ adb_getConsoleOutputType_reset_instanceId(_getConsoleOutputType, env); ++ ++ ++ if(_getConsoleOutputType) ++ { ++ AXIS2_FREE(env->allocator, _getConsoleOutputType); ++ _getConsoleOutputType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_deserialize( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for getConsoleOutputType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getConsoleOutputType_set_correlationId(_getConsoleOutputType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_getConsoleOutputType_set_correlationId(_getConsoleOutputType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getConsoleOutputType_set_userId(_getConsoleOutputType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_getConsoleOutputType_set_userId(_getConsoleOutputType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getConsoleOutputType_set_statusMessage(_getConsoleOutputType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_getConsoleOutputType_set_return(_getConsoleOutputType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_getConsoleOutputType_set_return(_getConsoleOutputType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getConsoleOutputType_set_instanceId(_getConsoleOutputType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_getConsoleOutputType_set_instanceId(_getConsoleOutputType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_getConsoleOutputType_declare_parent_namespaces( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_getConsoleOutputType_serialize( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getConsoleOutputType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _getConsoleOutputType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getConsoleOutputType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _getConsoleOutputType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getConsoleOutputType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _getConsoleOutputType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getConsoleOutputType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_getConsoleOutputType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getConsoleOutputType->is_valid_instanceId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _getConsoleOutputType->property_instanceId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getConsoleOutputType_get_correlationId( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, NULL); ++ ++ ++ return _getConsoleOutputType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_set_correlationId( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_FAILURE); ++ ++ if(_getConsoleOutputType->is_valid_correlationId && ++ arg_correlationId == _getConsoleOutputType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getConsoleOutputType_reset_correlationId(_getConsoleOutputType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getConsoleOutputType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _getConsoleOutputType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _getConsoleOutputType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_reset_correlationId( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getConsoleOutputType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getConsoleOutputType->property_correlationId); ++ _getConsoleOutputType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _getConsoleOutputType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputType_is_correlationId_nil( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_TRUE); ++ ++ return !_getConsoleOutputType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_set_correlationId_nil( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ return adb_getConsoleOutputType_reset_correlationId(_getConsoleOutputType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getConsoleOutputType_get_userId( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, NULL); ++ ++ ++ return _getConsoleOutputType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_set_userId( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_FAILURE); ++ ++ if(_getConsoleOutputType->is_valid_userId && ++ arg_userId == _getConsoleOutputType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getConsoleOutputType_reset_userId(_getConsoleOutputType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getConsoleOutputType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _getConsoleOutputType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _getConsoleOutputType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_reset_userId( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getConsoleOutputType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getConsoleOutputType->property_userId); ++ _getConsoleOutputType->property_userId = NULL; ++ } ++ ++ ++ ++ _getConsoleOutputType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputType_is_userId_nil( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_TRUE); ++ ++ return !_getConsoleOutputType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_set_userId_nil( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ return adb_getConsoleOutputType_reset_userId(_getConsoleOutputType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getConsoleOutputType_get_statusMessage( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, NULL); ++ ++ ++ return _getConsoleOutputType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_set_statusMessage( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_FAILURE); ++ ++ if(_getConsoleOutputType->is_valid_statusMessage && ++ arg_statusMessage == _getConsoleOutputType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getConsoleOutputType_reset_statusMessage(_getConsoleOutputType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getConsoleOutputType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _getConsoleOutputType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _getConsoleOutputType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_reset_statusMessage( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getConsoleOutputType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getConsoleOutputType->property_statusMessage); ++ _getConsoleOutputType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _getConsoleOutputType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputType_is_statusMessage_nil( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_TRUE); ++ ++ return !_getConsoleOutputType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_set_statusMessage_nil( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ return adb_getConsoleOutputType_reset_statusMessage(_getConsoleOutputType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputType_get_return( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, (axis2_bool_t)0); ++ ++ ++ return _getConsoleOutputType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_set_return( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_FAILURE); ++ ++ if(_getConsoleOutputType->is_valid_return && ++ arg_return == _getConsoleOutputType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getConsoleOutputType_reset_return(_getConsoleOutputType, env); ++ ++ _getConsoleOutputType->property_return = arg_return; ++ _getConsoleOutputType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_reset_return( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_FAILURE); ++ ++ ++ _getConsoleOutputType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputType_is_return_nil( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_TRUE); ++ ++ return !_getConsoleOutputType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_set_return_nil( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ return adb_getConsoleOutputType_reset_return(_getConsoleOutputType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getConsoleOutputType_get_instanceId( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, NULL); ++ ++ ++ return _getConsoleOutputType->property_instanceId; ++ } ++ ++ /** ++ * setter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_set_instanceId( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_FAILURE); ++ ++ if(_getConsoleOutputType->is_valid_instanceId && ++ arg_instanceId == _getConsoleOutputType->property_instanceId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getConsoleOutputType_reset_instanceId(_getConsoleOutputType, env); ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getConsoleOutputType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId); ++ if(NULL == _getConsoleOutputType->property_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId"); ++ return AXIS2_FAILURE; ++ } ++ _getConsoleOutputType->is_valid_instanceId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_reset_instanceId( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getConsoleOutputType->property_instanceId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getConsoleOutputType->property_instanceId); ++ _getConsoleOutputType->property_instanceId = NULL; ++ } ++ ++ ++ ++ _getConsoleOutputType->is_valid_instanceId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputType_is_instanceId_nil( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_TRUE); ++ ++ return !_getConsoleOutputType->is_valid_instanceId; ++ } ++ ++ /** ++ * Set instanceId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_set_instanceId_nil( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ return adb_getConsoleOutputType_reset_instanceId(_getConsoleOutputType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_getConsoleOutputType.h' +--- old/cluster/generated/adb_getConsoleOutputType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_getConsoleOutputType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,414 @@ ++ ++ ++ #ifndef ADB_GETCONSOLEOUTPUTTYPE_H ++ #define ADB_GETCONSOLEOUTPUTTYPE_H ++ ++ /** ++ * adb_getConsoleOutputType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_getConsoleOutputType class ++ */ ++ typedef struct adb_getConsoleOutputType adb_getConsoleOutputType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_getConsoleOutputType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_getConsoleOutputType_t object ++ */ ++ adb_getConsoleOutputType_t* AXIS2_CALL ++ adb_getConsoleOutputType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_getConsoleOutputType_t object ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_free ( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getConsoleOutputType_get_correlationId( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_set_correlationId( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_reset_correlationId( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getConsoleOutputType_get_userId( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_set_userId( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_reset_userId( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getConsoleOutputType_get_statusMessage( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_set_statusMessage( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_reset_statusMessage( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputType_get_return( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_set_return( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_reset_return( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceId. ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getConsoleOutputType_get_instanceId( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceId. ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_set_instanceId( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId); ++ ++ /** ++ * Resetter for instanceId ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_reset_instanceId( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputType_is_correlationId_nil( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputType_is_userId_nil( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputType_is_statusMessage_nil( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_set_statusMessage_nil( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputType_is_return_nil( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether instanceId is nill ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputType_is_instanceId_nil( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getConsoleOutputType_deserialize( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_getConsoleOutputType_declare_parent_namespaces( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @param getConsoleOutputType_om_node node to serialize from ++ * @param getConsoleOutputType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_getConsoleOutputType_serialize( ++ adb_getConsoleOutputType_t* _getConsoleOutputType, ++ const axutil_env_t *env, ++ axiom_node_t* getConsoleOutputType_om_node, axiom_element_t *getConsoleOutputType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_getConsoleOutputType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getConsoleOutputType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_GETCONSOLEOUTPUTTYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_instanceType.c' +--- old/cluster/generated/adb_instanceType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_instanceType.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,6284 @@ ++ ++ ++ /** ++ * adb_instanceType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_instanceType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = instanceType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_instanceType ++ { ++ axis2_char_t* property_reservationId; ++ ++ ++ axis2_bool_t is_valid_reservationId; ++ ++ ++ axis2_char_t* property_instanceId; ++ ++ ++ axis2_bool_t is_valid_instanceId; ++ ++ ++ axis2_char_t* property_imageId; ++ ++ ++ axis2_bool_t is_valid_imageId; ++ ++ ++ axis2_char_t* property_kernelId; ++ ++ ++ axis2_bool_t is_valid_kernelId; ++ ++ ++ axis2_char_t* property_ramdiskId; ++ ++ ++ axis2_bool_t is_valid_ramdiskId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_keyName; ++ ++ ++ axis2_bool_t is_valid_keyName; ++ ++ ++ adb_virtualMachineType_t* property_instanceType; ++ ++ ++ axis2_bool_t is_valid_instanceType; ++ ++ ++ adb_netConfigType_t* property_netParams; ++ ++ ++ axis2_bool_t is_valid_netParams; ++ ++ ++ axis2_char_t* property_stateName; ++ ++ ++ axis2_bool_t is_valid_stateName; ++ ++ ++ axutil_date_time_t* property_launchTime; ++ ++ ++ axis2_bool_t is_valid_launchTime; ++ ++ ++ axis2_char_t* property_userData; ++ ++ ++ axis2_bool_t is_valid_userData; ++ ++ ++ axis2_char_t* property_launchIndex; ++ ++ ++ axis2_bool_t is_valid_launchIndex; ++ ++ ++ axutil_array_list_t* property_groupNames; ++ ++ ++ axis2_bool_t is_valid_groupNames; ++ ++ ++ axutil_array_list_t* property_volumes; ++ ++ ++ axis2_bool_t is_valid_volumes; ++ ++ ++ axis2_char_t* property_serviceTag; ++ ++ ++ axis2_bool_t is_valid_serviceTag; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_reservationId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_instanceId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_imageId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_kernelId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_ramdiskId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_userId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_keyName_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_instanceType_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_netParams_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_stateName_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_launchTime_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_userData_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_launchIndex_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_groupNames_nil_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_groupNames_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_volumes_nil_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_volumes_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_serviceTag_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_instanceType_t* AXIS2_CALL ++ adb_instanceType_create( ++ const axutil_env_t *env) ++ { ++ adb_instanceType_t *_instanceType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _instanceType = (adb_instanceType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_instanceType_t)); ++ ++ if(NULL == _instanceType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_instanceType, 0, sizeof(adb_instanceType_t)); ++ ++ _instanceType->property_reservationId = NULL; ++ _instanceType->is_valid_reservationId = AXIS2_FALSE; ++ _instanceType->property_instanceId = NULL; ++ _instanceType->is_valid_instanceId = AXIS2_FALSE; ++ _instanceType->property_imageId = NULL; ++ _instanceType->is_valid_imageId = AXIS2_FALSE; ++ _instanceType->property_kernelId = NULL; ++ _instanceType->is_valid_kernelId = AXIS2_FALSE; ++ _instanceType->property_ramdiskId = NULL; ++ _instanceType->is_valid_ramdiskId = AXIS2_FALSE; ++ _instanceType->property_userId = NULL; ++ _instanceType->is_valid_userId = AXIS2_FALSE; ++ _instanceType->property_keyName = NULL; ++ _instanceType->is_valid_keyName = AXIS2_FALSE; ++ _instanceType->property_instanceType = NULL; ++ _instanceType->is_valid_instanceType = AXIS2_FALSE; ++ _instanceType->property_netParams = NULL; ++ _instanceType->is_valid_netParams = AXIS2_FALSE; ++ _instanceType->property_stateName = NULL; ++ _instanceType->is_valid_stateName = AXIS2_FALSE; ++ _instanceType->property_launchTime = NULL; ++ _instanceType->is_valid_launchTime = AXIS2_FALSE; ++ _instanceType->property_userData = NULL; ++ _instanceType->is_valid_userData = AXIS2_FALSE; ++ _instanceType->property_launchIndex = NULL; ++ _instanceType->is_valid_launchIndex = AXIS2_FALSE; ++ _instanceType->property_groupNames = NULL; ++ _instanceType->is_valid_groupNames = AXIS2_FALSE; ++ _instanceType->property_volumes = NULL; ++ _instanceType->is_valid_volumes = AXIS2_FALSE; ++ _instanceType->property_serviceTag = NULL; ++ _instanceType->is_valid_serviceTag = AXIS2_FALSE; ++ ++ ++ return _instanceType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_free ( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ adb_instanceType_reset_reservationId(_instanceType, env); ++ adb_instanceType_reset_instanceId(_instanceType, env); ++ adb_instanceType_reset_imageId(_instanceType, env); ++ adb_instanceType_reset_kernelId(_instanceType, env); ++ adb_instanceType_reset_ramdiskId(_instanceType, env); ++ adb_instanceType_reset_userId(_instanceType, env); ++ adb_instanceType_reset_keyName(_instanceType, env); ++ adb_instanceType_reset_instanceType(_instanceType, env); ++ adb_instanceType_reset_netParams(_instanceType, env); ++ adb_instanceType_reset_stateName(_instanceType, env); ++ adb_instanceType_reset_launchTime(_instanceType, env); ++ adb_instanceType_reset_userData(_instanceType, env); ++ adb_instanceType_reset_launchIndex(_instanceType, env); ++ adb_instanceType_reset_groupNames(_instanceType, env); ++ adb_instanceType_reset_volumes(_instanceType, env); ++ adb_instanceType_reset_serviceTag(_instanceType, env); ++ ++ ++ if(_instanceType) ++ { ++ AXIS2_FREE(env->allocator, _instanceType); ++ _instanceType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_deserialize( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for instanceType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building reservationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "reservationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_instanceType_set_reservationId(_instanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element reservationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_instanceType_set_reservationId(_instanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for reservationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element reservationId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_instanceType_set_instanceId(_instanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_instanceType_set_instanceId(_instanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element instanceId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building imageId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "imageId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_instanceType_set_imageId(_instanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element imageId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_instanceType_set_imageId(_instanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for imageId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element imageId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building kernelId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "kernelId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_instanceType_set_kernelId(_instanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element kernelId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_instanceType_set_kernelId(_instanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for kernelId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element kernelId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building ramdiskId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "ramdiskId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_instanceType_set_ramdiskId(_instanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element ramdiskId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_instanceType_set_ramdiskId(_instanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ramdiskId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_instanceType_set_userId(_instanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_instanceType_set_userId(_instanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element userId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building keyName element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "keyName", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_instanceType_set_keyName(_instanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element keyName"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_instanceType_set_keyName(_instanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for keyName "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element keyName missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceType element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceType", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_virtualMachineType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_virtualMachineType_create(env); ++ ++ status = adb_virtualMachineType_deserialize((adb_virtualMachineType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element instanceType"); ++ } ++ else ++ { ++ status = adb_instanceType_set_instanceType(_instanceType, env, ++ (adb_virtualMachineType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceType "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element instanceType missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building netParams element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "netParams", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_netConfigType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_netConfigType_create(env); ++ ++ status = adb_netConfigType_deserialize((adb_netConfigType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element netParams"); ++ } ++ else ++ { ++ status = adb_instanceType_set_netParams(_instanceType, env, ++ (adb_netConfigType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for netParams "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building stateName element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "stateName", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_instanceType_set_stateName(_instanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element stateName"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_instanceType_set_stateName(_instanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for stateName "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element stateName missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building launchTime element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "launchTime", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ element = (void*)axutil_date_time_create(env); ++ status = axutil_date_time_deserialize_date_time((axutil_date_time_t*)element, env, ++ text_value); ++ if(AXIS2_FAILURE == status) ++ { ++ if(element != NULL) ++ { ++ axutil_date_time_free((axutil_date_time_t*)element, env); ++ } ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building element launchTime "); ++ } ++ else ++ { ++ status = adb_instanceType_set_launchTime(_instanceType, env, ++ (axutil_date_time_t*)element); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element launchTime"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for launchTime "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userData element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userData", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_instanceType_set_userData(_instanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userData"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_instanceType_set_userData(_instanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userData "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building launchIndex element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "launchIndex", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_instanceType_set_launchIndex(_instanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element launchIndex"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_instanceType_set_launchIndex(_instanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for launchIndex "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building groupNames array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building groupNames element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "groupNames", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value)); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element groupNames"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, "")); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for groupNames "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "groupNames (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_instanceType_set_groupNames(_instanceType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building volumes array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building volumes element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "volumes", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ element = (void*)adb_volumeType_create(env); ++ ++ status = adb_volumeType_deserialize((adb_volumeType_t*)element, env, ++ ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building element volumes "); ++ } ++ else ++ { ++ axutil_array_list_add_at(arr_list, env, i, element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for volumes "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "volumes (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_instanceType_set_volumes(_instanceType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building serviceTag element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "serviceTag", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_instanceType_set_serviceTag(_instanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element serviceTag"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_instanceType_set_serviceTag(_instanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for serviceTag "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_instanceType_declare_parent_namespaces( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_instanceType_serialize( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t *text_value_4; ++ axis2_char_t *text_value_4_temp; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *text_value_6; ++ axis2_char_t *text_value_6_temp; ++ ++ axis2_char_t *text_value_7; ++ axis2_char_t *text_value_7_temp; ++ ++ axis2_char_t text_value_8[64]; ++ ++ axis2_char_t text_value_9[64]; ++ ++ axis2_char_t *text_value_10; ++ axis2_char_t *text_value_10_temp; ++ ++ axis2_char_t *text_value_11; ++ axis2_char_t *text_value_11_temp; ++ ++ axis2_char_t *text_value_12; ++ axis2_char_t *text_value_12_temp; ++ ++ axis2_char_t *text_value_13; ++ axis2_char_t *text_value_13_temp; ++ ++ axis2_char_t *text_value_14; ++ axis2_char_t *text_value_14_temp; ++ ++ axis2_char_t text_value_15[64]; ++ ++ axis2_char_t *text_value_16; ++ axis2_char_t *text_value_16_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_reservationId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property reservationId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("reservationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("reservationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing reservationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreservationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _instanceType->property_reservationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_instanceId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _instanceType->property_instanceId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_imageId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property imageId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("imageId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("imageId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing imageId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%simageId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _instanceType->property_imageId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_kernelId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property kernelId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("kernelId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("kernelId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing kernelId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%skernelId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_4 = _instanceType->property_kernelId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_4_temp = axutil_xml_quote_string(env, text_value_4, AXIS2_TRUE); ++ if (text_value_4_temp) ++ { ++ axutil_stream_write(stream, env, text_value_4_temp, axutil_strlen(text_value_4_temp)); ++ AXIS2_FREE(env->allocator, text_value_4_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_ramdiskId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ramdiskId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ramdiskId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ramdiskId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sramdiskId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _instanceType->property_ramdiskId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_userId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property userId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_6 = _instanceType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE); ++ if (text_value_6_temp) ++ { ++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp)); ++ AXIS2_FREE(env->allocator, text_value_6_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_keyName) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property keyName"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("keyName"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("keyName"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing keyName element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%skeyName>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_7 = _instanceType->property_keyName; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE); ++ if (text_value_7_temp) ++ { ++ axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp)); ++ AXIS2_FREE(env->allocator, text_value_7_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_instanceType) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceType"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceType"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceType"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceType element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceType", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ if(!adb_virtualMachineType_is_particle()) ++ { ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ } ++ ++ adb_virtualMachineType_serialize(_instanceType->property_instanceType, ++ env, current_node, parent_element, ++ adb_virtualMachineType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index); ++ ++ if(!adb_virtualMachineType_is_particle()) ++ { ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_netParams) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("netParams"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("netParams"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing netParams element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%snetParams", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ if(!adb_netConfigType_is_particle()) ++ { ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ } ++ ++ adb_netConfigType_serialize(_instanceType->property_netParams, ++ env, current_node, parent_element, ++ adb_netConfigType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index); ++ ++ if(!adb_netConfigType_is_particle()) ++ { ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_stateName) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property stateName"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("stateName"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("stateName"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing stateName element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstateName>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_10 = _instanceType->property_stateName; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_10_temp = axutil_xml_quote_string(env, text_value_10, AXIS2_TRUE); ++ if (text_value_10_temp) ++ { ++ axutil_stream_write(stream, env, text_value_10_temp, axutil_strlen(text_value_10_temp)); ++ AXIS2_FREE(env->allocator, text_value_10_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_10, axutil_strlen(text_value_10)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_launchTime) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("launchTime"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("launchTime"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing launchTime element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%slaunchTime>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_11 = axutil_date_time_serialize_date_time(_instanceType->property_launchTime, env); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_11, axutil_strlen(text_value_11)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_userData) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userData"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userData"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userData element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserData>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_12 = _instanceType->property_userData; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_12_temp = axutil_xml_quote_string(env, text_value_12, AXIS2_TRUE); ++ if (text_value_12_temp) ++ { ++ axutil_stream_write(stream, env, text_value_12_temp, axutil_strlen(text_value_12_temp)); ++ AXIS2_FREE(env->allocator, text_value_12_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_12, axutil_strlen(text_value_12)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_launchIndex) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("launchIndex"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("launchIndex"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing launchIndex element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%slaunchIndex>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_13 = _instanceType->property_launchIndex; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_13_temp = axutil_xml_quote_string(env, text_value_13, AXIS2_TRUE); ++ if (text_value_13_temp) ++ { ++ axutil_stream_write(stream, env, text_value_13_temp, axutil_strlen(text_value_13_temp)); ++ AXIS2_FREE(env->allocator, text_value_13_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_13, axutil_strlen(text_value_13)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_groupNames) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("groupNames"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("groupNames"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing groupNames array ++ */ ++ if (_instanceType->property_groupNames != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%sgroupNames>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_instanceType->property_groupNames, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_instanceType->property_groupNames, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing groupNames element ++ */ ++ ++ ++ ++ text_value_14 = (axis2_char_t*)element; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_14_temp = axutil_xml_quote_string(env, text_value_14, AXIS2_TRUE); ++ if (text_value_14_temp) ++ { ++ axutil_stream_write(stream, env, text_value_14_temp, axutil_strlen(text_value_14_temp)); ++ AXIS2_FREE(env->allocator, text_value_14_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_14, axutil_strlen(text_value_14)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_volumes) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("volumes"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("volumes"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing volumes array ++ */ ++ if (_instanceType->property_volumes != NULL) ++ { ++ ++ ++ sprintf(start_input_str, "<%s%svolumes", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_instanceType->property_volumes, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_instanceType->property_volumes, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing volumes element ++ */ ++ ++ ++ ++ if(!adb_volumeType_is_particle()) ++ { ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ } ++ ++ adb_volumeType_serialize((adb_volumeType_t*)element, ++ env, current_node, parent_element, ++ adb_volumeType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index); ++ ++ if(!adb_volumeType_is_particle()) ++ { ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ } ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_serviceTag) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("serviceTag"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("serviceTag"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing serviceTag element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sserviceTag>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_16 = _instanceType->property_serviceTag; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_16_temp = axutil_xml_quote_string(env, text_value_16, AXIS2_TRUE); ++ if (text_value_16_temp) ++ { ++ axutil_stream_write(stream, env, text_value_16_temp, axutil_strlen(text_value_16_temp)); ++ AXIS2_FREE(env->allocator, text_value_16_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_16, axutil_strlen(text_value_16)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for reservationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_reservationId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_reservationId; ++ } ++ ++ /** ++ * setter for reservationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_reservationId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_reservationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_reservationId && ++ arg_reservationId == _instanceType->property_reservationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_reservationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "reservationId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_instanceType_reset_reservationId(_instanceType, env); ++ ++ ++ if(NULL == arg_reservationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_reservationId = (axis2_char_t *)axutil_strdup(env, arg_reservationId); ++ if(NULL == _instanceType->property_reservationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for reservationId"); ++ return AXIS2_FAILURE; ++ } ++ _instanceType->is_valid_reservationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for reservationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_reservationId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_reservationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _instanceType->property_reservationId); ++ _instanceType->property_reservationId = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_reservationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether reservationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_reservationId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_reservationId; ++ } ++ ++ /** ++ * Set reservationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_reservationId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_reservationId(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_instanceId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_instanceId; ++ } ++ ++ /** ++ * setter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_instanceId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_instanceId && ++ arg_instanceId == _instanceType->property_instanceId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_instanceType_reset_instanceId(_instanceType, env); ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId); ++ if(NULL == _instanceType->property_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId"); ++ return AXIS2_FAILURE; ++ } ++ _instanceType->is_valid_instanceId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_instanceId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_instanceId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _instanceType->property_instanceId); ++ _instanceType->property_instanceId = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_instanceId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_instanceId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_instanceId; ++ } ++ ++ /** ++ * Set instanceId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_instanceId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_instanceId(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for imageId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_imageId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_imageId; ++ } ++ ++ /** ++ * setter for imageId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_imageId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_imageId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_imageId && ++ arg_imageId == _instanceType->property_imageId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_imageId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "imageId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_instanceType_reset_imageId(_instanceType, env); ++ ++ ++ if(NULL == arg_imageId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_imageId = (axis2_char_t *)axutil_strdup(env, arg_imageId); ++ if(NULL == _instanceType->property_imageId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for imageId"); ++ return AXIS2_FAILURE; ++ } ++ _instanceType->is_valid_imageId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for imageId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_imageId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_imageId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _instanceType->property_imageId); ++ _instanceType->property_imageId = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_imageId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether imageId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_imageId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_imageId; ++ } ++ ++ /** ++ * Set imageId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_imageId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_imageId(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for kernelId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_kernelId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_kernelId; ++ } ++ ++ /** ++ * setter for kernelId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_kernelId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_kernelId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_kernelId && ++ arg_kernelId == _instanceType->property_kernelId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_kernelId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "kernelId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_instanceType_reset_kernelId(_instanceType, env); ++ ++ ++ if(NULL == arg_kernelId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_kernelId = (axis2_char_t *)axutil_strdup(env, arg_kernelId); ++ if(NULL == _instanceType->property_kernelId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for kernelId"); ++ return AXIS2_FAILURE; ++ } ++ _instanceType->is_valid_kernelId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for kernelId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_kernelId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_kernelId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _instanceType->property_kernelId); ++ _instanceType->property_kernelId = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_kernelId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether kernelId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_kernelId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_kernelId; ++ } ++ ++ /** ++ * Set kernelId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_kernelId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_kernelId(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for ramdiskId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_ramdiskId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_ramdiskId; ++ } ++ ++ /** ++ * setter for ramdiskId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_ramdiskId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_ramdiskId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_ramdiskId && ++ arg_ramdiskId == _instanceType->property_ramdiskId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_instanceType_reset_ramdiskId(_instanceType, env); ++ ++ ++ if(NULL == arg_ramdiskId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_ramdiskId = (axis2_char_t *)axutil_strdup(env, arg_ramdiskId); ++ if(NULL == _instanceType->property_ramdiskId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for ramdiskId"); ++ return AXIS2_FAILURE; ++ } ++ _instanceType->is_valid_ramdiskId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ramdiskId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_ramdiskId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_ramdiskId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _instanceType->property_ramdiskId); ++ _instanceType->property_ramdiskId = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_ramdiskId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ramdiskId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_ramdiskId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_ramdiskId; ++ } ++ ++ /** ++ * Set ramdiskId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_ramdiskId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_ramdiskId(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_userId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_userId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_userId && ++ arg_userId == _instanceType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "userId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_instanceType_reset_userId(_instanceType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _instanceType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _instanceType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_userId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _instanceType->property_userId); ++ _instanceType->property_userId = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_userId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_userId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_userId(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for keyName. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_keyName( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_keyName; ++ } ++ ++ /** ++ * setter for keyName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_keyName( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_keyName) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_keyName && ++ arg_keyName == _instanceType->property_keyName) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_keyName) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "keyName is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_instanceType_reset_keyName(_instanceType, env); ++ ++ ++ if(NULL == arg_keyName) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_keyName = (axis2_char_t *)axutil_strdup(env, arg_keyName); ++ if(NULL == _instanceType->property_keyName) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for keyName"); ++ return AXIS2_FAILURE; ++ } ++ _instanceType->is_valid_keyName = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for keyName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_keyName( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_keyName != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _instanceType->property_keyName); ++ _instanceType->property_keyName = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_keyName = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether keyName is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_keyName_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_keyName; ++ } ++ ++ /** ++ * Set keyName to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_keyName_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_keyName(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceType. ++ */ ++ adb_virtualMachineType_t* AXIS2_CALL ++ adb_instanceType_get_instanceType( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_instanceType; ++ } ++ ++ /** ++ * setter for instanceType ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_instanceType( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ adb_virtualMachineType_t* arg_instanceType) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_instanceType && ++ arg_instanceType == _instanceType->property_instanceType) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instanceType) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceType is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_instanceType_reset_instanceType(_instanceType, env); ++ ++ ++ if(NULL == arg_instanceType) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_instanceType = arg_instanceType; ++ _instanceType->is_valid_instanceType = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceType ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_instanceType( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_instanceType != NULL) ++ { ++ ++ ++ adb_virtualMachineType_free(_instanceType->property_instanceType, env); ++ _instanceType->property_instanceType = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_instanceType = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceType is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_instanceType_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_instanceType; ++ } ++ ++ /** ++ * Set instanceType to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_instanceType_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_instanceType(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for netParams. ++ */ ++ adb_netConfigType_t* AXIS2_CALL ++ adb_instanceType_get_netParams( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_netParams; ++ } ++ ++ /** ++ * setter for netParams ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_netParams( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ adb_netConfigType_t* arg_netParams) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_netParams && ++ arg_netParams == _instanceType->property_netParams) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_instanceType_reset_netParams(_instanceType, env); ++ ++ ++ if(NULL == arg_netParams) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_netParams = arg_netParams; ++ _instanceType->is_valid_netParams = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for netParams ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_netParams( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_netParams != NULL) ++ { ++ ++ ++ adb_netConfigType_free(_instanceType->property_netParams, env); ++ _instanceType->property_netParams = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_netParams = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether netParams is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_netParams_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_netParams; ++ } ++ ++ /** ++ * Set netParams to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_netParams_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_netParams(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for stateName. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_stateName( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_stateName; ++ } ++ ++ /** ++ * setter for stateName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_stateName( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_stateName) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_stateName && ++ arg_stateName == _instanceType->property_stateName) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_stateName) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "stateName is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_instanceType_reset_stateName(_instanceType, env); ++ ++ ++ if(NULL == arg_stateName) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_stateName = (axis2_char_t *)axutil_strdup(env, arg_stateName); ++ if(NULL == _instanceType->property_stateName) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for stateName"); ++ return AXIS2_FAILURE; ++ } ++ _instanceType->is_valid_stateName = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for stateName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_stateName( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_stateName != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _instanceType->property_stateName); ++ _instanceType->property_stateName = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_stateName = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether stateName is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_stateName_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_stateName; ++ } ++ ++ /** ++ * Set stateName to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_stateName_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_stateName(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for launchTime. ++ */ ++ axutil_date_time_t* AXIS2_CALL ++ adb_instanceType_get_launchTime( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_launchTime; ++ } ++ ++ /** ++ * setter for launchTime ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_launchTime( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ axutil_date_time_t* arg_launchTime) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_launchTime && ++ arg_launchTime == _instanceType->property_launchTime) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_instanceType_reset_launchTime(_instanceType, env); ++ ++ ++ if(NULL == arg_launchTime) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_launchTime = arg_launchTime; ++ _instanceType->is_valid_launchTime = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for launchTime ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_launchTime( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_launchTime != NULL) ++ { ++ ++ ++ axutil_date_time_free(_instanceType->property_launchTime, env); ++ _instanceType->property_launchTime = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_launchTime = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether launchTime is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_launchTime_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_launchTime; ++ } ++ ++ /** ++ * Set launchTime to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_launchTime_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_launchTime(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userData. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_userData( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_userData; ++ } ++ ++ /** ++ * setter for userData ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_userData( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userData) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_userData && ++ arg_userData == _instanceType->property_userData) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_instanceType_reset_userData(_instanceType, env); ++ ++ ++ if(NULL == arg_userData) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_userData = (axis2_char_t *)axutil_strdup(env, arg_userData); ++ if(NULL == _instanceType->property_userData) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userData"); ++ return AXIS2_FAILURE; ++ } ++ _instanceType->is_valid_userData = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userData ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_userData( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_userData != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _instanceType->property_userData); ++ _instanceType->property_userData = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_userData = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userData is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_userData_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_userData; ++ } ++ ++ /** ++ * Set userData to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_userData_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_userData(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for launchIndex. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_launchIndex( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_launchIndex; ++ } ++ ++ /** ++ * setter for launchIndex ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_launchIndex( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_launchIndex) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_launchIndex && ++ arg_launchIndex == _instanceType->property_launchIndex) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_instanceType_reset_launchIndex(_instanceType, env); ++ ++ ++ if(NULL == arg_launchIndex) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_launchIndex = (axis2_char_t *)axutil_strdup(env, arg_launchIndex); ++ if(NULL == _instanceType->property_launchIndex) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for launchIndex"); ++ return AXIS2_FAILURE; ++ } ++ _instanceType->is_valid_launchIndex = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for launchIndex ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_launchIndex( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_launchIndex != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _instanceType->property_launchIndex); ++ _instanceType->property_launchIndex = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_launchIndex = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether launchIndex is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_launchIndex_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_launchIndex; ++ } ++ ++ /** ++ * Set launchIndex to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_launchIndex_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_launchIndex(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for groupNames. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_instanceType_get_groupNames( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_groupNames; ++ } ++ ++ /** ++ * setter for groupNames ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_groupNames( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_groupNames) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_groupNames && ++ arg_groupNames == _instanceType->property_groupNames) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_groupNames, env); ++ ++ if (size > 64) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "groupNames has exceed the maxOccurs(64)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "groupNames has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_groupNames, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_instanceType_reset_groupNames(_instanceType, env); ++ ++ ++ if(NULL == arg_groupNames) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_groupNames = arg_groupNames; ++ if(non_nil_exists) ++ { ++ _instanceType->is_valid_groupNames = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of groupNames. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_groupNames_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i) ++ { ++ axis2_char_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ if(_instanceType->property_groupNames == NULL) ++ { ++ return (axis2_char_t*)0; ++ } ++ ret_val = (axis2_char_t*)axutil_array_list_get(_instanceType->property_groupNames, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of groupNames. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_groupNames_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_groupNames) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if( _instanceType->is_valid_groupNames && ++ _instanceType->property_groupNames && ++ ++ arg_groupNames == (axis2_char_t*)axutil_array_list_get(_instanceType->property_groupNames, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_groupNames) ++ { ++ if(_instanceType->property_groupNames != NULL) ++ { ++ size = axutil_array_list_size(_instanceType->property_groupNames, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_instanceType->property_groupNames, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of groupNames is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_instanceType->property_groupNames == NULL) ++ { ++ _instanceType->property_groupNames = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_instanceType->property_groupNames, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _instanceType->is_valid_groupNames = AXIS2_FALSE; ++ axutil_array_list_set(_instanceType->property_groupNames , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_instanceType->property_groupNames , env, i, axutil_strdup(env, arg_groupNames)); ++ _instanceType->is_valid_groupNames = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to groupNames. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_add_groupNames( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_groupNames) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_groupNames) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_instanceType->property_groupNames == NULL) ++ { ++ _instanceType->property_groupNames = axutil_array_list_create(env, 10); ++ } ++ if(_instanceType->property_groupNames == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for groupNames"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_instanceType->property_groupNames , env, axutil_strdup(env, arg_groupNames)); ++ _instanceType->is_valid_groupNames = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the groupNames array. ++ */ ++ int AXIS2_CALL ++ adb_instanceType_sizeof_groupNames( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, -1); ++ if(_instanceType->property_groupNames == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_instanceType->property_groupNames, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_remove_groupNames_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_instanceType_set_groupNames_nil_at(_instanceType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for groupNames ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_groupNames( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ if (_instanceType->property_groupNames != NULL) ++ { ++ count = axutil_array_list_size(_instanceType->property_groupNames, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_instanceType->property_groupNames, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_instanceType->property_groupNames, env); ++ } ++ _instanceType->is_valid_groupNames = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether groupNames is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_groupNames_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_groupNames; ++ } ++ ++ /** ++ * Set groupNames to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_groupNames_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_groupNames(_instanceType, env); ++ } ++ ++ ++ /** ++ * Check whether groupNames is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_groupNames_nil_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return (_instanceType->is_valid_groupNames == AXIS2_FALSE || ++ NULL == _instanceType->property_groupNames || ++ NULL == axutil_array_list_get(_instanceType->property_groupNames, env, i)); ++ } ++ ++ /** ++ * Set groupNames to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_groupNames_nil_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->property_groupNames == NULL || ++ _instanceType->is_valid_groupNames == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_instanceType->property_groupNames, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_instanceType->property_groupNames, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of groupNames is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_instanceType->property_groupNames == NULL) ++ { ++ _instanceType->is_valid_groupNames = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_instanceType->property_groupNames, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _instanceType->is_valid_groupNames = AXIS2_FALSE; ++ axutil_array_list_set(_instanceType->property_groupNames , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_instanceType->property_groupNames , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ ++ /** ++ * getter for volumes. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_instanceType_get_volumes( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_volumes; ++ } ++ ++ /** ++ * setter for volumes ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_volumes( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_volumes) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_volumes && ++ arg_volumes == _instanceType->property_volumes) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_volumes, env); ++ ++ if (size > 64) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "volumes has exceed the maxOccurs(64)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "volumes has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_volumes, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_instanceType_reset_volumes(_instanceType, env); ++ ++ ++ if(NULL == arg_volumes) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_volumes = arg_volumes; ++ if(non_nil_exists) ++ { ++ _instanceType->is_valid_volumes = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of volumes. ++ */ ++ adb_volumeType_t* AXIS2_CALL ++ adb_instanceType_get_volumes_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i) ++ { ++ adb_volumeType_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ if(_instanceType->property_volumes == NULL) ++ { ++ return (adb_volumeType_t*)0; ++ } ++ ret_val = (adb_volumeType_t*)axutil_array_list_get(_instanceType->property_volumes, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of volumes. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_volumes_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i, ++ adb_volumeType_t* arg_volumes) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if( _instanceType->is_valid_volumes && ++ _instanceType->property_volumes && ++ ++ arg_volumes == (adb_volumeType_t*)axutil_array_list_get(_instanceType->property_volumes, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_volumes) ++ { ++ if(_instanceType->property_volumes != NULL) ++ { ++ size = axutil_array_list_size(_instanceType->property_volumes, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_instanceType->property_volumes, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of volumes is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_instanceType->property_volumes == NULL) ++ { ++ _instanceType->property_volumes = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_instanceType->property_volumes, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ adb_volumeType_free((adb_volumeType_t*)element, env); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _instanceType->is_valid_volumes = AXIS2_FALSE; ++ axutil_array_list_set(_instanceType->property_volumes , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_instanceType->property_volumes , env, i, arg_volumes); ++ _instanceType->is_valid_volumes = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to volumes. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_add_volumes( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ adb_volumeType_t* arg_volumes) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_volumes) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_instanceType->property_volumes == NULL) ++ { ++ _instanceType->property_volumes = axutil_array_list_create(env, 10); ++ } ++ if(_instanceType->property_volumes == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for volumes"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_instanceType->property_volumes , env, arg_volumes); ++ _instanceType->is_valid_volumes = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the volumes array. ++ */ ++ int AXIS2_CALL ++ adb_instanceType_sizeof_volumes( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, -1); ++ if(_instanceType->property_volumes == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_instanceType->property_volumes, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_remove_volumes_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_instanceType_set_volumes_nil_at(_instanceType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for volumes ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_volumes( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ if (_instanceType->property_volumes != NULL) ++ { ++ count = axutil_array_list_size(_instanceType->property_volumes, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_instanceType->property_volumes, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ adb_volumeType_free((adb_volumeType_t*)element, env); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_instanceType->property_volumes, env); ++ } ++ _instanceType->is_valid_volumes = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether volumes is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_volumes_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_volumes; ++ } ++ ++ /** ++ * Set volumes to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_volumes_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_volumes(_instanceType, env); ++ } ++ ++ ++ /** ++ * Check whether volumes is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_volumes_nil_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return (_instanceType->is_valid_volumes == AXIS2_FALSE || ++ NULL == _instanceType->property_volumes || ++ NULL == axutil_array_list_get(_instanceType->property_volumes, env, i)); ++ } ++ ++ /** ++ * Set volumes to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_volumes_nil_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->property_volumes == NULL || ++ _instanceType->is_valid_volumes == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_instanceType->property_volumes, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_instanceType->property_volumes, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of volumes is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_instanceType->property_volumes == NULL) ++ { ++ _instanceType->is_valid_volumes = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_instanceType->property_volumes, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ adb_volumeType_free((adb_volumeType_t*)element, env); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _instanceType->is_valid_volumes = AXIS2_FALSE; ++ axutil_array_list_set(_instanceType->property_volumes , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_instanceType->property_volumes , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ ++ /** ++ * getter for serviceTag. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_serviceTag( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_serviceTag; ++ } ++ ++ /** ++ * setter for serviceTag ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_serviceTag( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_serviceTag) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_serviceTag && ++ arg_serviceTag == _instanceType->property_serviceTag) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_instanceType_reset_serviceTag(_instanceType, env); ++ ++ ++ if(NULL == arg_serviceTag) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_serviceTag = (axis2_char_t *)axutil_strdup(env, arg_serviceTag); ++ if(NULL == _instanceType->property_serviceTag) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for serviceTag"); ++ return AXIS2_FAILURE; ++ } ++ _instanceType->is_valid_serviceTag = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for serviceTag ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_serviceTag( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_serviceTag != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _instanceType->property_serviceTag); ++ _instanceType->property_serviceTag = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_serviceTag = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether serviceTag is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_serviceTag_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_serviceTag; ++ } ++ ++ /** ++ * Set serviceTag to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_serviceTag_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_serviceTag(_instanceType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_instanceType.h' +--- old/cluster/generated/adb_instanceType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_instanceType.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,1199 @@ ++ ++ ++ #ifndef ADB_INSTANCETYPE_H ++ #define ADB_INSTANCETYPE_H ++ ++ /** ++ * adb_instanceType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_instanceType class ++ */ ++ typedef struct adb_instanceType adb_instanceType_t; ++ ++ ++ #include "adb_virtualMachineType.h" ++ ++ #include "adb_netConfigType.h" ++ ++ #include "adb_volumeType.h" ++ ++ #include ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_instanceType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_instanceType_t object ++ */ ++ adb_instanceType_t* AXIS2_CALL ++ adb_instanceType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_instanceType_t object ++ * @param _instanceType adb_instanceType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_free ( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for reservationId. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_reservationId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for reservationId. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_reservationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_reservationId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_reservationId); ++ ++ /** ++ * Resetter for reservationId ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_reservationId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceId. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_instanceId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceId. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_instanceId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId); ++ ++ /** ++ * Resetter for instanceId ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_instanceId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for imageId. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_imageId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for imageId. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_imageId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_imageId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_imageId); ++ ++ /** ++ * Resetter for imageId ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_imageId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for kernelId. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_kernelId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for kernelId. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_kernelId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_kernelId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_kernelId); ++ ++ /** ++ * Resetter for kernelId ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_kernelId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for ramdiskId. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_ramdiskId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ramdiskId. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_ramdiskId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_ramdiskId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_ramdiskId); ++ ++ /** ++ * Resetter for ramdiskId ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_ramdiskId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_userId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_userId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_userId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for keyName. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_keyName( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for keyName. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_keyName axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_keyName( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_keyName); ++ ++ /** ++ * Resetter for keyName ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_keyName( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceType. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return adb_virtualMachineType_t* ++ */ ++ adb_virtualMachineType_t* AXIS2_CALL ++ adb_instanceType_get_instanceType( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceType. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceType adb_virtualMachineType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_instanceType( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ adb_virtualMachineType_t* arg_instanceType); ++ ++ /** ++ * Resetter for instanceType ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_instanceType( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for netParams. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return adb_netConfigType_t* ++ */ ++ adb_netConfigType_t* AXIS2_CALL ++ adb_instanceType_get_netParams( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for netParams. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_netParams adb_netConfigType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_netParams( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ adb_netConfigType_t* arg_netParams); ++ ++ /** ++ * Resetter for netParams ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_netParams( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for stateName. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_stateName( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for stateName. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_stateName axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_stateName( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_stateName); ++ ++ /** ++ * Resetter for stateName ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_stateName( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for launchTime. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return axutil_date_time_t* ++ */ ++ axutil_date_time_t* AXIS2_CALL ++ adb_instanceType_get_launchTime( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for launchTime. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_launchTime axutil_date_time_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_launchTime( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ axutil_date_time_t* arg_launchTime); ++ ++ /** ++ * Resetter for launchTime ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_launchTime( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userData. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_userData( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userData. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_userData axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_userData( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userData); ++ ++ /** ++ * Resetter for userData ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_userData( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for launchIndex. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_launchIndex( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for launchIndex. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_launchIndex axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_launchIndex( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_launchIndex); ++ ++ /** ++ * Resetter for launchIndex ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_launchIndex( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for groupNames. Deprecated for array types, Use adb_instanceType_get_groupNames_at instead ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return Array of axis2_char_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_instanceType_get_groupNames( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for groupNames.Deprecated for array types, Use adb_instanceType_set_groupNames_at ++ * or adb_instanceType_add_groupNames instead. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_groupNames Array of axis2_char_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_groupNames( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_groupNames); ++ ++ /** ++ * Resetter for groupNames ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_groupNames( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for volumes. Deprecated for array types, Use adb_instanceType_get_volumes_at instead ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return Array of adb_volumeType_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_instanceType_get_volumes( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for volumes.Deprecated for array types, Use adb_instanceType_set_volumes_at ++ * or adb_instanceType_add_volumes instead. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_volumes Array of adb_volumeType_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_volumes( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_volumes); ++ ++ /** ++ * Resetter for volumes ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_volumes( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for serviceTag. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_serviceTag( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for serviceTag. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_serviceTag axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_serviceTag( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_serviceTag); ++ ++ /** ++ * Resetter for serviceTag ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_serviceTag( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of groupNames. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_groupNames_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of groupNames. (If the ith already exist, it will be replaced) ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_groupNames element to set axis2_char_t* to the array ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_groupNames_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_groupNames); ++ ++ ++ /** ++ * Add to groupNames. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_groupNames element to add axis2_char_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_add_groupNames( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_groupNames); ++ ++ /** ++ * Get the size of the groupNames array. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the groupNames array. ++ */ ++ int AXIS2_CALL ++ adb_instanceType_sizeof_groupNames( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of groupNames. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_remove_groupNames_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /** ++ * Get the ith element of volumes. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith adb_volumeType_t* of the array ++ */ ++ adb_volumeType_t* AXIS2_CALL ++ adb_instanceType_get_volumes_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of volumes. (If the ith already exist, it will be replaced) ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_volumes element to set adb_volumeType_t* to the array ++ * @return ith adb_volumeType_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_volumes_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i, ++ adb_volumeType_t* arg_volumes); ++ ++ ++ /** ++ * Add to volumes. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_volumes element to add adb_volumeType_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_add_volumes( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ adb_volumeType_t* arg_volumes); ++ ++ /** ++ * Get the size of the volumes array. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the volumes array. ++ */ ++ int AXIS2_CALL ++ adb_instanceType_sizeof_volumes( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of volumes. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_remove_volumes_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether reservationId is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_reservationId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether instanceId is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_instanceId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether imageId is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_imageId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether kernelId is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_kernelId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether ramdiskId is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_ramdiskId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_userId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether keyName is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_keyName_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether instanceType is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_instanceType_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether netParams is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_netParams_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether stateName is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_stateName_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether launchTime is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_launchTime_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userData is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_userData_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether launchIndex is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_launchIndex_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether groupNames is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_groupNames_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether volumes is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_volumes_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether serviceTag is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_serviceTag_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether groupNames is nill at i ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_groupNames_nil_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set groupNames to nill at i ++ * @param _instanceType _ adb_instanceType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_groupNames_nil_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Check whether volumes is nill at i ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_volumes_nil_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set volumes to nill at i ++ * @param _instanceType _ adb_instanceType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_volumes_nil_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_deserialize( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_instanceType_declare_parent_namespaces( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param instanceType_om_node node to serialize from ++ * @param instanceType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_instanceType_serialize( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ axiom_node_t* instanceType_om_node, axiom_element_t *instanceType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_instanceType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_INSTANCETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncAttachVolume.c' +--- old/cluster/generated/adb_ncAttachVolume.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncAttachVolume.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncAttachVolume.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncAttachVolume.h" ++ ++ /* ++ * implmentation of the ncAttachVolume|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncAttachVolume ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncAttachVolumeType_t* property_ncAttachVolume; ++ ++ ++ axis2_bool_t is_valid_ncAttachVolume; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncAttachVolume_t* AXIS2_CALL ++ adb_ncAttachVolume_create( ++ const axutil_env_t *env) ++ { ++ adb_ncAttachVolume_t *_ncAttachVolume = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncAttachVolume = (adb_ncAttachVolume_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncAttachVolume_t)); ++ ++ if(NULL == _ncAttachVolume) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncAttachVolume, 0, sizeof(adb_ncAttachVolume_t)); ++ ++ _ncAttachVolume->property_ncAttachVolume = NULL; ++ _ncAttachVolume->is_valid_ncAttachVolume = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncAttachVolume", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncAttachVolume->qname = qname; ++ ++ ++ return _ncAttachVolume; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolume_free ( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolume, AXIS2_FAILURE); ++ ++ adb_ncAttachVolume_reset_ncAttachVolume(_ncAttachVolume, env); ++ ++ if(_ncAttachVolume->qname) ++ { ++ axutil_qname_free (_ncAttachVolume->qname, env); ++ _ncAttachVolume->qname = NULL; ++ } ++ ++ ++ if(_ncAttachVolume) ++ { ++ AXIS2_FREE(env->allocator, _ncAttachVolume); ++ _ncAttachVolume = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolume_deserialize( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolume, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncAttachVolume : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncAttachVolume-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncAttachVolume : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncAttachVolume-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncAttachVolume element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncAttachVolume", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncAttachVolumeType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncAttachVolumeType_create(env); ++ ++ status = adb_ncAttachVolumeType_deserialize((adb_ncAttachVolumeType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncAttachVolume"); ++ } ++ else ++ { ++ status = adb_ncAttachVolume_set_ncAttachVolume(_ncAttachVolume, env, ++ (adb_ncAttachVolumeType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncAttachVolume "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncAttachVolume missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolume_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncAttachVolume_declare_parent_namespaces( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncAttachVolume_serialize( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolume, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncAttachVolume", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolume->is_valid_ncAttachVolume) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncAttachVolume") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncAttachVolume xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncAttachVolume"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncAttachVolume"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncAttachVolume element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncAttachVolume", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncAttachVolumeType_serialize(_ncAttachVolume->property_ncAttachVolume, ++ env, current_node, parent_element, ++ adb_ncAttachVolumeType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncAttachVolume. ++ */ ++ adb_ncAttachVolumeType_t* AXIS2_CALL ++ adb_ncAttachVolume_get_ncAttachVolume( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolume, NULL); ++ ++ ++ return _ncAttachVolume->property_ncAttachVolume; ++ } ++ ++ /** ++ * setter for ncAttachVolume ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolume_set_ncAttachVolume( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env, ++ adb_ncAttachVolumeType_t* arg_ncAttachVolume) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolume, AXIS2_FAILURE); ++ ++ if(_ncAttachVolume->is_valid_ncAttachVolume && ++ arg_ncAttachVolume == _ncAttachVolume->property_ncAttachVolume) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolume_reset_ncAttachVolume(_ncAttachVolume, env); ++ ++ ++ if(NULL == arg_ncAttachVolume) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncAttachVolume->property_ncAttachVolume = arg_ncAttachVolume; ++ _ncAttachVolume->is_valid_ncAttachVolume = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncAttachVolume ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolume_reset_ncAttachVolume( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolume, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncAttachVolume->property_ncAttachVolume != NULL) ++ { ++ ++ ++ adb_ncAttachVolumeType_free(_ncAttachVolume->property_ncAttachVolume, env); ++ _ncAttachVolume->property_ncAttachVolume = NULL; ++ } ++ ++ ++ ++ _ncAttachVolume->is_valid_ncAttachVolume = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncAttachVolume is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolume_is_ncAttachVolume_nil( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolume, AXIS2_TRUE); ++ ++ return !_ncAttachVolume->is_valid_ncAttachVolume; ++ } ++ ++ /** ++ * Set ncAttachVolume to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolume_set_ncAttachVolume_nil( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolume_reset_ncAttachVolume(_ncAttachVolume, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncAttachVolume.h' +--- old/cluster/generated/adb_ncAttachVolume.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncAttachVolume.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCATTACHVOLUME_H ++ #define ADB_NCATTACHVOLUME_H ++ ++ /** ++ * adb_ncAttachVolume.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncAttachVolume class ++ */ ++ typedef struct adb_ncAttachVolume adb_ncAttachVolume_t; ++ ++ ++ #include "adb_ncAttachVolumeType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncAttachVolume_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncAttachVolume_t object ++ */ ++ adb_ncAttachVolume_t* AXIS2_CALL ++ adb_ncAttachVolume_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncAttachVolume_t object ++ * @param _ncAttachVolume adb_ncAttachVolume_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolume_free ( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncAttachVolume. ++ * @param _ncAttachVolume adb_ncAttachVolume_t object ++ * @param env pointer to environment struct ++ * @return adb_ncAttachVolumeType_t* ++ */ ++ adb_ncAttachVolumeType_t* AXIS2_CALL ++ adb_ncAttachVolume_get_ncAttachVolume( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncAttachVolume. ++ * @param _ncAttachVolume adb_ncAttachVolume_t object ++ * @param env pointer to environment struct ++ * @param arg_ncAttachVolume adb_ncAttachVolumeType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolume_set_ncAttachVolume( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env, ++ adb_ncAttachVolumeType_t* arg_ncAttachVolume); ++ ++ /** ++ * Resetter for ncAttachVolume ++ * @param _ncAttachVolume adb_ncAttachVolume_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolume_reset_ncAttachVolume( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncAttachVolume is nill ++ * @param _ncAttachVolume adb_ncAttachVolume_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolume_is_ncAttachVolume_nil( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncAttachVolume to nill (currently the same as reset) ++ * @param _ncAttachVolume adb_ncAttachVolume_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolume_set_ncAttachVolume_nil( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncAttachVolume adb_ncAttachVolume_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolume_deserialize( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncAttachVolume adb_ncAttachVolume_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncAttachVolume_declare_parent_namespaces( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncAttachVolume adb_ncAttachVolume_t object ++ * @param env pointer to environment struct ++ * @param ncAttachVolume_om_node node to serialize from ++ * @param ncAttachVolume_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncAttachVolume_serialize( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env, ++ axiom_node_t* ncAttachVolume_om_node, axiom_element_t *ncAttachVolume_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncAttachVolume is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolume_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCATTACHVOLUME_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncAttachVolumeResponse.c' +--- old/cluster/generated/adb_ncAttachVolumeResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncAttachVolumeResponse.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncAttachVolumeResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncAttachVolumeResponse.h" ++ ++ /* ++ * implmentation of the ncAttachVolumeResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncAttachVolumeResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncAttachVolumeResponseType_t* property_ncAttachVolumeResponse; ++ ++ ++ axis2_bool_t is_valid_ncAttachVolumeResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncAttachVolumeResponse_t* AXIS2_CALL ++ adb_ncAttachVolumeResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_ncAttachVolumeResponse_t *_ncAttachVolumeResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncAttachVolumeResponse = (adb_ncAttachVolumeResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncAttachVolumeResponse_t)); ++ ++ if(NULL == _ncAttachVolumeResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncAttachVolumeResponse, 0, sizeof(adb_ncAttachVolumeResponse_t)); ++ ++ _ncAttachVolumeResponse->property_ncAttachVolumeResponse = NULL; ++ _ncAttachVolumeResponse->is_valid_ncAttachVolumeResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncAttachVolumeResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncAttachVolumeResponse->qname = qname; ++ ++ ++ return _ncAttachVolumeResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_free ( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponse, AXIS2_FAILURE); ++ ++ adb_ncAttachVolumeResponse_reset_ncAttachVolumeResponse(_ncAttachVolumeResponse, env); ++ ++ if(_ncAttachVolumeResponse->qname) ++ { ++ axutil_qname_free (_ncAttachVolumeResponse->qname, env); ++ _ncAttachVolumeResponse->qname = NULL; ++ } ++ ++ ++ if(_ncAttachVolumeResponse) ++ { ++ AXIS2_FREE(env->allocator, _ncAttachVolumeResponse); ++ _ncAttachVolumeResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_deserialize( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncAttachVolumeResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncAttachVolumeResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncAttachVolumeResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncAttachVolumeResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncAttachVolumeResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncAttachVolumeResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncAttachVolumeResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncAttachVolumeResponseType_create(env); ++ ++ status = adb_ncAttachVolumeResponseType_deserialize((adb_ncAttachVolumeResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncAttachVolumeResponse"); ++ } ++ else ++ { ++ status = adb_ncAttachVolumeResponse_set_ncAttachVolumeResponse(_ncAttachVolumeResponse, env, ++ (adb_ncAttachVolumeResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncAttachVolumeResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncAttachVolumeResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncAttachVolumeResponse_declare_parent_namespaces( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncAttachVolumeResponse_serialize( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncAttachVolumeResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeResponse->is_valid_ncAttachVolumeResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncAttachVolumeResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncAttachVolumeResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncAttachVolumeResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncAttachVolumeResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncAttachVolumeResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncAttachVolumeResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncAttachVolumeResponseType_serialize(_ncAttachVolumeResponse->property_ncAttachVolumeResponse, ++ env, current_node, parent_element, ++ adb_ncAttachVolumeResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncAttachVolumeResponse. ++ */ ++ adb_ncAttachVolumeResponseType_t* AXIS2_CALL ++ adb_ncAttachVolumeResponse_get_ncAttachVolumeResponse( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponse, NULL); ++ ++ ++ return _ncAttachVolumeResponse->property_ncAttachVolumeResponse; ++ } ++ ++ /** ++ * setter for ncAttachVolumeResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_set_ncAttachVolumeResponse( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env, ++ adb_ncAttachVolumeResponseType_t* arg_ncAttachVolumeResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponse, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeResponse->is_valid_ncAttachVolumeResponse && ++ arg_ncAttachVolumeResponse == _ncAttachVolumeResponse->property_ncAttachVolumeResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeResponse_reset_ncAttachVolumeResponse(_ncAttachVolumeResponse, env); ++ ++ ++ if(NULL == arg_ncAttachVolumeResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncAttachVolumeResponse->property_ncAttachVolumeResponse = arg_ncAttachVolumeResponse; ++ _ncAttachVolumeResponse->is_valid_ncAttachVolumeResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncAttachVolumeResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_reset_ncAttachVolumeResponse( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncAttachVolumeResponse->property_ncAttachVolumeResponse != NULL) ++ { ++ ++ ++ adb_ncAttachVolumeResponseType_free(_ncAttachVolumeResponse->property_ncAttachVolumeResponse, env); ++ _ncAttachVolumeResponse->property_ncAttachVolumeResponse = NULL; ++ } ++ ++ ++ ++ _ncAttachVolumeResponse->is_valid_ncAttachVolumeResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncAttachVolumeResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_is_ncAttachVolumeResponse_nil( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponse, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeResponse->is_valid_ncAttachVolumeResponse; ++ } ++ ++ /** ++ * Set ncAttachVolumeResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_set_ncAttachVolumeResponse_nil( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeResponse_reset_ncAttachVolumeResponse(_ncAttachVolumeResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncAttachVolumeResponse.h' +--- old/cluster/generated/adb_ncAttachVolumeResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncAttachVolumeResponse.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCATTACHVOLUMERESPONSE_H ++ #define ADB_NCATTACHVOLUMERESPONSE_H ++ ++ /** ++ * adb_ncAttachVolumeResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncAttachVolumeResponse class ++ */ ++ typedef struct adb_ncAttachVolumeResponse adb_ncAttachVolumeResponse_t; ++ ++ ++ #include "adb_ncAttachVolumeResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncAttachVolumeResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncAttachVolumeResponse_t object ++ */ ++ adb_ncAttachVolumeResponse_t* AXIS2_CALL ++ adb_ncAttachVolumeResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncAttachVolumeResponse_t object ++ * @param _ncAttachVolumeResponse adb_ncAttachVolumeResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_free ( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncAttachVolumeResponse. ++ * @param _ncAttachVolumeResponse adb_ncAttachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_ncAttachVolumeResponseType_t* ++ */ ++ adb_ncAttachVolumeResponseType_t* AXIS2_CALL ++ adb_ncAttachVolumeResponse_get_ncAttachVolumeResponse( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncAttachVolumeResponse. ++ * @param _ncAttachVolumeResponse adb_ncAttachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_ncAttachVolumeResponse adb_ncAttachVolumeResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_set_ncAttachVolumeResponse( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env, ++ adb_ncAttachVolumeResponseType_t* arg_ncAttachVolumeResponse); ++ ++ /** ++ * Resetter for ncAttachVolumeResponse ++ * @param _ncAttachVolumeResponse adb_ncAttachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_reset_ncAttachVolumeResponse( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncAttachVolumeResponse is nill ++ * @param _ncAttachVolumeResponse adb_ncAttachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_is_ncAttachVolumeResponse_nil( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncAttachVolumeResponse to nill (currently the same as reset) ++ * @param _ncAttachVolumeResponse adb_ncAttachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_set_ncAttachVolumeResponse_nil( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncAttachVolumeResponse adb_ncAttachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_deserialize( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncAttachVolumeResponse adb_ncAttachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncAttachVolumeResponse_declare_parent_namespaces( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncAttachVolumeResponse adb_ncAttachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @param ncAttachVolumeResponse_om_node node to serialize from ++ * @param ncAttachVolumeResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncAttachVolumeResponse_serialize( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env, ++ axiom_node_t* ncAttachVolumeResponse_om_node, axiom_element_t *ncAttachVolumeResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncAttachVolumeResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCATTACHVOLUMERESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncAttachVolumeResponseType.c' +--- old/cluster/generated/adb_ncAttachVolumeResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncAttachVolumeResponseType.c 2010-01-05 01:00:43 +0000 +@@ -0,0 +1,1365 @@ ++ ++ ++ /** ++ * adb_ncAttachVolumeResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncAttachVolumeResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncAttachVolumeResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncAttachVolumeResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_correlationId_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_userId_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_return_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncAttachVolumeResponseType_t* AXIS2_CALL ++ adb_ncAttachVolumeResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncAttachVolumeResponseType_t *_ncAttachVolumeResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncAttachVolumeResponseType = (adb_ncAttachVolumeResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncAttachVolumeResponseType_t)); ++ ++ if(NULL == _ncAttachVolumeResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncAttachVolumeResponseType, 0, sizeof(adb_ncAttachVolumeResponseType_t)); ++ ++ _ncAttachVolumeResponseType->property_correlationId = NULL; ++ _ncAttachVolumeResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _ncAttachVolumeResponseType->property_userId = NULL; ++ _ncAttachVolumeResponseType->is_valid_userId = AXIS2_FALSE; ++ _ncAttachVolumeResponseType->is_valid_return = AXIS2_FALSE; ++ _ncAttachVolumeResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ ++ ++ return _ncAttachVolumeResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_free ( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_FAILURE); ++ ++ adb_ncAttachVolumeResponseType_reset_correlationId(_ncAttachVolumeResponseType, env); ++ adb_ncAttachVolumeResponseType_reset_userId(_ncAttachVolumeResponseType, env); ++ adb_ncAttachVolumeResponseType_reset_return(_ncAttachVolumeResponseType, env); ++ adb_ncAttachVolumeResponseType_reset_statusMessage(_ncAttachVolumeResponseType, env); ++ ++ ++ if(_ncAttachVolumeResponseType) ++ { ++ AXIS2_FREE(env->allocator, _ncAttachVolumeResponseType); ++ _ncAttachVolumeResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_deserialize( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncAttachVolumeResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncAttachVolumeResponseType_set_correlationId(_ncAttachVolumeResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncAttachVolumeResponseType_set_correlationId(_ncAttachVolumeResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncAttachVolumeResponseType_set_userId(_ncAttachVolumeResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncAttachVolumeResponseType_set_userId(_ncAttachVolumeResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncAttachVolumeResponseType_set_return(_ncAttachVolumeResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncAttachVolumeResponseType_set_return(_ncAttachVolumeResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncAttachVolumeResponseType_set_statusMessage(_ncAttachVolumeResponseType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncAttachVolumeResponseType_declare_parent_namespaces( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncAttachVolumeResponseType_serialize( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncAttachVolumeResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncAttachVolumeResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncAttachVolumeResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncAttachVolumeResponseType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeResponseType_get_correlationId( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, NULL); ++ ++ ++ return _ncAttachVolumeResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_correlationId( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeResponseType->is_valid_correlationId && ++ arg_correlationId == _ncAttachVolumeResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeResponseType_reset_correlationId(_ncAttachVolumeResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncAttachVolumeResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncAttachVolumeResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncAttachVolumeResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_reset_correlationId( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncAttachVolumeResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncAttachVolumeResponseType->property_correlationId); ++ _ncAttachVolumeResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncAttachVolumeResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_is_correlationId_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_correlationId_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeResponseType_reset_correlationId(_ncAttachVolumeResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeResponseType_get_userId( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, NULL); ++ ++ ++ return _ncAttachVolumeResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_userId( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeResponseType->is_valid_userId && ++ arg_userId == _ncAttachVolumeResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeResponseType_reset_userId(_ncAttachVolumeResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncAttachVolumeResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncAttachVolumeResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncAttachVolumeResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_reset_userId( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncAttachVolumeResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncAttachVolumeResponseType->property_userId); ++ _ncAttachVolumeResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncAttachVolumeResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_is_userId_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_userId_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeResponseType_reset_userId(_ncAttachVolumeResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_get_return( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, (axis2_bool_t)0); ++ ++ ++ return _ncAttachVolumeResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_return( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeResponseType->is_valid_return && ++ arg_return == _ncAttachVolumeResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeResponseType_reset_return(_ncAttachVolumeResponseType, env); ++ ++ _ncAttachVolumeResponseType->property_return = arg_return; ++ _ncAttachVolumeResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_reset_return( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ _ncAttachVolumeResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_is_return_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_return_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeResponseType_reset_return(_ncAttachVolumeResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncAttachVolumeResponseType_get_statusMessage( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, (int)0); ++ ++ ++ return _ncAttachVolumeResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_statusMessage( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeResponseType->is_valid_statusMessage && ++ arg_statusMessage == _ncAttachVolumeResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeResponseType_reset_statusMessage(_ncAttachVolumeResponseType, env); ++ ++ _ncAttachVolumeResponseType->property_statusMessage = arg_statusMessage; ++ _ncAttachVolumeResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_reset_statusMessage( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ _ncAttachVolumeResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_is_statusMessage_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_statusMessage_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeResponseType_reset_statusMessage(_ncAttachVolumeResponseType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncAttachVolumeResponseType.h' +--- old/cluster/generated/adb_ncAttachVolumeResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncAttachVolumeResponseType.h 2010-01-05 01:00:43 +0000 +@@ -0,0 +1,362 @@ ++ ++ ++ #ifndef ADB_NCATTACHVOLUMERESPONSETYPE_H ++ #define ADB_NCATTACHVOLUMERESPONSETYPE_H ++ ++ /** ++ * adb_ncAttachVolumeResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncAttachVolumeResponseType class ++ */ ++ typedef struct adb_ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncAttachVolumeResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncAttachVolumeResponseType_t object ++ */ ++ adb_ncAttachVolumeResponseType_t* AXIS2_CALL ++ adb_ncAttachVolumeResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncAttachVolumeResponseType_t object ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_free ( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeResponseType_get_correlationId( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_correlationId( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_reset_correlationId( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeResponseType_get_userId( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_userId( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_reset_userId( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_get_return( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_return( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_reset_return( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncAttachVolumeResponseType_get_statusMessage( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_statusMessage( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_reset_statusMessage( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_is_correlationId_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_is_userId_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_is_return_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_is_statusMessage_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_statusMessage_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_deserialize( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncAttachVolumeResponseType_declare_parent_namespaces( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param ncAttachVolumeResponseType_om_node node to serialize from ++ * @param ncAttachVolumeResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncAttachVolumeResponseType_serialize( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* ncAttachVolumeResponseType_om_node, axiom_element_t *ncAttachVolumeResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncAttachVolumeResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCATTACHVOLUMERESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncAttachVolumeType.c' +--- old/cluster/generated/adb_ncAttachVolumeType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncAttachVolumeType.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,2713 @@ ++ ++ ++ /** ++ * adb_ncAttachVolumeType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncAttachVolumeType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncAttachVolumeType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncAttachVolumeType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_char_t* property_volumeId; ++ ++ ++ axis2_bool_t is_valid_volumeId; ++ ++ ++ axis2_char_t* property_instanceId; ++ ++ ++ axis2_bool_t is_valid_instanceId; ++ ++ ++ axis2_char_t* property_remoteDev; ++ ++ ++ axis2_bool_t is_valid_remoteDev; ++ ++ ++ axis2_char_t* property_localDev; ++ ++ ++ axis2_bool_t is_valid_localDev; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_correlationId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_userId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_return_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_volumeId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_instanceId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_remoteDev_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_localDev_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncAttachVolumeType_t* AXIS2_CALL ++ adb_ncAttachVolumeType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncAttachVolumeType_t *_ncAttachVolumeType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncAttachVolumeType = (adb_ncAttachVolumeType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncAttachVolumeType_t)); ++ ++ if(NULL == _ncAttachVolumeType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncAttachVolumeType, 0, sizeof(adb_ncAttachVolumeType_t)); ++ ++ _ncAttachVolumeType->property_correlationId = NULL; ++ _ncAttachVolumeType->is_valid_correlationId = AXIS2_FALSE; ++ _ncAttachVolumeType->property_userId = NULL; ++ _ncAttachVolumeType->is_valid_userId = AXIS2_FALSE; ++ _ncAttachVolumeType->is_valid_return = AXIS2_FALSE; ++ _ncAttachVolumeType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncAttachVolumeType->property_volumeId = NULL; ++ _ncAttachVolumeType->is_valid_volumeId = AXIS2_FALSE; ++ _ncAttachVolumeType->property_instanceId = NULL; ++ _ncAttachVolumeType->is_valid_instanceId = AXIS2_FALSE; ++ _ncAttachVolumeType->property_remoteDev = NULL; ++ _ncAttachVolumeType->is_valid_remoteDev = AXIS2_FALSE; ++ _ncAttachVolumeType->property_localDev = NULL; ++ _ncAttachVolumeType->is_valid_localDev = AXIS2_FALSE; ++ ++ ++ return _ncAttachVolumeType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_free ( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ adb_ncAttachVolumeType_reset_correlationId(_ncAttachVolumeType, env); ++ adb_ncAttachVolumeType_reset_userId(_ncAttachVolumeType, env); ++ adb_ncAttachVolumeType_reset_return(_ncAttachVolumeType, env); ++ adb_ncAttachVolumeType_reset_statusMessage(_ncAttachVolumeType, env); ++ adb_ncAttachVolumeType_reset_volumeId(_ncAttachVolumeType, env); ++ adb_ncAttachVolumeType_reset_instanceId(_ncAttachVolumeType, env); ++ adb_ncAttachVolumeType_reset_remoteDev(_ncAttachVolumeType, env); ++ adb_ncAttachVolumeType_reset_localDev(_ncAttachVolumeType, env); ++ ++ ++ if(_ncAttachVolumeType) ++ { ++ AXIS2_FREE(env->allocator, _ncAttachVolumeType); ++ _ncAttachVolumeType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_deserialize( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncAttachVolumeType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncAttachVolumeType_set_correlationId(_ncAttachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncAttachVolumeType_set_correlationId(_ncAttachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncAttachVolumeType_set_userId(_ncAttachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncAttachVolumeType_set_userId(_ncAttachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncAttachVolumeType_set_return(_ncAttachVolumeType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncAttachVolumeType_set_return(_ncAttachVolumeType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncAttachVolumeType_set_statusMessage(_ncAttachVolumeType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building volumeId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "volumeId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncAttachVolumeType_set_volumeId(_ncAttachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element volumeId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncAttachVolumeType_set_volumeId(_ncAttachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for volumeId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncAttachVolumeType_set_instanceId(_ncAttachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncAttachVolumeType_set_instanceId(_ncAttachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building remoteDev element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "remoteDev", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncAttachVolumeType_set_remoteDev(_ncAttachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element remoteDev"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncAttachVolumeType_set_remoteDev(_ncAttachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for remoteDev "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building localDev element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "localDev", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncAttachVolumeType_set_localDev(_ncAttachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element localDev"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncAttachVolumeType_set_localDev(_ncAttachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for localDev "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncAttachVolumeType_declare_parent_namespaces( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncAttachVolumeType_serialize( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *text_value_6; ++ axis2_char_t *text_value_6_temp; ++ ++ axis2_char_t *text_value_7; ++ axis2_char_t *text_value_7_temp; ++ ++ axis2_char_t *text_value_8; ++ axis2_char_t *text_value_8_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncAttachVolumeType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncAttachVolumeType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncAttachVolumeType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncAttachVolumeType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeType->is_valid_volumeId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("volumeId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("volumeId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing volumeId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%svolumeId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _ncAttachVolumeType->property_volumeId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeType->is_valid_instanceId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_6 = _ncAttachVolumeType->property_instanceId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE); ++ if (text_value_6_temp) ++ { ++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp)); ++ AXIS2_FREE(env->allocator, text_value_6_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeType->is_valid_remoteDev) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("remoteDev"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("remoteDev"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing remoteDev element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sremoteDev>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_7 = _ncAttachVolumeType->property_remoteDev; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE); ++ if (text_value_7_temp) ++ { ++ axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp)); ++ AXIS2_FREE(env->allocator, text_value_7_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeType->is_valid_localDev) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("localDev"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("localDev"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing localDev element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%slocalDev>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_8 = _ncAttachVolumeType->property_localDev; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE); ++ if (text_value_8_temp) ++ { ++ axutil_stream_write(stream, env, text_value_8_temp, axutil_strlen(text_value_8_temp)); ++ AXIS2_FREE(env->allocator, text_value_8_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeType_get_correlationId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL); ++ ++ ++ return _ncAttachVolumeType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_correlationId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeType->is_valid_correlationId && ++ arg_correlationId == _ncAttachVolumeType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeType_reset_correlationId(_ncAttachVolumeType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncAttachVolumeType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncAttachVolumeType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncAttachVolumeType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_correlationId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncAttachVolumeType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_correlationId); ++ _ncAttachVolumeType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncAttachVolumeType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_correlationId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_correlationId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeType_reset_correlationId(_ncAttachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeType_get_userId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL); ++ ++ ++ return _ncAttachVolumeType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_userId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeType->is_valid_userId && ++ arg_userId == _ncAttachVolumeType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeType_reset_userId(_ncAttachVolumeType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncAttachVolumeType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncAttachVolumeType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncAttachVolumeType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_userId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncAttachVolumeType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_userId); ++ _ncAttachVolumeType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncAttachVolumeType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_userId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_userId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeType_reset_userId(_ncAttachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_get_return( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, (axis2_bool_t)0); ++ ++ ++ return _ncAttachVolumeType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_return( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeType->is_valid_return && ++ arg_return == _ncAttachVolumeType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeType_reset_return(_ncAttachVolumeType, env); ++ ++ _ncAttachVolumeType->property_return = arg_return; ++ _ncAttachVolumeType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_return( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ ++ _ncAttachVolumeType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_return_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_return_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeType_reset_return(_ncAttachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncAttachVolumeType_get_statusMessage( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, (int)0); ++ ++ ++ return _ncAttachVolumeType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_statusMessage( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeType->is_valid_statusMessage && ++ arg_statusMessage == _ncAttachVolumeType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeType_reset_statusMessage(_ncAttachVolumeType, env); ++ ++ _ncAttachVolumeType->property_statusMessage = arg_statusMessage; ++ _ncAttachVolumeType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_statusMessage( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ ++ _ncAttachVolumeType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_statusMessage_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_statusMessage_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeType_reset_statusMessage(_ncAttachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for volumeId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeType_get_volumeId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL); ++ ++ ++ return _ncAttachVolumeType->property_volumeId; ++ } ++ ++ /** ++ * setter for volumeId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_volumeId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_volumeId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeType->is_valid_volumeId && ++ arg_volumeId == _ncAttachVolumeType->property_volumeId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeType_reset_volumeId(_ncAttachVolumeType, env); ++ ++ ++ if(NULL == arg_volumeId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncAttachVolumeType->property_volumeId = (axis2_char_t *)axutil_strdup(env, arg_volumeId); ++ if(NULL == _ncAttachVolumeType->property_volumeId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for volumeId"); ++ return AXIS2_FAILURE; ++ } ++ _ncAttachVolumeType->is_valid_volumeId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for volumeId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_volumeId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncAttachVolumeType->property_volumeId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_volumeId); ++ _ncAttachVolumeType->property_volumeId = NULL; ++ } ++ ++ ++ ++ _ncAttachVolumeType->is_valid_volumeId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether volumeId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_volumeId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeType->is_valid_volumeId; ++ } ++ ++ /** ++ * Set volumeId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_volumeId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeType_reset_volumeId(_ncAttachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeType_get_instanceId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL); ++ ++ ++ return _ncAttachVolumeType->property_instanceId; ++ } ++ ++ /** ++ * setter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_instanceId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeType->is_valid_instanceId && ++ arg_instanceId == _ncAttachVolumeType->property_instanceId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeType_reset_instanceId(_ncAttachVolumeType, env); ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncAttachVolumeType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId); ++ if(NULL == _ncAttachVolumeType->property_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId"); ++ return AXIS2_FAILURE; ++ } ++ _ncAttachVolumeType->is_valid_instanceId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_instanceId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncAttachVolumeType->property_instanceId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_instanceId); ++ _ncAttachVolumeType->property_instanceId = NULL; ++ } ++ ++ ++ ++ _ncAttachVolumeType->is_valid_instanceId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_instanceId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeType->is_valid_instanceId; ++ } ++ ++ /** ++ * Set instanceId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_instanceId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeType_reset_instanceId(_ncAttachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for remoteDev. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeType_get_remoteDev( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL); ++ ++ ++ return _ncAttachVolumeType->property_remoteDev; ++ } ++ ++ /** ++ * setter for remoteDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_remoteDev( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_remoteDev) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeType->is_valid_remoteDev && ++ arg_remoteDev == _ncAttachVolumeType->property_remoteDev) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeType_reset_remoteDev(_ncAttachVolumeType, env); ++ ++ ++ if(NULL == arg_remoteDev) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncAttachVolumeType->property_remoteDev = (axis2_char_t *)axutil_strdup(env, arg_remoteDev); ++ if(NULL == _ncAttachVolumeType->property_remoteDev) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for remoteDev"); ++ return AXIS2_FAILURE; ++ } ++ _ncAttachVolumeType->is_valid_remoteDev = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for remoteDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_remoteDev( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncAttachVolumeType->property_remoteDev != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_remoteDev); ++ _ncAttachVolumeType->property_remoteDev = NULL; ++ } ++ ++ ++ ++ _ncAttachVolumeType->is_valid_remoteDev = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether remoteDev is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_remoteDev_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeType->is_valid_remoteDev; ++ } ++ ++ /** ++ * Set remoteDev to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_remoteDev_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeType_reset_remoteDev(_ncAttachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for localDev. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeType_get_localDev( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL); ++ ++ ++ return _ncAttachVolumeType->property_localDev; ++ } ++ ++ /** ++ * setter for localDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_localDev( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_localDev) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeType->is_valid_localDev && ++ arg_localDev == _ncAttachVolumeType->property_localDev) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeType_reset_localDev(_ncAttachVolumeType, env); ++ ++ ++ if(NULL == arg_localDev) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncAttachVolumeType->property_localDev = (axis2_char_t *)axutil_strdup(env, arg_localDev); ++ if(NULL == _ncAttachVolumeType->property_localDev) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for localDev"); ++ return AXIS2_FAILURE; ++ } ++ _ncAttachVolumeType->is_valid_localDev = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for localDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_localDev( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncAttachVolumeType->property_localDev != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_localDev); ++ _ncAttachVolumeType->property_localDev = NULL; ++ } ++ ++ ++ ++ _ncAttachVolumeType->is_valid_localDev = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether localDev is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_localDev_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeType->is_valid_localDev; ++ } ++ ++ /** ++ * Set localDev to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_localDev_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeType_reset_localDev(_ncAttachVolumeType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncAttachVolumeType.h' +--- old/cluster/generated/adb_ncAttachVolumeType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncAttachVolumeType.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,570 @@ ++ ++ ++ #ifndef ADB_NCATTACHVOLUMETYPE_H ++ #define ADB_NCATTACHVOLUMETYPE_H ++ ++ /** ++ * adb_ncAttachVolumeType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncAttachVolumeType class ++ */ ++ typedef struct adb_ncAttachVolumeType adb_ncAttachVolumeType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncAttachVolumeType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncAttachVolumeType_t object ++ */ ++ adb_ncAttachVolumeType_t* AXIS2_CALL ++ adb_ncAttachVolumeType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncAttachVolumeType_t object ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_free ( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeType_get_correlationId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_correlationId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_correlationId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeType_get_userId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_userId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_userId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_get_return( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_return( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_return( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncAttachVolumeType_get_statusMessage( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_statusMessage( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_statusMessage( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for volumeId. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeType_get_volumeId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for volumeId. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_volumeId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_volumeId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_volumeId); ++ ++ /** ++ * Resetter for volumeId ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_volumeId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceId. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeType_get_instanceId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceId. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_instanceId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId); ++ ++ /** ++ * Resetter for instanceId ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_instanceId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for remoteDev. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeType_get_remoteDev( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for remoteDev. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_remoteDev axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_remoteDev( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_remoteDev); ++ ++ /** ++ * Resetter for remoteDev ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_remoteDev( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for localDev. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeType_get_localDev( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for localDev. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_localDev axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_localDev( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_localDev); ++ ++ /** ++ * Resetter for localDev ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_localDev( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_correlationId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_userId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_return_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_statusMessage_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_statusMessage_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether volumeId is nill ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_volumeId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether instanceId is nill ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_instanceId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether remoteDev is nill ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_remoteDev_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether localDev is nill ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_localDev_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_deserialize( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncAttachVolumeType_declare_parent_namespaces( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param ncAttachVolumeType_om_node node to serialize from ++ * @param ncAttachVolumeType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncAttachVolumeType_serialize( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ axiom_node_t* ncAttachVolumeType_om_node, axiom_element_t *ncAttachVolumeType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncAttachVolumeType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCATTACHVOLUMETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncDescribeInstances.c' +--- old/cluster/generated/adb_ncDescribeInstances.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncDescribeInstances.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncDescribeInstances.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncDescribeInstances.h" ++ ++ /* ++ * implmentation of the ncDescribeInstances|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncDescribeInstances ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncDescribeInstancesType_t* property_ncDescribeInstances; ++ ++ ++ axis2_bool_t is_valid_ncDescribeInstances; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncDescribeInstances_t* AXIS2_CALL ++ adb_ncDescribeInstances_create( ++ const axutil_env_t *env) ++ { ++ adb_ncDescribeInstances_t *_ncDescribeInstances = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncDescribeInstances = (adb_ncDescribeInstances_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncDescribeInstances_t)); ++ ++ if(NULL == _ncDescribeInstances) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncDescribeInstances, 0, sizeof(adb_ncDescribeInstances_t)); ++ ++ _ncDescribeInstances->property_ncDescribeInstances = NULL; ++ _ncDescribeInstances->is_valid_ncDescribeInstances = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncDescribeInstances", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncDescribeInstances->qname = qname; ++ ++ ++ return _ncDescribeInstances; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstances_free ( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstances, AXIS2_FAILURE); ++ ++ adb_ncDescribeInstances_reset_ncDescribeInstances(_ncDescribeInstances, env); ++ ++ if(_ncDescribeInstances->qname) ++ { ++ axutil_qname_free (_ncDescribeInstances->qname, env); ++ _ncDescribeInstances->qname = NULL; ++ } ++ ++ ++ if(_ncDescribeInstances) ++ { ++ AXIS2_FREE(env->allocator, _ncDescribeInstances); ++ _ncDescribeInstances = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstances_deserialize( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstances, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDescribeInstances : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncDescribeInstances-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDescribeInstances : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncDescribeInstances-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncDescribeInstances element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncDescribeInstances", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncDescribeInstancesType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncDescribeInstancesType_create(env); ++ ++ status = adb_ncDescribeInstancesType_deserialize((adb_ncDescribeInstancesType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncDescribeInstances"); ++ } ++ else ++ { ++ status = adb_ncDescribeInstances_set_ncDescribeInstances(_ncDescribeInstances, env, ++ (adb_ncDescribeInstancesType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncDescribeInstances "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncDescribeInstances missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstances_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncDescribeInstances_declare_parent_namespaces( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeInstances_serialize( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstances, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncDescribeInstances", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeInstances->is_valid_ncDescribeInstances) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncDescribeInstances") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncDescribeInstances xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncDescribeInstances"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncDescribeInstances"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncDescribeInstances element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncDescribeInstances", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncDescribeInstancesType_serialize(_ncDescribeInstances->property_ncDescribeInstances, ++ env, current_node, parent_element, ++ adb_ncDescribeInstancesType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncDescribeInstances. ++ */ ++ adb_ncDescribeInstancesType_t* AXIS2_CALL ++ adb_ncDescribeInstances_get_ncDescribeInstances( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstances, NULL); ++ ++ ++ return _ncDescribeInstances->property_ncDescribeInstances; ++ } ++ ++ /** ++ * setter for ncDescribeInstances ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstances_set_ncDescribeInstances( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env, ++ adb_ncDescribeInstancesType_t* arg_ncDescribeInstances) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstances, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstances->is_valid_ncDescribeInstances && ++ arg_ncDescribeInstances == _ncDescribeInstances->property_ncDescribeInstances) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeInstances_reset_ncDescribeInstances(_ncDescribeInstances, env); ++ ++ ++ if(NULL == arg_ncDescribeInstances) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeInstances->property_ncDescribeInstances = arg_ncDescribeInstances; ++ _ncDescribeInstances->is_valid_ncDescribeInstances = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncDescribeInstances ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstances_reset_ncDescribeInstances( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstances, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeInstances->property_ncDescribeInstances != NULL) ++ { ++ ++ ++ adb_ncDescribeInstancesType_free(_ncDescribeInstances->property_ncDescribeInstances, env); ++ _ncDescribeInstances->property_ncDescribeInstances = NULL; ++ } ++ ++ ++ ++ _ncDescribeInstances->is_valid_ncDescribeInstances = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncDescribeInstances is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstances_is_ncDescribeInstances_nil( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstances, AXIS2_TRUE); ++ ++ return !_ncDescribeInstances->is_valid_ncDescribeInstances; ++ } ++ ++ /** ++ * Set ncDescribeInstances to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstances_set_ncDescribeInstances_nil( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeInstances_reset_ncDescribeInstances(_ncDescribeInstances, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncDescribeInstances.h' +--- old/cluster/generated/adb_ncDescribeInstances.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncDescribeInstances.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCDESCRIBEINSTANCES_H ++ #define ADB_NCDESCRIBEINSTANCES_H ++ ++ /** ++ * adb_ncDescribeInstances.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncDescribeInstances class ++ */ ++ typedef struct adb_ncDescribeInstances adb_ncDescribeInstances_t; ++ ++ ++ #include "adb_ncDescribeInstancesType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncDescribeInstances_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncDescribeInstances_t object ++ */ ++ adb_ncDescribeInstances_t* AXIS2_CALL ++ adb_ncDescribeInstances_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncDescribeInstances_t object ++ * @param _ncDescribeInstances adb_ncDescribeInstances_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstances_free ( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncDescribeInstances. ++ * @param _ncDescribeInstances adb_ncDescribeInstances_t object ++ * @param env pointer to environment struct ++ * @return adb_ncDescribeInstancesType_t* ++ */ ++ adb_ncDescribeInstancesType_t* AXIS2_CALL ++ adb_ncDescribeInstances_get_ncDescribeInstances( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncDescribeInstances. ++ * @param _ncDescribeInstances adb_ncDescribeInstances_t object ++ * @param env pointer to environment struct ++ * @param arg_ncDescribeInstances adb_ncDescribeInstancesType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstances_set_ncDescribeInstances( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env, ++ adb_ncDescribeInstancesType_t* arg_ncDescribeInstances); ++ ++ /** ++ * Resetter for ncDescribeInstances ++ * @param _ncDescribeInstances adb_ncDescribeInstances_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstances_reset_ncDescribeInstances( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncDescribeInstances is nill ++ * @param _ncDescribeInstances adb_ncDescribeInstances_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstances_is_ncDescribeInstances_nil( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncDescribeInstances to nill (currently the same as reset) ++ * @param _ncDescribeInstances adb_ncDescribeInstances_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstances_set_ncDescribeInstances_nil( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncDescribeInstances adb_ncDescribeInstances_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstances_deserialize( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncDescribeInstances adb_ncDescribeInstances_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncDescribeInstances_declare_parent_namespaces( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncDescribeInstances adb_ncDescribeInstances_t object ++ * @param env pointer to environment struct ++ * @param ncDescribeInstances_om_node node to serialize from ++ * @param ncDescribeInstances_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeInstances_serialize( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env, ++ axiom_node_t* ncDescribeInstances_om_node, axiom_element_t *ncDescribeInstances_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncDescribeInstances is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstances_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCDESCRIBEINSTANCES_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncDescribeInstancesResponse.c' +--- old/cluster/generated/adb_ncDescribeInstancesResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncDescribeInstancesResponse.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncDescribeInstancesResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncDescribeInstancesResponse.h" ++ ++ /* ++ * implmentation of the ncDescribeInstancesResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncDescribeInstancesResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncDescribeInstancesResponseType_t* property_ncDescribeInstancesResponse; ++ ++ ++ axis2_bool_t is_valid_ncDescribeInstancesResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncDescribeInstancesResponse_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_ncDescribeInstancesResponse_t *_ncDescribeInstancesResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncDescribeInstancesResponse = (adb_ncDescribeInstancesResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncDescribeInstancesResponse_t)); ++ ++ if(NULL == _ncDescribeInstancesResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncDescribeInstancesResponse, 0, sizeof(adb_ncDescribeInstancesResponse_t)); ++ ++ _ncDescribeInstancesResponse->property_ncDescribeInstancesResponse = NULL; ++ _ncDescribeInstancesResponse->is_valid_ncDescribeInstancesResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncDescribeInstancesResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncDescribeInstancesResponse->qname = qname; ++ ++ ++ return _ncDescribeInstancesResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_free ( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponse, AXIS2_FAILURE); ++ ++ adb_ncDescribeInstancesResponse_reset_ncDescribeInstancesResponse(_ncDescribeInstancesResponse, env); ++ ++ if(_ncDescribeInstancesResponse->qname) ++ { ++ axutil_qname_free (_ncDescribeInstancesResponse->qname, env); ++ _ncDescribeInstancesResponse->qname = NULL; ++ } ++ ++ ++ if(_ncDescribeInstancesResponse) ++ { ++ AXIS2_FREE(env->allocator, _ncDescribeInstancesResponse); ++ _ncDescribeInstancesResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_deserialize( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDescribeInstancesResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncDescribeInstancesResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDescribeInstancesResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncDescribeInstancesResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncDescribeInstancesResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncDescribeInstancesResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncDescribeInstancesResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncDescribeInstancesResponseType_create(env); ++ ++ status = adb_ncDescribeInstancesResponseType_deserialize((adb_ncDescribeInstancesResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncDescribeInstancesResponse"); ++ } ++ else ++ { ++ status = adb_ncDescribeInstancesResponse_set_ncDescribeInstancesResponse(_ncDescribeInstancesResponse, env, ++ (adb_ncDescribeInstancesResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncDescribeInstancesResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncDescribeInstancesResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncDescribeInstancesResponse_declare_parent_namespaces( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponse_serialize( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncDescribeInstancesResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeInstancesResponse->is_valid_ncDescribeInstancesResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncDescribeInstancesResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncDescribeInstancesResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncDescribeInstancesResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncDescribeInstancesResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncDescribeInstancesResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncDescribeInstancesResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncDescribeInstancesResponseType_serialize(_ncDescribeInstancesResponse->property_ncDescribeInstancesResponse, ++ env, current_node, parent_element, ++ adb_ncDescribeInstancesResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncDescribeInstancesResponse. ++ */ ++ adb_ncDescribeInstancesResponseType_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponse_get_ncDescribeInstancesResponse( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponse, NULL); ++ ++ ++ return _ncDescribeInstancesResponse->property_ncDescribeInstancesResponse; ++ } ++ ++ /** ++ * setter for ncDescribeInstancesResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_set_ncDescribeInstancesResponse( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env, ++ adb_ncDescribeInstancesResponseType_t* arg_ncDescribeInstancesResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponse, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesResponse->is_valid_ncDescribeInstancesResponse && ++ arg_ncDescribeInstancesResponse == _ncDescribeInstancesResponse->property_ncDescribeInstancesResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeInstancesResponse_reset_ncDescribeInstancesResponse(_ncDescribeInstancesResponse, env); ++ ++ ++ if(NULL == arg_ncDescribeInstancesResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeInstancesResponse->property_ncDescribeInstancesResponse = arg_ncDescribeInstancesResponse; ++ _ncDescribeInstancesResponse->is_valid_ncDescribeInstancesResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncDescribeInstancesResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_reset_ncDescribeInstancesResponse( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeInstancesResponse->property_ncDescribeInstancesResponse != NULL) ++ { ++ ++ ++ adb_ncDescribeInstancesResponseType_free(_ncDescribeInstancesResponse->property_ncDescribeInstancesResponse, env); ++ _ncDescribeInstancesResponse->property_ncDescribeInstancesResponse = NULL; ++ } ++ ++ ++ ++ _ncDescribeInstancesResponse->is_valid_ncDescribeInstancesResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncDescribeInstancesResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_is_ncDescribeInstancesResponse_nil( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponse, AXIS2_TRUE); ++ ++ return !_ncDescribeInstancesResponse->is_valid_ncDescribeInstancesResponse; ++ } ++ ++ /** ++ * Set ncDescribeInstancesResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_set_ncDescribeInstancesResponse_nil( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeInstancesResponse_reset_ncDescribeInstancesResponse(_ncDescribeInstancesResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncDescribeInstancesResponse.h' +--- old/cluster/generated/adb_ncDescribeInstancesResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncDescribeInstancesResponse.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCDESCRIBEINSTANCESRESPONSE_H ++ #define ADB_NCDESCRIBEINSTANCESRESPONSE_H ++ ++ /** ++ * adb_ncDescribeInstancesResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncDescribeInstancesResponse class ++ */ ++ typedef struct adb_ncDescribeInstancesResponse adb_ncDescribeInstancesResponse_t; ++ ++ ++ #include "adb_ncDescribeInstancesResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncDescribeInstancesResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncDescribeInstancesResponse_t object ++ */ ++ adb_ncDescribeInstancesResponse_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncDescribeInstancesResponse_t object ++ * @param _ncDescribeInstancesResponse adb_ncDescribeInstancesResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_free ( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncDescribeInstancesResponse. ++ * @param _ncDescribeInstancesResponse adb_ncDescribeInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_ncDescribeInstancesResponseType_t* ++ */ ++ adb_ncDescribeInstancesResponseType_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponse_get_ncDescribeInstancesResponse( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncDescribeInstancesResponse. ++ * @param _ncDescribeInstancesResponse adb_ncDescribeInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_ncDescribeInstancesResponse adb_ncDescribeInstancesResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_set_ncDescribeInstancesResponse( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env, ++ adb_ncDescribeInstancesResponseType_t* arg_ncDescribeInstancesResponse); ++ ++ /** ++ * Resetter for ncDescribeInstancesResponse ++ * @param _ncDescribeInstancesResponse adb_ncDescribeInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_reset_ncDescribeInstancesResponse( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncDescribeInstancesResponse is nill ++ * @param _ncDescribeInstancesResponse adb_ncDescribeInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_is_ncDescribeInstancesResponse_nil( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncDescribeInstancesResponse to nill (currently the same as reset) ++ * @param _ncDescribeInstancesResponse adb_ncDescribeInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_set_ncDescribeInstancesResponse_nil( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncDescribeInstancesResponse adb_ncDescribeInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_deserialize( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncDescribeInstancesResponse adb_ncDescribeInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncDescribeInstancesResponse_declare_parent_namespaces( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncDescribeInstancesResponse adb_ncDescribeInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @param ncDescribeInstancesResponse_om_node node to serialize from ++ * @param ncDescribeInstancesResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponse_serialize( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env, ++ axiom_node_t* ncDescribeInstancesResponse_om_node, axiom_element_t *ncDescribeInstancesResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncDescribeInstancesResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCDESCRIBEINSTANCESRESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncDescribeInstancesResponseType.c' +--- old/cluster/generated/adb_ncDescribeInstancesResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncDescribeInstancesResponseType.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,2040 @@ ++ ++ ++ /** ++ * adb_ncDescribeInstancesResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncDescribeInstancesResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncDescribeInstancesResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncDescribeInstancesResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axutil_array_list_t* property_instances; ++ ++ ++ axis2_bool_t is_valid_instances; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_correlationId_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_userId_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_return_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_instances_nil_at( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_instances_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncDescribeInstancesResponseType_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncDescribeInstancesResponseType_t *_ncDescribeInstancesResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncDescribeInstancesResponseType = (adb_ncDescribeInstancesResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncDescribeInstancesResponseType_t)); ++ ++ if(NULL == _ncDescribeInstancesResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncDescribeInstancesResponseType, 0, sizeof(adb_ncDescribeInstancesResponseType_t)); ++ ++ _ncDescribeInstancesResponseType->property_correlationId = NULL; ++ _ncDescribeInstancesResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _ncDescribeInstancesResponseType->property_userId = NULL; ++ _ncDescribeInstancesResponseType->is_valid_userId = AXIS2_FALSE; ++ _ncDescribeInstancesResponseType->is_valid_return = AXIS2_FALSE; ++ _ncDescribeInstancesResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncDescribeInstancesResponseType->property_instances = NULL; ++ _ncDescribeInstancesResponseType->is_valid_instances = AXIS2_FALSE; ++ ++ ++ return _ncDescribeInstancesResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_free ( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ adb_ncDescribeInstancesResponseType_reset_correlationId(_ncDescribeInstancesResponseType, env); ++ adb_ncDescribeInstancesResponseType_reset_userId(_ncDescribeInstancesResponseType, env); ++ adb_ncDescribeInstancesResponseType_reset_return(_ncDescribeInstancesResponseType, env); ++ adb_ncDescribeInstancesResponseType_reset_statusMessage(_ncDescribeInstancesResponseType, env); ++ adb_ncDescribeInstancesResponseType_reset_instances(_ncDescribeInstancesResponseType, env); ++ ++ ++ if(_ncDescribeInstancesResponseType) ++ { ++ AXIS2_FREE(env->allocator, _ncDescribeInstancesResponseType); ++ _ncDescribeInstancesResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_deserialize( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDescribeInstancesResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeInstancesResponseType_set_correlationId(_ncDescribeInstancesResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDescribeInstancesResponseType_set_correlationId(_ncDescribeInstancesResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeInstancesResponseType_set_userId(_ncDescribeInstancesResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDescribeInstancesResponseType_set_userId(_ncDescribeInstancesResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncDescribeInstancesResponseType_set_return(_ncDescribeInstancesResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncDescribeInstancesResponseType_set_return(_ncDescribeInstancesResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeInstancesResponseType_set_statusMessage(_ncDescribeInstancesResponseType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building instances array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building instances element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "instances", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ element = (void*)adb_instanceType_create(env); ++ ++ status = adb_instanceType_deserialize((adb_instanceType_t*)element, env, ++ ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building element instances "); ++ } ++ else ++ { ++ axutil_array_list_add_at(arr_list, env, i, element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instances "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instances (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_ncDescribeInstancesResponseType_set_instances(_ncDescribeInstancesResponseType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_declare_parent_namespaces( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_serialize( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t text_value_5[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeInstancesResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncDescribeInstancesResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeInstancesResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncDescribeInstancesResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeInstancesResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncDescribeInstancesResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeInstancesResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDescribeInstancesResponseType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeInstancesResponseType->is_valid_instances) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instances"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instances"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing instances array ++ */ ++ if (_ncDescribeInstancesResponseType->property_instances != NULL) ++ { ++ ++ ++ sprintf(start_input_str, "<%s%sinstances", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_ncDescribeInstancesResponseType->property_instances, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_ncDescribeInstancesResponseType->property_instances, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing instances element ++ */ ++ ++ ++ ++ if(!adb_instanceType_is_particle()) ++ { ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ } ++ ++ adb_instanceType_serialize((adb_instanceType_t*)element, ++ env, current_node, parent_element, ++ adb_instanceType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index); ++ ++ if(!adb_instanceType_is_particle()) ++ { ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ } ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_get_correlationId( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, NULL); ++ ++ ++ return _ncDescribeInstancesResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_correlationId( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesResponseType->is_valid_correlationId && ++ arg_correlationId == _ncDescribeInstancesResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeInstancesResponseType_reset_correlationId(_ncDescribeInstancesResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeInstancesResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncDescribeInstancesResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDescribeInstancesResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_reset_correlationId( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeInstancesResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDescribeInstancesResponseType->property_correlationId); ++ _ncDescribeInstancesResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncDescribeInstancesResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_correlationId_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeInstancesResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_correlationId_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeInstancesResponseType_reset_correlationId(_ncDescribeInstancesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_get_userId( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, NULL); ++ ++ ++ return _ncDescribeInstancesResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_userId( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesResponseType->is_valid_userId && ++ arg_userId == _ncDescribeInstancesResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeInstancesResponseType_reset_userId(_ncDescribeInstancesResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeInstancesResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncDescribeInstancesResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDescribeInstancesResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_reset_userId( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeInstancesResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDescribeInstancesResponseType->property_userId); ++ _ncDescribeInstancesResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncDescribeInstancesResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_userId_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeInstancesResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_userId_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeInstancesResponseType_reset_userId(_ncDescribeInstancesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_get_return( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, (axis2_bool_t)0); ++ ++ ++ return _ncDescribeInstancesResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_return( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesResponseType->is_valid_return && ++ arg_return == _ncDescribeInstancesResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeInstancesResponseType_reset_return(_ncDescribeInstancesResponseType, env); ++ ++ _ncDescribeInstancesResponseType->property_return = arg_return; ++ _ncDescribeInstancesResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_reset_return( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeInstancesResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_return_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeInstancesResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_return_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeInstancesResponseType_reset_return(_ncDescribeInstancesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_get_statusMessage( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, (int)0); ++ ++ ++ return _ncDescribeInstancesResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_statusMessage( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesResponseType->is_valid_statusMessage && ++ arg_statusMessage == _ncDescribeInstancesResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeInstancesResponseType_reset_statusMessage(_ncDescribeInstancesResponseType, env); ++ ++ _ncDescribeInstancesResponseType->property_statusMessage = arg_statusMessage; ++ _ncDescribeInstancesResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_reset_statusMessage( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeInstancesResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_statusMessage_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeInstancesResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_statusMessage_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeInstancesResponseType_reset_statusMessage(_ncDescribeInstancesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instances. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_get_instances( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, NULL); ++ ++ ++ return _ncDescribeInstancesResponseType->property_instances; ++ } ++ ++ /** ++ * setter for instances ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_instances( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_instances) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesResponseType->is_valid_instances && ++ arg_instances == _ncDescribeInstancesResponseType->property_instances) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_instances, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instances has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_instances, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_ncDescribeInstancesResponseType_reset_instances(_ncDescribeInstancesResponseType, env); ++ ++ ++ if(NULL == arg_instances) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeInstancesResponseType->property_instances = arg_instances; ++ if(non_nil_exists) ++ { ++ _ncDescribeInstancesResponseType->is_valid_instances = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of instances. ++ */ ++ adb_instanceType_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_get_instances_at( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ adb_instanceType_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, NULL); ++ ++ ++ if(_ncDescribeInstancesResponseType->property_instances == NULL) ++ { ++ return (adb_instanceType_t*)0; ++ } ++ ret_val = (adb_instanceType_t*)axutil_array_list_get(_ncDescribeInstancesResponseType->property_instances, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of instances. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_instances_at( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, int i, ++ adb_instanceType_t* arg_instances) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ if( _ncDescribeInstancesResponseType->is_valid_instances && ++ _ncDescribeInstancesResponseType->property_instances && ++ ++ arg_instances == (adb_instanceType_t*)axutil_array_list_get(_ncDescribeInstancesResponseType->property_instances, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instances) ++ { ++ if(_ncDescribeInstancesResponseType->property_instances != NULL) ++ { ++ size = axutil_array_list_size(_ncDescribeInstancesResponseType->property_instances, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_ncDescribeInstancesResponseType->property_instances, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instances is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_ncDescribeInstancesResponseType->property_instances == NULL) ++ { ++ _ncDescribeInstancesResponseType->property_instances = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_ncDescribeInstancesResponseType->property_instances, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ adb_instanceType_free((adb_instanceType_t*)element, env); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _ncDescribeInstancesResponseType->is_valid_instances = AXIS2_FALSE; ++ axutil_array_list_set(_ncDescribeInstancesResponseType->property_instances , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_ncDescribeInstancesResponseType->property_instances , env, i, arg_instances); ++ _ncDescribeInstancesResponseType->is_valid_instances = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to instances. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_add_instances( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ adb_instanceType_t* arg_instances) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_instances) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_ncDescribeInstancesResponseType->property_instances == NULL) ++ { ++ _ncDescribeInstancesResponseType->property_instances = axutil_array_list_create(env, 10); ++ } ++ if(_ncDescribeInstancesResponseType->property_instances == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for instances"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_ncDescribeInstancesResponseType->property_instances , env, arg_instances); ++ _ncDescribeInstancesResponseType->is_valid_instances = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the instances array. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_sizeof_instances( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, -1); ++ if(_ncDescribeInstancesResponseType->property_instances == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_ncDescribeInstancesResponseType->property_instances, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_remove_instances_at( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_ncDescribeInstancesResponseType_set_instances_nil_at(_ncDescribeInstancesResponseType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for instances ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_reset_instances( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ if (_ncDescribeInstancesResponseType->property_instances != NULL) ++ { ++ count = axutil_array_list_size(_ncDescribeInstancesResponseType->property_instances, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_ncDescribeInstancesResponseType->property_instances, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ adb_instanceType_free((adb_instanceType_t*)element, env); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_ncDescribeInstancesResponseType->property_instances, env); ++ } ++ _ncDescribeInstancesResponseType->is_valid_instances = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instances is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_instances_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeInstancesResponseType->is_valid_instances; ++ } ++ ++ /** ++ * Set instances to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_instances_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeInstancesResponseType_reset_instances(_ncDescribeInstancesResponseType, env); ++ } ++ ++ ++ /** ++ * Check whether instances is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_instances_nil_at( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_TRUE); ++ ++ return (_ncDescribeInstancesResponseType->is_valid_instances == AXIS2_FALSE || ++ NULL == _ncDescribeInstancesResponseType->property_instances || ++ NULL == axutil_array_list_get(_ncDescribeInstancesResponseType->property_instances, env, i)); ++ } ++ ++ /** ++ * Set instances to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_instances_nil_at( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesResponseType->property_instances == NULL || ++ _ncDescribeInstancesResponseType->is_valid_instances == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_ncDescribeInstancesResponseType->property_instances, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_ncDescribeInstancesResponseType->property_instances, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instances is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_ncDescribeInstancesResponseType->property_instances == NULL) ++ { ++ _ncDescribeInstancesResponseType->is_valid_instances = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_ncDescribeInstancesResponseType->property_instances, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ adb_instanceType_free((adb_instanceType_t*)element, env); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _ncDescribeInstancesResponseType->is_valid_instances = AXIS2_FALSE; ++ axutil_array_list_set(_ncDescribeInstancesResponseType->property_instances , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_ncDescribeInstancesResponseType->property_instances , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncDescribeInstancesResponseType.h' +--- old/cluster/generated/adb_ncDescribeInstancesResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncDescribeInstancesResponseType.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,540 @@ ++ ++ ++ #ifndef ADB_NCDESCRIBEINSTANCESRESPONSETYPE_H ++ #define ADB_NCDESCRIBEINSTANCESRESPONSETYPE_H ++ ++ /** ++ * adb_ncDescribeInstancesResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncDescribeInstancesResponseType class ++ */ ++ typedef struct adb_ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t; ++ ++ ++ #include "adb_instanceType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncDescribeInstancesResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncDescribeInstancesResponseType_t object ++ */ ++ adb_ncDescribeInstancesResponseType_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncDescribeInstancesResponseType_t object ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_free ( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_get_correlationId( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_correlationId( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_reset_correlationId( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_get_userId( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_userId( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_reset_userId( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_get_return( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_return( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_reset_return( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_get_statusMessage( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_statusMessage( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_reset_statusMessage( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instances. Deprecated for array types, Use adb_ncDescribeInstancesResponseType_get_instances_at instead ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return Array of adb_instanceType_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_get_instances( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instances.Deprecated for array types, Use adb_ncDescribeInstancesResponseType_set_instances_at ++ * or adb_ncDescribeInstancesResponseType_add_instances instead. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_instances Array of adb_instanceType_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_instances( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_instances); ++ ++ /** ++ * Resetter for instances ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_reset_instances( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of instances. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith adb_instanceType_t* of the array ++ */ ++ adb_instanceType_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_get_instances_at( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of instances. (If the ith already exist, it will be replaced) ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_instances element to set adb_instanceType_t* to the array ++ * @return ith adb_instanceType_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_instances_at( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, int i, ++ adb_instanceType_t* arg_instances); ++ ++ ++ /** ++ * Add to instances. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_instances element to add adb_instanceType_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_add_instances( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ adb_instanceType_t* arg_instances); ++ ++ /** ++ * Get the size of the instances array. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the instances array. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_sizeof_instances( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of instances. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_remove_instances_at( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_correlationId_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_userId_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_return_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_statusMessage_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_statusMessage_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether instances is nill ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_instances_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether instances is nill at i ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_instances_nil_at( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set instances to nill at i ++ * @param _ncDescribeInstancesResponseType _ adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_instances_nil_at( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_deserialize( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_declare_parent_namespaces( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param ncDescribeInstancesResponseType_om_node node to serialize from ++ * @param ncDescribeInstancesResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_serialize( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* ncDescribeInstancesResponseType_om_node, axiom_element_t *ncDescribeInstancesResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncDescribeInstancesResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCDESCRIBEINSTANCESRESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncDescribeInstancesType.c' +--- old/cluster/generated/adb_ncDescribeInstancesType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncDescribeInstancesType.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,2095 @@ ++ ++ ++ /** ++ * adb_ncDescribeInstancesType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncDescribeInstancesType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncDescribeInstancesType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncDescribeInstancesType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axutil_array_list_t* property_instanceIds; ++ ++ ++ axis2_bool_t is_valid_instanceIds; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_correlationId_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_userId_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_return_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_instanceIds_nil_at( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_instanceIds_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncDescribeInstancesType_t* AXIS2_CALL ++ adb_ncDescribeInstancesType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncDescribeInstancesType_t *_ncDescribeInstancesType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncDescribeInstancesType = (adb_ncDescribeInstancesType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncDescribeInstancesType_t)); ++ ++ if(NULL == _ncDescribeInstancesType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncDescribeInstancesType, 0, sizeof(adb_ncDescribeInstancesType_t)); ++ ++ _ncDescribeInstancesType->property_correlationId = NULL; ++ _ncDescribeInstancesType->is_valid_correlationId = AXIS2_FALSE; ++ _ncDescribeInstancesType->property_userId = NULL; ++ _ncDescribeInstancesType->is_valid_userId = AXIS2_FALSE; ++ _ncDescribeInstancesType->is_valid_return = AXIS2_FALSE; ++ _ncDescribeInstancesType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncDescribeInstancesType->property_instanceIds = NULL; ++ _ncDescribeInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ ++ ++ return _ncDescribeInstancesType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_free ( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ adb_ncDescribeInstancesType_reset_correlationId(_ncDescribeInstancesType, env); ++ adb_ncDescribeInstancesType_reset_userId(_ncDescribeInstancesType, env); ++ adb_ncDescribeInstancesType_reset_return(_ncDescribeInstancesType, env); ++ adb_ncDescribeInstancesType_reset_statusMessage(_ncDescribeInstancesType, env); ++ adb_ncDescribeInstancesType_reset_instanceIds(_ncDescribeInstancesType, env); ++ ++ ++ if(_ncDescribeInstancesType) ++ { ++ AXIS2_FREE(env->allocator, _ncDescribeInstancesType); ++ _ncDescribeInstancesType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_deserialize( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDescribeInstancesType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeInstancesType_set_correlationId(_ncDescribeInstancesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDescribeInstancesType_set_correlationId(_ncDescribeInstancesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeInstancesType_set_userId(_ncDescribeInstancesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDescribeInstancesType_set_userId(_ncDescribeInstancesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncDescribeInstancesType_set_return(_ncDescribeInstancesType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncDescribeInstancesType_set_return(_ncDescribeInstancesType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeInstancesType_set_statusMessage(_ncDescribeInstancesType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building instanceIds array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building instanceIds element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "instanceIds", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value)); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceIds"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, "")); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceIds "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceIds (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_ncDescribeInstancesType_set_instanceIds(_ncDescribeInstancesType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncDescribeInstancesType_declare_parent_namespaces( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeInstancesType_serialize( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeInstancesType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncDescribeInstancesType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeInstancesType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncDescribeInstancesType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeInstancesType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncDescribeInstancesType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeInstancesType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDescribeInstancesType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeInstancesType->is_valid_instanceIds) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceIds"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceIds"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing instanceIds array ++ */ ++ if (_ncDescribeInstancesType->property_instanceIds != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%sinstanceIds>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_ncDescribeInstancesType->property_instanceIds, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_ncDescribeInstancesType->property_instanceIds, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing instanceIds element ++ */ ++ ++ ++ ++ text_value_5 = (axis2_char_t*)element; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeInstancesType_get_correlationId( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, NULL); ++ ++ ++ return _ncDescribeInstancesType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_correlationId( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesType->is_valid_correlationId && ++ arg_correlationId == _ncDescribeInstancesType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeInstancesType_reset_correlationId(_ncDescribeInstancesType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeInstancesType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncDescribeInstancesType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDescribeInstancesType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_reset_correlationId( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeInstancesType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDescribeInstancesType->property_correlationId); ++ _ncDescribeInstancesType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncDescribeInstancesType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_correlationId_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_TRUE); ++ ++ return !_ncDescribeInstancesType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_correlationId_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeInstancesType_reset_correlationId(_ncDescribeInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeInstancesType_get_userId( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, NULL); ++ ++ ++ return _ncDescribeInstancesType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_userId( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesType->is_valid_userId && ++ arg_userId == _ncDescribeInstancesType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeInstancesType_reset_userId(_ncDescribeInstancesType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeInstancesType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncDescribeInstancesType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDescribeInstancesType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_reset_userId( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeInstancesType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDescribeInstancesType->property_userId); ++ _ncDescribeInstancesType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncDescribeInstancesType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_userId_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_TRUE); ++ ++ return !_ncDescribeInstancesType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_userId_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeInstancesType_reset_userId(_ncDescribeInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_get_return( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, (axis2_bool_t)0); ++ ++ ++ return _ncDescribeInstancesType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_return( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesType->is_valid_return && ++ arg_return == _ncDescribeInstancesType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeInstancesType_reset_return(_ncDescribeInstancesType, env); ++ ++ _ncDescribeInstancesType->property_return = arg_return; ++ _ncDescribeInstancesType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_reset_return( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeInstancesType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_return_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_TRUE); ++ ++ return !_ncDescribeInstancesType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_return_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeInstancesType_reset_return(_ncDescribeInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeInstancesType_get_statusMessage( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, (int)0); ++ ++ ++ return _ncDescribeInstancesType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_statusMessage( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesType->is_valid_statusMessage && ++ arg_statusMessage == _ncDescribeInstancesType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeInstancesType_reset_statusMessage(_ncDescribeInstancesType, env); ++ ++ _ncDescribeInstancesType->property_statusMessage = arg_statusMessage; ++ _ncDescribeInstancesType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_reset_statusMessage( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeInstancesType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_statusMessage_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_TRUE); ++ ++ return !_ncDescribeInstancesType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_statusMessage_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeInstancesType_reset_statusMessage(_ncDescribeInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceIds. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_ncDescribeInstancesType_get_instanceIds( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, NULL); ++ ++ ++ return _ncDescribeInstancesType->property_instanceIds; ++ } ++ ++ /** ++ * setter for instanceIds ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_instanceIds( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_instanceIds) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesType->is_valid_instanceIds && ++ arg_instanceIds == _ncDescribeInstancesType->property_instanceIds) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_instanceIds, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceIds has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_instanceIds, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_ncDescribeInstancesType_reset_instanceIds(_ncDescribeInstancesType, env); ++ ++ ++ if(NULL == arg_instanceIds) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeInstancesType->property_instanceIds = arg_instanceIds; ++ if(non_nil_exists) ++ { ++ _ncDescribeInstancesType->is_valid_instanceIds = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of instanceIds. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeInstancesType_get_instanceIds_at( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ axis2_char_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, NULL); ++ ++ ++ if(_ncDescribeInstancesType->property_instanceIds == NULL) ++ { ++ return (axis2_char_t*)0; ++ } ++ ret_val = (axis2_char_t*)axutil_array_list_get(_ncDescribeInstancesType->property_instanceIds, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of instanceIds. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_instanceIds_at( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_instanceIds) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ if( _ncDescribeInstancesType->is_valid_instanceIds && ++ _ncDescribeInstancesType->property_instanceIds && ++ ++ arg_instanceIds == (axis2_char_t*)axutil_array_list_get(_ncDescribeInstancesType->property_instanceIds, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instanceIds) ++ { ++ if(_ncDescribeInstancesType->property_instanceIds != NULL) ++ { ++ size = axutil_array_list_size(_ncDescribeInstancesType->property_instanceIds, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_ncDescribeInstancesType->property_instanceIds, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instanceIds is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_ncDescribeInstancesType->property_instanceIds == NULL) ++ { ++ _ncDescribeInstancesType->property_instanceIds = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_ncDescribeInstancesType->property_instanceIds, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _ncDescribeInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ axutil_array_list_set(_ncDescribeInstancesType->property_instanceIds , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_ncDescribeInstancesType->property_instanceIds , env, i, axutil_strdup(env, arg_instanceIds)); ++ _ncDescribeInstancesType->is_valid_instanceIds = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to instanceIds. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_add_instanceIds( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceIds) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_instanceIds) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_ncDescribeInstancesType->property_instanceIds == NULL) ++ { ++ _ncDescribeInstancesType->property_instanceIds = axutil_array_list_create(env, 10); ++ } ++ if(_ncDescribeInstancesType->property_instanceIds == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for instanceIds"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_ncDescribeInstancesType->property_instanceIds , env, axutil_strdup(env, arg_instanceIds)); ++ _ncDescribeInstancesType->is_valid_instanceIds = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the instanceIds array. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeInstancesType_sizeof_instanceIds( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, -1); ++ if(_ncDescribeInstancesType->property_instanceIds == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_ncDescribeInstancesType->property_instanceIds, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_remove_instanceIds_at( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_ncDescribeInstancesType_set_instanceIds_nil_at(_ncDescribeInstancesType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for instanceIds ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_reset_instanceIds( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ if (_ncDescribeInstancesType->property_instanceIds != NULL) ++ { ++ count = axutil_array_list_size(_ncDescribeInstancesType->property_instanceIds, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_ncDescribeInstancesType->property_instanceIds, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_ncDescribeInstancesType->property_instanceIds, env); ++ } ++ _ncDescribeInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceIds is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_instanceIds_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_TRUE); ++ ++ return !_ncDescribeInstancesType->is_valid_instanceIds; ++ } ++ ++ /** ++ * Set instanceIds to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_instanceIds_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeInstancesType_reset_instanceIds(_ncDescribeInstancesType, env); ++ } ++ ++ ++ /** ++ * Check whether instanceIds is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_instanceIds_nil_at( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_TRUE); ++ ++ return (_ncDescribeInstancesType->is_valid_instanceIds == AXIS2_FALSE || ++ NULL == _ncDescribeInstancesType->property_instanceIds || ++ NULL == axutil_array_list_get(_ncDescribeInstancesType->property_instanceIds, env, i)); ++ } ++ ++ /** ++ * Set instanceIds to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_instanceIds_nil_at( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesType->property_instanceIds == NULL || ++ _ncDescribeInstancesType->is_valid_instanceIds == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_ncDescribeInstancesType->property_instanceIds, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_ncDescribeInstancesType->property_instanceIds, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instanceIds is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_ncDescribeInstancesType->property_instanceIds == NULL) ++ { ++ _ncDescribeInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_ncDescribeInstancesType->property_instanceIds, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _ncDescribeInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ axutil_array_list_set(_ncDescribeInstancesType->property_instanceIds , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_ncDescribeInstancesType->property_instanceIds , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncDescribeInstancesType.h' +--- old/cluster/generated/adb_ncDescribeInstancesType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncDescribeInstancesType.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,538 @@ ++ ++ ++ #ifndef ADB_NCDESCRIBEINSTANCESTYPE_H ++ #define ADB_NCDESCRIBEINSTANCESTYPE_H ++ ++ /** ++ * adb_ncDescribeInstancesType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncDescribeInstancesType class ++ */ ++ typedef struct adb_ncDescribeInstancesType adb_ncDescribeInstancesType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncDescribeInstancesType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncDescribeInstancesType_t object ++ */ ++ adb_ncDescribeInstancesType_t* AXIS2_CALL ++ adb_ncDescribeInstancesType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncDescribeInstancesType_t object ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_free ( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeInstancesType_get_correlationId( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_correlationId( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_reset_correlationId( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeInstancesType_get_userId( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_userId( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_reset_userId( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_get_return( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_return( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_reset_return( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeInstancesType_get_statusMessage( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_statusMessage( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_reset_statusMessage( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceIds. Deprecated for array types, Use adb_ncDescribeInstancesType_get_instanceIds_at instead ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return Array of axis2_char_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_ncDescribeInstancesType_get_instanceIds( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceIds.Deprecated for array types, Use adb_ncDescribeInstancesType_set_instanceIds_at ++ * or adb_ncDescribeInstancesType_add_instanceIds instead. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceIds Array of axis2_char_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_instanceIds( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_instanceIds); ++ ++ /** ++ * Resetter for instanceIds ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_reset_instanceIds( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of instanceIds. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeInstancesType_get_instanceIds_at( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of instanceIds. (If the ith already exist, it will be replaced) ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_instanceIds element to set axis2_char_t* to the array ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_instanceIds_at( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_instanceIds); ++ ++ ++ /** ++ * Add to instanceIds. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceIds element to add axis2_char_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_add_instanceIds( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceIds); ++ ++ /** ++ * Get the size of the instanceIds array. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the instanceIds array. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeInstancesType_sizeof_instanceIds( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of instanceIds. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_remove_instanceIds_at( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_correlationId_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_userId_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_return_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_statusMessage_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_statusMessage_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether instanceIds is nill ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_instanceIds_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether instanceIds is nill at i ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_instanceIds_nil_at( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set instanceIds to nill at i ++ * @param _ncDescribeInstancesType _ adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_instanceIds_nil_at( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_deserialize( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncDescribeInstancesType_declare_parent_namespaces( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param ncDescribeInstancesType_om_node node to serialize from ++ * @param ncDescribeInstancesType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeInstancesType_serialize( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ axiom_node_t* ncDescribeInstancesType_om_node, axiom_element_t *ncDescribeInstancesType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncDescribeInstancesType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCDESCRIBEINSTANCESTYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncDescribeResource.c' +--- old/cluster/generated/adb_ncDescribeResource.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncDescribeResource.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncDescribeResource.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncDescribeResource.h" ++ ++ /* ++ * implmentation of the ncDescribeResource|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncDescribeResource ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncDescribeResourceType_t* property_ncDescribeResource; ++ ++ ++ axis2_bool_t is_valid_ncDescribeResource; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncDescribeResource_t* AXIS2_CALL ++ adb_ncDescribeResource_create( ++ const axutil_env_t *env) ++ { ++ adb_ncDescribeResource_t *_ncDescribeResource = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncDescribeResource = (adb_ncDescribeResource_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncDescribeResource_t)); ++ ++ if(NULL == _ncDescribeResource) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncDescribeResource, 0, sizeof(adb_ncDescribeResource_t)); ++ ++ _ncDescribeResource->property_ncDescribeResource = NULL; ++ _ncDescribeResource->is_valid_ncDescribeResource = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncDescribeResource", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncDescribeResource->qname = qname; ++ ++ ++ return _ncDescribeResource; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResource_free ( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResource, AXIS2_FAILURE); ++ ++ adb_ncDescribeResource_reset_ncDescribeResource(_ncDescribeResource, env); ++ ++ if(_ncDescribeResource->qname) ++ { ++ axutil_qname_free (_ncDescribeResource->qname, env); ++ _ncDescribeResource->qname = NULL; ++ } ++ ++ ++ if(_ncDescribeResource) ++ { ++ AXIS2_FREE(env->allocator, _ncDescribeResource); ++ _ncDescribeResource = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResource_deserialize( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResource, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDescribeResource : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncDescribeResource-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDescribeResource : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncDescribeResource-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncDescribeResource element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncDescribeResource", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncDescribeResourceType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncDescribeResourceType_create(env); ++ ++ status = adb_ncDescribeResourceType_deserialize((adb_ncDescribeResourceType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncDescribeResource"); ++ } ++ else ++ { ++ status = adb_ncDescribeResource_set_ncDescribeResource(_ncDescribeResource, env, ++ (adb_ncDescribeResourceType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncDescribeResource "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncDescribeResource missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResource_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncDescribeResource_declare_parent_namespaces( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeResource_serialize( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResource, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncDescribeResource", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResource->is_valid_ncDescribeResource) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncDescribeResource") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncDescribeResource xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncDescribeResource"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncDescribeResource"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncDescribeResource element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncDescribeResource", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncDescribeResourceType_serialize(_ncDescribeResource->property_ncDescribeResource, ++ env, current_node, parent_element, ++ adb_ncDescribeResourceType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncDescribeResource. ++ */ ++ adb_ncDescribeResourceType_t* AXIS2_CALL ++ adb_ncDescribeResource_get_ncDescribeResource( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResource, NULL); ++ ++ ++ return _ncDescribeResource->property_ncDescribeResource; ++ } ++ ++ /** ++ * setter for ncDescribeResource ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResource_set_ncDescribeResource( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env, ++ adb_ncDescribeResourceType_t* arg_ncDescribeResource) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResource, AXIS2_FAILURE); ++ ++ if(_ncDescribeResource->is_valid_ncDescribeResource && ++ arg_ncDescribeResource == _ncDescribeResource->property_ncDescribeResource) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResource_reset_ncDescribeResource(_ncDescribeResource, env); ++ ++ ++ if(NULL == arg_ncDescribeResource) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeResource->property_ncDescribeResource = arg_ncDescribeResource; ++ _ncDescribeResource->is_valid_ncDescribeResource = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncDescribeResource ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResource_reset_ncDescribeResource( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResource, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeResource->property_ncDescribeResource != NULL) ++ { ++ ++ ++ adb_ncDescribeResourceType_free(_ncDescribeResource->property_ncDescribeResource, env); ++ _ncDescribeResource->property_ncDescribeResource = NULL; ++ } ++ ++ ++ ++ _ncDescribeResource->is_valid_ncDescribeResource = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncDescribeResource is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResource_is_ncDescribeResource_nil( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResource, AXIS2_TRUE); ++ ++ return !_ncDescribeResource->is_valid_ncDescribeResource; ++ } ++ ++ /** ++ * Set ncDescribeResource to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResource_set_ncDescribeResource_nil( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResource_reset_ncDescribeResource(_ncDescribeResource, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncDescribeResource.h' +--- old/cluster/generated/adb_ncDescribeResource.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncDescribeResource.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCDESCRIBERESOURCE_H ++ #define ADB_NCDESCRIBERESOURCE_H ++ ++ /** ++ * adb_ncDescribeResource.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncDescribeResource class ++ */ ++ typedef struct adb_ncDescribeResource adb_ncDescribeResource_t; ++ ++ ++ #include "adb_ncDescribeResourceType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncDescribeResource_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncDescribeResource_t object ++ */ ++ adb_ncDescribeResource_t* AXIS2_CALL ++ adb_ncDescribeResource_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncDescribeResource_t object ++ * @param _ncDescribeResource adb_ncDescribeResource_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResource_free ( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncDescribeResource. ++ * @param _ncDescribeResource adb_ncDescribeResource_t object ++ * @param env pointer to environment struct ++ * @return adb_ncDescribeResourceType_t* ++ */ ++ adb_ncDescribeResourceType_t* AXIS2_CALL ++ adb_ncDescribeResource_get_ncDescribeResource( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncDescribeResource. ++ * @param _ncDescribeResource adb_ncDescribeResource_t object ++ * @param env pointer to environment struct ++ * @param arg_ncDescribeResource adb_ncDescribeResourceType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResource_set_ncDescribeResource( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env, ++ adb_ncDescribeResourceType_t* arg_ncDescribeResource); ++ ++ /** ++ * Resetter for ncDescribeResource ++ * @param _ncDescribeResource adb_ncDescribeResource_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResource_reset_ncDescribeResource( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncDescribeResource is nill ++ * @param _ncDescribeResource adb_ncDescribeResource_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResource_is_ncDescribeResource_nil( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncDescribeResource to nill (currently the same as reset) ++ * @param _ncDescribeResource adb_ncDescribeResource_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResource_set_ncDescribeResource_nil( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncDescribeResource adb_ncDescribeResource_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResource_deserialize( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncDescribeResource adb_ncDescribeResource_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncDescribeResource_declare_parent_namespaces( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncDescribeResource adb_ncDescribeResource_t object ++ * @param env pointer to environment struct ++ * @param ncDescribeResource_om_node node to serialize from ++ * @param ncDescribeResource_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeResource_serialize( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env, ++ axiom_node_t* ncDescribeResource_om_node, axiom_element_t *ncDescribeResource_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncDescribeResource is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResource_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCDESCRIBERESOURCE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncDescribeResourceResponse.c' +--- old/cluster/generated/adb_ncDescribeResourceResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncDescribeResourceResponse.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncDescribeResourceResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncDescribeResourceResponse.h" ++ ++ /* ++ * implmentation of the ncDescribeResourceResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncDescribeResourceResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncDescribeResourceResponseType_t* property_ncDescribeResourceResponse; ++ ++ ++ axis2_bool_t is_valid_ncDescribeResourceResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncDescribeResourceResponse_t* AXIS2_CALL ++ adb_ncDescribeResourceResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_ncDescribeResourceResponse_t *_ncDescribeResourceResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncDescribeResourceResponse = (adb_ncDescribeResourceResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncDescribeResourceResponse_t)); ++ ++ if(NULL == _ncDescribeResourceResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncDescribeResourceResponse, 0, sizeof(adb_ncDescribeResourceResponse_t)); ++ ++ _ncDescribeResourceResponse->property_ncDescribeResourceResponse = NULL; ++ _ncDescribeResourceResponse->is_valid_ncDescribeResourceResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncDescribeResourceResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncDescribeResourceResponse->qname = qname; ++ ++ ++ return _ncDescribeResourceResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_free ( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponse, AXIS2_FAILURE); ++ ++ adb_ncDescribeResourceResponse_reset_ncDescribeResourceResponse(_ncDescribeResourceResponse, env); ++ ++ if(_ncDescribeResourceResponse->qname) ++ { ++ axutil_qname_free (_ncDescribeResourceResponse->qname, env); ++ _ncDescribeResourceResponse->qname = NULL; ++ } ++ ++ ++ if(_ncDescribeResourceResponse) ++ { ++ AXIS2_FREE(env->allocator, _ncDescribeResourceResponse); ++ _ncDescribeResourceResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_deserialize( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDescribeResourceResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncDescribeResourceResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDescribeResourceResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncDescribeResourceResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncDescribeResourceResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncDescribeResourceResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncDescribeResourceResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncDescribeResourceResponseType_create(env); ++ ++ status = adb_ncDescribeResourceResponseType_deserialize((adb_ncDescribeResourceResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncDescribeResourceResponse"); ++ } ++ else ++ { ++ status = adb_ncDescribeResourceResponse_set_ncDescribeResourceResponse(_ncDescribeResourceResponse, env, ++ (adb_ncDescribeResourceResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncDescribeResourceResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncDescribeResourceResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncDescribeResourceResponse_declare_parent_namespaces( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeResourceResponse_serialize( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncDescribeResourceResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponse->is_valid_ncDescribeResourceResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncDescribeResourceResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncDescribeResourceResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncDescribeResourceResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncDescribeResourceResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncDescribeResourceResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncDescribeResourceResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncDescribeResourceResponseType_serialize(_ncDescribeResourceResponse->property_ncDescribeResourceResponse, ++ env, current_node, parent_element, ++ adb_ncDescribeResourceResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncDescribeResourceResponse. ++ */ ++ adb_ncDescribeResourceResponseType_t* AXIS2_CALL ++ adb_ncDescribeResourceResponse_get_ncDescribeResourceResponse( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponse, NULL); ++ ++ ++ return _ncDescribeResourceResponse->property_ncDescribeResourceResponse; ++ } ++ ++ /** ++ * setter for ncDescribeResourceResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_set_ncDescribeResourceResponse( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env, ++ adb_ncDescribeResourceResponseType_t* arg_ncDescribeResourceResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponse, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponse->is_valid_ncDescribeResourceResponse && ++ arg_ncDescribeResourceResponse == _ncDescribeResourceResponse->property_ncDescribeResourceResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceResponse_reset_ncDescribeResourceResponse(_ncDescribeResourceResponse, env); ++ ++ ++ if(NULL == arg_ncDescribeResourceResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeResourceResponse->property_ncDescribeResourceResponse = arg_ncDescribeResourceResponse; ++ _ncDescribeResourceResponse->is_valid_ncDescribeResourceResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncDescribeResourceResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_reset_ncDescribeResourceResponse( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeResourceResponse->property_ncDescribeResourceResponse != NULL) ++ { ++ ++ ++ adb_ncDescribeResourceResponseType_free(_ncDescribeResourceResponse->property_ncDescribeResourceResponse, env); ++ _ncDescribeResourceResponse->property_ncDescribeResourceResponse = NULL; ++ } ++ ++ ++ ++ _ncDescribeResourceResponse->is_valid_ncDescribeResourceResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncDescribeResourceResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_is_ncDescribeResourceResponse_nil( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponse, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponse->is_valid_ncDescribeResourceResponse; ++ } ++ ++ /** ++ * Set ncDescribeResourceResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_set_ncDescribeResourceResponse_nil( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponse_reset_ncDescribeResourceResponse(_ncDescribeResourceResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncDescribeResourceResponse.h' +--- old/cluster/generated/adb_ncDescribeResourceResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncDescribeResourceResponse.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCDESCRIBERESOURCERESPONSE_H ++ #define ADB_NCDESCRIBERESOURCERESPONSE_H ++ ++ /** ++ * adb_ncDescribeResourceResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncDescribeResourceResponse class ++ */ ++ typedef struct adb_ncDescribeResourceResponse adb_ncDescribeResourceResponse_t; ++ ++ ++ #include "adb_ncDescribeResourceResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncDescribeResourceResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncDescribeResourceResponse_t object ++ */ ++ adb_ncDescribeResourceResponse_t* AXIS2_CALL ++ adb_ncDescribeResourceResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncDescribeResourceResponse_t object ++ * @param _ncDescribeResourceResponse adb_ncDescribeResourceResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_free ( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncDescribeResourceResponse. ++ * @param _ncDescribeResourceResponse adb_ncDescribeResourceResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_ncDescribeResourceResponseType_t* ++ */ ++ adb_ncDescribeResourceResponseType_t* AXIS2_CALL ++ adb_ncDescribeResourceResponse_get_ncDescribeResourceResponse( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncDescribeResourceResponse. ++ * @param _ncDescribeResourceResponse adb_ncDescribeResourceResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_ncDescribeResourceResponse adb_ncDescribeResourceResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_set_ncDescribeResourceResponse( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env, ++ adb_ncDescribeResourceResponseType_t* arg_ncDescribeResourceResponse); ++ ++ /** ++ * Resetter for ncDescribeResourceResponse ++ * @param _ncDescribeResourceResponse adb_ncDescribeResourceResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_reset_ncDescribeResourceResponse( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncDescribeResourceResponse is nill ++ * @param _ncDescribeResourceResponse adb_ncDescribeResourceResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_is_ncDescribeResourceResponse_nil( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncDescribeResourceResponse to nill (currently the same as reset) ++ * @param _ncDescribeResourceResponse adb_ncDescribeResourceResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_set_ncDescribeResourceResponse_nil( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncDescribeResourceResponse adb_ncDescribeResourceResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_deserialize( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncDescribeResourceResponse adb_ncDescribeResourceResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncDescribeResourceResponse_declare_parent_namespaces( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncDescribeResourceResponse adb_ncDescribeResourceResponse_t object ++ * @param env pointer to environment struct ++ * @param ncDescribeResourceResponse_om_node node to serialize from ++ * @param ncDescribeResourceResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeResourceResponse_serialize( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env, ++ axiom_node_t* ncDescribeResourceResponse_om_node, axiom_element_t *ncDescribeResourceResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncDescribeResourceResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCDESCRIBERESOURCERESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncDescribeResourceResponseType.c' +--- old/cluster/generated/adb_ncDescribeResourceResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncDescribeResourceResponseType.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,3635 @@ ++ ++ ++ /** ++ * adb_ncDescribeResourceResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncDescribeResourceResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncDescribeResourceResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncDescribeResourceResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_char_t* property_nodeStatus; ++ ++ ++ axis2_bool_t is_valid_nodeStatus; ++ ++ ++ int property_memorySizeMax; ++ ++ ++ axis2_bool_t is_valid_memorySizeMax; ++ ++ ++ int property_memorySizeAvailable; ++ ++ ++ axis2_bool_t is_valid_memorySizeAvailable; ++ ++ ++ int property_diskSizeMax; ++ ++ ++ axis2_bool_t is_valid_diskSizeMax; ++ ++ ++ int property_diskSizeAvailable; ++ ++ ++ axis2_bool_t is_valid_diskSizeAvailable; ++ ++ ++ int property_numberOfCoresMax; ++ ++ ++ axis2_bool_t is_valid_numberOfCoresMax; ++ ++ ++ int property_numberOfCoresAvailable; ++ ++ ++ axis2_bool_t is_valid_numberOfCoresAvailable; ++ ++ ++ axis2_char_t* property_publicSubnets; ++ ++ ++ axis2_bool_t is_valid_publicSubnets; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_correlationId_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_userId_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_return_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_nodeStatus_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_memorySizeMax_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_memorySizeAvailable_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_diskSizeMax_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_diskSizeAvailable_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_numberOfCoresMax_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_numberOfCoresAvailable_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_publicSubnets_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncDescribeResourceResponseType_t* AXIS2_CALL ++ adb_ncDescribeResourceResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncDescribeResourceResponseType_t *_ncDescribeResourceResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncDescribeResourceResponseType = (adb_ncDescribeResourceResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncDescribeResourceResponseType_t)); ++ ++ if(NULL == _ncDescribeResourceResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncDescribeResourceResponseType, 0, sizeof(adb_ncDescribeResourceResponseType_t)); ++ ++ _ncDescribeResourceResponseType->property_correlationId = NULL; ++ _ncDescribeResourceResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _ncDescribeResourceResponseType->property_userId = NULL; ++ _ncDescribeResourceResponseType->is_valid_userId = AXIS2_FALSE; ++ _ncDescribeResourceResponseType->is_valid_return = AXIS2_FALSE; ++ _ncDescribeResourceResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncDescribeResourceResponseType->property_nodeStatus = NULL; ++ _ncDescribeResourceResponseType->is_valid_nodeStatus = AXIS2_FALSE; ++ _ncDescribeResourceResponseType->is_valid_memorySizeMax = AXIS2_FALSE; ++ _ncDescribeResourceResponseType->is_valid_memorySizeAvailable = AXIS2_FALSE; ++ _ncDescribeResourceResponseType->is_valid_diskSizeMax = AXIS2_FALSE; ++ _ncDescribeResourceResponseType->is_valid_diskSizeAvailable = AXIS2_FALSE; ++ _ncDescribeResourceResponseType->is_valid_numberOfCoresMax = AXIS2_FALSE; ++ _ncDescribeResourceResponseType->is_valid_numberOfCoresAvailable = AXIS2_FALSE; ++ _ncDescribeResourceResponseType->property_publicSubnets = NULL; ++ _ncDescribeResourceResponseType->is_valid_publicSubnets = AXIS2_FALSE; ++ ++ ++ return _ncDescribeResourceResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_free ( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ adb_ncDescribeResourceResponseType_reset_correlationId(_ncDescribeResourceResponseType, env); ++ adb_ncDescribeResourceResponseType_reset_userId(_ncDescribeResourceResponseType, env); ++ adb_ncDescribeResourceResponseType_reset_return(_ncDescribeResourceResponseType, env); ++ adb_ncDescribeResourceResponseType_reset_statusMessage(_ncDescribeResourceResponseType, env); ++ adb_ncDescribeResourceResponseType_reset_nodeStatus(_ncDescribeResourceResponseType, env); ++ adb_ncDescribeResourceResponseType_reset_memorySizeMax(_ncDescribeResourceResponseType, env); ++ adb_ncDescribeResourceResponseType_reset_memorySizeAvailable(_ncDescribeResourceResponseType, env); ++ adb_ncDescribeResourceResponseType_reset_diskSizeMax(_ncDescribeResourceResponseType, env); ++ adb_ncDescribeResourceResponseType_reset_diskSizeAvailable(_ncDescribeResourceResponseType, env); ++ adb_ncDescribeResourceResponseType_reset_numberOfCoresMax(_ncDescribeResourceResponseType, env); ++ adb_ncDescribeResourceResponseType_reset_numberOfCoresAvailable(_ncDescribeResourceResponseType, env); ++ adb_ncDescribeResourceResponseType_reset_publicSubnets(_ncDescribeResourceResponseType, env); ++ ++ ++ if(_ncDescribeResourceResponseType) ++ { ++ AXIS2_FREE(env->allocator, _ncDescribeResourceResponseType); ++ _ncDescribeResourceResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_deserialize( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDescribeResourceResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceResponseType_set_correlationId(_ncDescribeResourceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDescribeResourceResponseType_set_correlationId(_ncDescribeResourceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceResponseType_set_userId(_ncDescribeResourceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDescribeResourceResponseType_set_userId(_ncDescribeResourceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncDescribeResourceResponseType_set_return(_ncDescribeResourceResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncDescribeResourceResponseType_set_return(_ncDescribeResourceResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceResponseType_set_statusMessage(_ncDescribeResourceResponseType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building nodeStatus element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "nodeStatus", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceResponseType_set_nodeStatus(_ncDescribeResourceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element nodeStatus"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDescribeResourceResponseType_set_nodeStatus(_ncDescribeResourceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for nodeStatus "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element nodeStatus missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building memorySizeMax element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "memorySizeMax", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceResponseType_set_memorySizeMax(_ncDescribeResourceResponseType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element memorySizeMax"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for memorySizeMax "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element memorySizeMax missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building memorySizeAvailable element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "memorySizeAvailable", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceResponseType_set_memorySizeAvailable(_ncDescribeResourceResponseType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element memorySizeAvailable"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for memorySizeAvailable "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element memorySizeAvailable missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building diskSizeMax element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "diskSizeMax", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceResponseType_set_diskSizeMax(_ncDescribeResourceResponseType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element diskSizeMax"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for diskSizeMax "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element diskSizeMax missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building diskSizeAvailable element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "diskSizeAvailable", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceResponseType_set_diskSizeAvailable(_ncDescribeResourceResponseType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element diskSizeAvailable"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for diskSizeAvailable "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element diskSizeAvailable missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building numberOfCoresMax element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "numberOfCoresMax", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceResponseType_set_numberOfCoresMax(_ncDescribeResourceResponseType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element numberOfCoresMax"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for numberOfCoresMax "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element numberOfCoresMax missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building numberOfCoresAvailable element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "numberOfCoresAvailable", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceResponseType_set_numberOfCoresAvailable(_ncDescribeResourceResponseType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element numberOfCoresAvailable"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for numberOfCoresAvailable "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element numberOfCoresAvailable missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building publicSubnets element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "publicSubnets", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceResponseType_set_publicSubnets(_ncDescribeResourceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element publicSubnets"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDescribeResourceResponseType_set_publicSubnets(_ncDescribeResourceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for publicSubnets "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element publicSubnets missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncDescribeResourceResponseType_declare_parent_namespaces( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeResourceResponseType_serialize( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t text_value_6[64]; ++ ++ axis2_char_t text_value_7[64]; ++ ++ axis2_char_t text_value_8[64]; ++ ++ axis2_char_t text_value_9[64]; ++ ++ axis2_char_t text_value_10[64]; ++ ++ axis2_char_t text_value_11[64]; ++ ++ axis2_char_t *text_value_12; ++ axis2_char_t *text_value_12_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncDescribeResourceResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncDescribeResourceResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncDescribeResourceResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDescribeResourceResponseType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponseType->is_valid_nodeStatus) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property nodeStatus"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("nodeStatus"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("nodeStatus"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing nodeStatus element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%snodeStatus>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _ncDescribeResourceResponseType->property_nodeStatus; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponseType->is_valid_memorySizeMax) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property memorySizeMax"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("memorySizeMax"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("memorySizeMax"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing memorySizeMax element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%smemorySizeMax>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_6, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDescribeResourceResponseType->property_memorySizeMax); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponseType->is_valid_memorySizeAvailable) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property memorySizeAvailable"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("memorySizeAvailable"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("memorySizeAvailable"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing memorySizeAvailable element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%smemorySizeAvailable>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_7, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDescribeResourceResponseType->property_memorySizeAvailable); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponseType->is_valid_diskSizeMax) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property diskSizeMax"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("diskSizeMax"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("diskSizeMax"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing diskSizeMax element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sdiskSizeMax>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_8, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDescribeResourceResponseType->property_diskSizeMax); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponseType->is_valid_diskSizeAvailable) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property diskSizeAvailable"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("diskSizeAvailable"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("diskSizeAvailable"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing diskSizeAvailable element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sdiskSizeAvailable>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_9, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDescribeResourceResponseType->property_diskSizeAvailable); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_9, axutil_strlen(text_value_9)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponseType->is_valid_numberOfCoresMax) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property numberOfCoresMax"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("numberOfCoresMax"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("numberOfCoresMax"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing numberOfCoresMax element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%snumberOfCoresMax>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_10, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDescribeResourceResponseType->property_numberOfCoresMax); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_10, axutil_strlen(text_value_10)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponseType->is_valid_numberOfCoresAvailable) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property numberOfCoresAvailable"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("numberOfCoresAvailable"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("numberOfCoresAvailable"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing numberOfCoresAvailable element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%snumberOfCoresAvailable>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_11, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDescribeResourceResponseType->property_numberOfCoresAvailable); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_11, axutil_strlen(text_value_11)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponseType->is_valid_publicSubnets) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property publicSubnets"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("publicSubnets"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("publicSubnets"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing publicSubnets element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%spublicSubnets>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_12 = _ncDescribeResourceResponseType->property_publicSubnets; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_12_temp = axutil_xml_quote_string(env, text_value_12, AXIS2_TRUE); ++ if (text_value_12_temp) ++ { ++ axutil_stream_write(stream, env, text_value_12_temp, axutil_strlen(text_value_12_temp)); ++ AXIS2_FREE(env->allocator, text_value_12_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_12, axutil_strlen(text_value_12)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_correlationId( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, NULL); ++ ++ ++ return _ncDescribeResourceResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_correlationId( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponseType->is_valid_correlationId && ++ arg_correlationId == _ncDescribeResourceResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceResponseType_reset_correlationId(_ncDescribeResourceResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeResourceResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncDescribeResourceResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDescribeResourceResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_correlationId( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeResourceResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDescribeResourceResponseType->property_correlationId); ++ _ncDescribeResourceResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncDescribeResourceResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_correlationId_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_correlationId_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponseType_reset_correlationId(_ncDescribeResourceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_userId( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, NULL); ++ ++ ++ return _ncDescribeResourceResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_userId( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponseType->is_valid_userId && ++ arg_userId == _ncDescribeResourceResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceResponseType_reset_userId(_ncDescribeResourceResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeResourceResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncDescribeResourceResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDescribeResourceResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_userId( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeResourceResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDescribeResourceResponseType->property_userId); ++ _ncDescribeResourceResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncDescribeResourceResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_userId_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_userId_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponseType_reset_userId(_ncDescribeResourceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_return( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, (axis2_bool_t)0); ++ ++ ++ return _ncDescribeResourceResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_return( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponseType->is_valid_return && ++ arg_return == _ncDescribeResourceResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceResponseType_reset_return(_ncDescribeResourceResponseType, env); ++ ++ _ncDescribeResourceResponseType->property_return = arg_return; ++ _ncDescribeResourceResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_return( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeResourceResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_return_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_return_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponseType_reset_return(_ncDescribeResourceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_statusMessage( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, (int)0); ++ ++ ++ return _ncDescribeResourceResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_statusMessage( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponseType->is_valid_statusMessage && ++ arg_statusMessage == _ncDescribeResourceResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceResponseType_reset_statusMessage(_ncDescribeResourceResponseType, env); ++ ++ _ncDescribeResourceResponseType->property_statusMessage = arg_statusMessage; ++ _ncDescribeResourceResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_statusMessage( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeResourceResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_statusMessage_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_statusMessage_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponseType_reset_statusMessage(_ncDescribeResourceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for nodeStatus. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_nodeStatus( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, NULL); ++ ++ ++ return _ncDescribeResourceResponseType->property_nodeStatus; ++ } ++ ++ /** ++ * setter for nodeStatus ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_nodeStatus( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_nodeStatus) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponseType->is_valid_nodeStatus && ++ arg_nodeStatus == _ncDescribeResourceResponseType->property_nodeStatus) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_nodeStatus) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "nodeStatus is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncDescribeResourceResponseType_reset_nodeStatus(_ncDescribeResourceResponseType, env); ++ ++ ++ if(NULL == arg_nodeStatus) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeResourceResponseType->property_nodeStatus = (axis2_char_t *)axutil_strdup(env, arg_nodeStatus); ++ if(NULL == _ncDescribeResourceResponseType->property_nodeStatus) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for nodeStatus"); ++ return AXIS2_FAILURE; ++ } ++ _ncDescribeResourceResponseType->is_valid_nodeStatus = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for nodeStatus ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_nodeStatus( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeResourceResponseType->property_nodeStatus != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDescribeResourceResponseType->property_nodeStatus); ++ _ncDescribeResourceResponseType->property_nodeStatus = NULL; ++ } ++ ++ ++ ++ _ncDescribeResourceResponseType->is_valid_nodeStatus = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether nodeStatus is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_nodeStatus_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponseType->is_valid_nodeStatus; ++ } ++ ++ /** ++ * Set nodeStatus to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_nodeStatus_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponseType_reset_nodeStatus(_ncDescribeResourceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for memorySizeMax. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_memorySizeMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, (int)0); ++ ++ ++ return _ncDescribeResourceResponseType->property_memorySizeMax; ++ } ++ ++ /** ++ * setter for memorySizeMax ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_memorySizeMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_memorySizeMax) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponseType->is_valid_memorySizeMax && ++ arg_memorySizeMax == _ncDescribeResourceResponseType->property_memorySizeMax) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceResponseType_reset_memorySizeMax(_ncDescribeResourceResponseType, env); ++ ++ _ncDescribeResourceResponseType->property_memorySizeMax = arg_memorySizeMax; ++ _ncDescribeResourceResponseType->is_valid_memorySizeMax = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for memorySizeMax ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_memorySizeMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeResourceResponseType->is_valid_memorySizeMax = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether memorySizeMax is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_memorySizeMax_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponseType->is_valid_memorySizeMax; ++ } ++ ++ /** ++ * Set memorySizeMax to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_memorySizeMax_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponseType_reset_memorySizeMax(_ncDescribeResourceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for memorySizeAvailable. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_memorySizeAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, (int)0); ++ ++ ++ return _ncDescribeResourceResponseType->property_memorySizeAvailable; ++ } ++ ++ /** ++ * setter for memorySizeAvailable ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_memorySizeAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_memorySizeAvailable) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponseType->is_valid_memorySizeAvailable && ++ arg_memorySizeAvailable == _ncDescribeResourceResponseType->property_memorySizeAvailable) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceResponseType_reset_memorySizeAvailable(_ncDescribeResourceResponseType, env); ++ ++ _ncDescribeResourceResponseType->property_memorySizeAvailable = arg_memorySizeAvailable; ++ _ncDescribeResourceResponseType->is_valid_memorySizeAvailable = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for memorySizeAvailable ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_memorySizeAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeResourceResponseType->is_valid_memorySizeAvailable = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether memorySizeAvailable is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_memorySizeAvailable_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponseType->is_valid_memorySizeAvailable; ++ } ++ ++ /** ++ * Set memorySizeAvailable to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_memorySizeAvailable_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponseType_reset_memorySizeAvailable(_ncDescribeResourceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for diskSizeMax. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_diskSizeMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, (int)0); ++ ++ ++ return _ncDescribeResourceResponseType->property_diskSizeMax; ++ } ++ ++ /** ++ * setter for diskSizeMax ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_diskSizeMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_diskSizeMax) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponseType->is_valid_diskSizeMax && ++ arg_diskSizeMax == _ncDescribeResourceResponseType->property_diskSizeMax) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceResponseType_reset_diskSizeMax(_ncDescribeResourceResponseType, env); ++ ++ _ncDescribeResourceResponseType->property_diskSizeMax = arg_diskSizeMax; ++ _ncDescribeResourceResponseType->is_valid_diskSizeMax = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for diskSizeMax ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_diskSizeMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeResourceResponseType->is_valid_diskSizeMax = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether diskSizeMax is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_diskSizeMax_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponseType->is_valid_diskSizeMax; ++ } ++ ++ /** ++ * Set diskSizeMax to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_diskSizeMax_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponseType_reset_diskSizeMax(_ncDescribeResourceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for diskSizeAvailable. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_diskSizeAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, (int)0); ++ ++ ++ return _ncDescribeResourceResponseType->property_diskSizeAvailable; ++ } ++ ++ /** ++ * setter for diskSizeAvailable ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_diskSizeAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_diskSizeAvailable) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponseType->is_valid_diskSizeAvailable && ++ arg_diskSizeAvailable == _ncDescribeResourceResponseType->property_diskSizeAvailable) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceResponseType_reset_diskSizeAvailable(_ncDescribeResourceResponseType, env); ++ ++ _ncDescribeResourceResponseType->property_diskSizeAvailable = arg_diskSizeAvailable; ++ _ncDescribeResourceResponseType->is_valid_diskSizeAvailable = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for diskSizeAvailable ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_diskSizeAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeResourceResponseType->is_valid_diskSizeAvailable = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether diskSizeAvailable is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_diskSizeAvailable_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponseType->is_valid_diskSizeAvailable; ++ } ++ ++ /** ++ * Set diskSizeAvailable to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_diskSizeAvailable_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponseType_reset_diskSizeAvailable(_ncDescribeResourceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for numberOfCoresMax. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_numberOfCoresMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, (int)0); ++ ++ ++ return _ncDescribeResourceResponseType->property_numberOfCoresMax; ++ } ++ ++ /** ++ * setter for numberOfCoresMax ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_numberOfCoresMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_numberOfCoresMax) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponseType->is_valid_numberOfCoresMax && ++ arg_numberOfCoresMax == _ncDescribeResourceResponseType->property_numberOfCoresMax) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceResponseType_reset_numberOfCoresMax(_ncDescribeResourceResponseType, env); ++ ++ _ncDescribeResourceResponseType->property_numberOfCoresMax = arg_numberOfCoresMax; ++ _ncDescribeResourceResponseType->is_valid_numberOfCoresMax = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for numberOfCoresMax ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_numberOfCoresMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeResourceResponseType->is_valid_numberOfCoresMax = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether numberOfCoresMax is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_numberOfCoresMax_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponseType->is_valid_numberOfCoresMax; ++ } ++ ++ /** ++ * Set numberOfCoresMax to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_numberOfCoresMax_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponseType_reset_numberOfCoresMax(_ncDescribeResourceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for numberOfCoresAvailable. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_numberOfCoresAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, (int)0); ++ ++ ++ return _ncDescribeResourceResponseType->property_numberOfCoresAvailable; ++ } ++ ++ /** ++ * setter for numberOfCoresAvailable ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_numberOfCoresAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_numberOfCoresAvailable) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponseType->is_valid_numberOfCoresAvailable && ++ arg_numberOfCoresAvailable == _ncDescribeResourceResponseType->property_numberOfCoresAvailable) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceResponseType_reset_numberOfCoresAvailable(_ncDescribeResourceResponseType, env); ++ ++ _ncDescribeResourceResponseType->property_numberOfCoresAvailable = arg_numberOfCoresAvailable; ++ _ncDescribeResourceResponseType->is_valid_numberOfCoresAvailable = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for numberOfCoresAvailable ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_numberOfCoresAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeResourceResponseType->is_valid_numberOfCoresAvailable = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether numberOfCoresAvailable is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_numberOfCoresAvailable_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponseType->is_valid_numberOfCoresAvailable; ++ } ++ ++ /** ++ * Set numberOfCoresAvailable to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_numberOfCoresAvailable_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponseType_reset_numberOfCoresAvailable(_ncDescribeResourceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for publicSubnets. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_publicSubnets( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, NULL); ++ ++ ++ return _ncDescribeResourceResponseType->property_publicSubnets; ++ } ++ ++ /** ++ * setter for publicSubnets ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_publicSubnets( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_publicSubnets) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponseType->is_valid_publicSubnets && ++ arg_publicSubnets == _ncDescribeResourceResponseType->property_publicSubnets) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_publicSubnets) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "publicSubnets is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncDescribeResourceResponseType_reset_publicSubnets(_ncDescribeResourceResponseType, env); ++ ++ ++ if(NULL == arg_publicSubnets) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeResourceResponseType->property_publicSubnets = (axis2_char_t *)axutil_strdup(env, arg_publicSubnets); ++ if(NULL == _ncDescribeResourceResponseType->property_publicSubnets) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for publicSubnets"); ++ return AXIS2_FAILURE; ++ } ++ _ncDescribeResourceResponseType->is_valid_publicSubnets = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for publicSubnets ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_publicSubnets( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeResourceResponseType->property_publicSubnets != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDescribeResourceResponseType->property_publicSubnets); ++ _ncDescribeResourceResponseType->property_publicSubnets = NULL; ++ } ++ ++ ++ ++ _ncDescribeResourceResponseType->is_valid_publicSubnets = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether publicSubnets is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_publicSubnets_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponseType->is_valid_publicSubnets; ++ } ++ ++ /** ++ * Set publicSubnets to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_publicSubnets_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponseType_reset_publicSubnets(_ncDescribeResourceResponseType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncDescribeResourceResponseType.h' +--- old/cluster/generated/adb_ncDescribeResourceResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncDescribeResourceResponseType.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,778 @@ ++ ++ ++ #ifndef ADB_NCDESCRIBERESOURCERESPONSETYPE_H ++ #define ADB_NCDESCRIBERESOURCERESPONSETYPE_H ++ ++ /** ++ * adb_ncDescribeResourceResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncDescribeResourceResponseType class ++ */ ++ typedef struct adb_ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncDescribeResourceResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncDescribeResourceResponseType_t object ++ */ ++ adb_ncDescribeResourceResponseType_t* AXIS2_CALL ++ adb_ncDescribeResourceResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncDescribeResourceResponseType_t object ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_free ( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_correlationId( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_correlationId( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_correlationId( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_userId( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_userId( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_userId( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_return( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_return( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_return( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_statusMessage( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_statusMessage( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_statusMessage( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for nodeStatus. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_nodeStatus( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for nodeStatus. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_nodeStatus axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_nodeStatus( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_nodeStatus); ++ ++ /** ++ * Resetter for nodeStatus ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_nodeStatus( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for memorySizeMax. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_memorySizeMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for memorySizeMax. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_memorySizeMax int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_memorySizeMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_memorySizeMax); ++ ++ /** ++ * Resetter for memorySizeMax ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_memorySizeMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for memorySizeAvailable. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_memorySizeAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for memorySizeAvailable. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_memorySizeAvailable int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_memorySizeAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_memorySizeAvailable); ++ ++ /** ++ * Resetter for memorySizeAvailable ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_memorySizeAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for diskSizeMax. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_diskSizeMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for diskSizeMax. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_diskSizeMax int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_diskSizeMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_diskSizeMax); ++ ++ /** ++ * Resetter for diskSizeMax ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_diskSizeMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for diskSizeAvailable. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_diskSizeAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for diskSizeAvailable. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_diskSizeAvailable int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_diskSizeAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_diskSizeAvailable); ++ ++ /** ++ * Resetter for diskSizeAvailable ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_diskSizeAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for numberOfCoresMax. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_numberOfCoresMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for numberOfCoresMax. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_numberOfCoresMax int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_numberOfCoresMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_numberOfCoresMax); ++ ++ /** ++ * Resetter for numberOfCoresMax ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_numberOfCoresMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for numberOfCoresAvailable. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_numberOfCoresAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for numberOfCoresAvailable. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_numberOfCoresAvailable int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_numberOfCoresAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_numberOfCoresAvailable); ++ ++ /** ++ * Resetter for numberOfCoresAvailable ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_numberOfCoresAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for publicSubnets. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_publicSubnets( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for publicSubnets. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_publicSubnets axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_publicSubnets( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_publicSubnets); ++ ++ /** ++ * Resetter for publicSubnets ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_publicSubnets( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_correlationId_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_userId_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_return_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_statusMessage_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_statusMessage_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether nodeStatus is nill ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_nodeStatus_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether memorySizeMax is nill ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_memorySizeMax_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether memorySizeAvailable is nill ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_memorySizeAvailable_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether diskSizeMax is nill ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_diskSizeMax_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether diskSizeAvailable is nill ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_diskSizeAvailable_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether numberOfCoresMax is nill ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_numberOfCoresMax_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether numberOfCoresAvailable is nill ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_numberOfCoresAvailable_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether publicSubnets is nill ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_publicSubnets_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_deserialize( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncDescribeResourceResponseType_declare_parent_namespaces( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param ncDescribeResourceResponseType_om_node node to serialize from ++ * @param ncDescribeResourceResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeResourceResponseType_serialize( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* ncDescribeResourceResponseType_om_node, axiom_element_t *ncDescribeResourceResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncDescribeResourceResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCDESCRIBERESOURCERESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncDescribeResourceType.c' +--- old/cluster/generated/adb_ncDescribeResourceType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncDescribeResourceType.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,1702 @@ ++ ++ ++ /** ++ * adb_ncDescribeResourceType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncDescribeResourceType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncDescribeResourceType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncDescribeResourceType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_char_t* property_resourceType; ++ ++ ++ axis2_bool_t is_valid_resourceType; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_correlationId_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_userId_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_return_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_resourceType_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncDescribeResourceType_t* AXIS2_CALL ++ adb_ncDescribeResourceType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncDescribeResourceType_t *_ncDescribeResourceType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncDescribeResourceType = (adb_ncDescribeResourceType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncDescribeResourceType_t)); ++ ++ if(NULL == _ncDescribeResourceType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncDescribeResourceType, 0, sizeof(adb_ncDescribeResourceType_t)); ++ ++ _ncDescribeResourceType->property_correlationId = NULL; ++ _ncDescribeResourceType->is_valid_correlationId = AXIS2_FALSE; ++ _ncDescribeResourceType->property_userId = NULL; ++ _ncDescribeResourceType->is_valid_userId = AXIS2_FALSE; ++ _ncDescribeResourceType->is_valid_return = AXIS2_FALSE; ++ _ncDescribeResourceType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncDescribeResourceType->property_resourceType = NULL; ++ _ncDescribeResourceType->is_valid_resourceType = AXIS2_FALSE; ++ ++ ++ return _ncDescribeResourceType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_free ( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_FAILURE); ++ ++ adb_ncDescribeResourceType_reset_correlationId(_ncDescribeResourceType, env); ++ adb_ncDescribeResourceType_reset_userId(_ncDescribeResourceType, env); ++ adb_ncDescribeResourceType_reset_return(_ncDescribeResourceType, env); ++ adb_ncDescribeResourceType_reset_statusMessage(_ncDescribeResourceType, env); ++ adb_ncDescribeResourceType_reset_resourceType(_ncDescribeResourceType, env); ++ ++ ++ if(_ncDescribeResourceType) ++ { ++ AXIS2_FREE(env->allocator, _ncDescribeResourceType); ++ _ncDescribeResourceType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_deserialize( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDescribeResourceType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceType_set_correlationId(_ncDescribeResourceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDescribeResourceType_set_correlationId(_ncDescribeResourceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceType_set_userId(_ncDescribeResourceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDescribeResourceType_set_userId(_ncDescribeResourceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncDescribeResourceType_set_return(_ncDescribeResourceType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncDescribeResourceType_set_return(_ncDescribeResourceType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceType_set_statusMessage(_ncDescribeResourceType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building resourceType element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "resourceType", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceType_set_resourceType(_ncDescribeResourceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element resourceType"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDescribeResourceType_set_resourceType(_ncDescribeResourceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for resourceType "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncDescribeResourceType_declare_parent_namespaces( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeResourceType_serialize( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncDescribeResourceType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncDescribeResourceType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncDescribeResourceType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDescribeResourceType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceType->is_valid_resourceType) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("resourceType"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("resourceType"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing resourceType element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sresourceType>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _ncDescribeResourceType->property_resourceType; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceType_get_correlationId( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, NULL); ++ ++ ++ return _ncDescribeResourceType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_correlationId( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceType->is_valid_correlationId && ++ arg_correlationId == _ncDescribeResourceType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceType_reset_correlationId(_ncDescribeResourceType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeResourceType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncDescribeResourceType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDescribeResourceType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_reset_correlationId( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeResourceType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDescribeResourceType->property_correlationId); ++ _ncDescribeResourceType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncDescribeResourceType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_is_correlationId_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_correlationId_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceType_reset_correlationId(_ncDescribeResourceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceType_get_userId( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, NULL); ++ ++ ++ return _ncDescribeResourceType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_userId( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceType->is_valid_userId && ++ arg_userId == _ncDescribeResourceType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceType_reset_userId(_ncDescribeResourceType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeResourceType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncDescribeResourceType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDescribeResourceType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_reset_userId( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeResourceType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDescribeResourceType->property_userId); ++ _ncDescribeResourceType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncDescribeResourceType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_is_userId_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_userId_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceType_reset_userId(_ncDescribeResourceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_get_return( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, (axis2_bool_t)0); ++ ++ ++ return _ncDescribeResourceType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_return( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceType->is_valid_return && ++ arg_return == _ncDescribeResourceType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceType_reset_return(_ncDescribeResourceType, env); ++ ++ _ncDescribeResourceType->property_return = arg_return; ++ _ncDescribeResourceType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_reset_return( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeResourceType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_is_return_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_return_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceType_reset_return(_ncDescribeResourceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceType_get_statusMessage( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, (int)0); ++ ++ ++ return _ncDescribeResourceType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_statusMessage( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceType->is_valid_statusMessage && ++ arg_statusMessage == _ncDescribeResourceType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceType_reset_statusMessage(_ncDescribeResourceType, env); ++ ++ _ncDescribeResourceType->property_statusMessage = arg_statusMessage; ++ _ncDescribeResourceType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_reset_statusMessage( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeResourceType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_is_statusMessage_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_statusMessage_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceType_reset_statusMessage(_ncDescribeResourceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for resourceType. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceType_get_resourceType( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, NULL); ++ ++ ++ return _ncDescribeResourceType->property_resourceType; ++ } ++ ++ /** ++ * setter for resourceType ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_resourceType( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_resourceType) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceType->is_valid_resourceType && ++ arg_resourceType == _ncDescribeResourceType->property_resourceType) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceType_reset_resourceType(_ncDescribeResourceType, env); ++ ++ ++ if(NULL == arg_resourceType) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeResourceType->property_resourceType = (axis2_char_t *)axutil_strdup(env, arg_resourceType); ++ if(NULL == _ncDescribeResourceType->property_resourceType) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for resourceType"); ++ return AXIS2_FAILURE; ++ } ++ _ncDescribeResourceType->is_valid_resourceType = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for resourceType ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_reset_resourceType( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeResourceType->property_resourceType != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDescribeResourceType->property_resourceType); ++ _ncDescribeResourceType->property_resourceType = NULL; ++ } ++ ++ ++ ++ _ncDescribeResourceType->is_valid_resourceType = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether resourceType is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_is_resourceType_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceType->is_valid_resourceType; ++ } ++ ++ /** ++ * Set resourceType to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_resourceType_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceType_reset_resourceType(_ncDescribeResourceType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncDescribeResourceType.h' +--- old/cluster/generated/adb_ncDescribeResourceType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncDescribeResourceType.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,414 @@ ++ ++ ++ #ifndef ADB_NCDESCRIBERESOURCETYPE_H ++ #define ADB_NCDESCRIBERESOURCETYPE_H ++ ++ /** ++ * adb_ncDescribeResourceType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncDescribeResourceType class ++ */ ++ typedef struct adb_ncDescribeResourceType adb_ncDescribeResourceType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncDescribeResourceType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncDescribeResourceType_t object ++ */ ++ adb_ncDescribeResourceType_t* AXIS2_CALL ++ adb_ncDescribeResourceType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncDescribeResourceType_t object ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_free ( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceType_get_correlationId( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_correlationId( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_reset_correlationId( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceType_get_userId( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_userId( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_reset_userId( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_get_return( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_return( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_reset_return( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceType_get_statusMessage( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_statusMessage( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_reset_statusMessage( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for resourceType. ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceType_get_resourceType( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for resourceType. ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @param arg_resourceType axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_resourceType( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_resourceType); ++ ++ /** ++ * Resetter for resourceType ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_reset_resourceType( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_is_correlationId_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_is_userId_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_is_return_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_is_statusMessage_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_statusMessage_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether resourceType is nill ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_is_resourceType_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_deserialize( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncDescribeResourceType_declare_parent_namespaces( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @param ncDescribeResourceType_om_node node to serialize from ++ * @param ncDescribeResourceType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeResourceType_serialize( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ axiom_node_t* ncDescribeResourceType_om_node, axiom_element_t *ncDescribeResourceType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncDescribeResourceType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCDESCRIBERESOURCETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncDetachVolume.c' +--- old/cluster/generated/adb_ncDetachVolume.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncDetachVolume.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncDetachVolume.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncDetachVolume.h" ++ ++ /* ++ * implmentation of the ncDetachVolume|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncDetachVolume ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncDetachVolumeType_t* property_ncDetachVolume; ++ ++ ++ axis2_bool_t is_valid_ncDetachVolume; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncDetachVolume_t* AXIS2_CALL ++ adb_ncDetachVolume_create( ++ const axutil_env_t *env) ++ { ++ adb_ncDetachVolume_t *_ncDetachVolume = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncDetachVolume = (adb_ncDetachVolume_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncDetachVolume_t)); ++ ++ if(NULL == _ncDetachVolume) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncDetachVolume, 0, sizeof(adb_ncDetachVolume_t)); ++ ++ _ncDetachVolume->property_ncDetachVolume = NULL; ++ _ncDetachVolume->is_valid_ncDetachVolume = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncDetachVolume", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncDetachVolume->qname = qname; ++ ++ ++ return _ncDetachVolume; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolume_free ( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolume, AXIS2_FAILURE); ++ ++ adb_ncDetachVolume_reset_ncDetachVolume(_ncDetachVolume, env); ++ ++ if(_ncDetachVolume->qname) ++ { ++ axutil_qname_free (_ncDetachVolume->qname, env); ++ _ncDetachVolume->qname = NULL; ++ } ++ ++ ++ if(_ncDetachVolume) ++ { ++ AXIS2_FREE(env->allocator, _ncDetachVolume); ++ _ncDetachVolume = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolume_deserialize( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolume, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDetachVolume : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncDetachVolume-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDetachVolume : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncDetachVolume-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncDetachVolume element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncDetachVolume", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncDetachVolumeType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncDetachVolumeType_create(env); ++ ++ status = adb_ncDetachVolumeType_deserialize((adb_ncDetachVolumeType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncDetachVolume"); ++ } ++ else ++ { ++ status = adb_ncDetachVolume_set_ncDetachVolume(_ncDetachVolume, env, ++ (adb_ncDetachVolumeType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncDetachVolume "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncDetachVolume missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolume_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncDetachVolume_declare_parent_namespaces( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDetachVolume_serialize( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolume, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncDetachVolume", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolume->is_valid_ncDetachVolume) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncDetachVolume") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncDetachVolume xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncDetachVolume"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncDetachVolume"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncDetachVolume element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncDetachVolume", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncDetachVolumeType_serialize(_ncDetachVolume->property_ncDetachVolume, ++ env, current_node, parent_element, ++ adb_ncDetachVolumeType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncDetachVolume. ++ */ ++ adb_ncDetachVolumeType_t* AXIS2_CALL ++ adb_ncDetachVolume_get_ncDetachVolume( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolume, NULL); ++ ++ ++ return _ncDetachVolume->property_ncDetachVolume; ++ } ++ ++ /** ++ * setter for ncDetachVolume ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolume_set_ncDetachVolume( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env, ++ adb_ncDetachVolumeType_t* arg_ncDetachVolume) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolume, AXIS2_FAILURE); ++ ++ if(_ncDetachVolume->is_valid_ncDetachVolume && ++ arg_ncDetachVolume == _ncDetachVolume->property_ncDetachVolume) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolume_reset_ncDetachVolume(_ncDetachVolume, env); ++ ++ ++ if(NULL == arg_ncDetachVolume) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDetachVolume->property_ncDetachVolume = arg_ncDetachVolume; ++ _ncDetachVolume->is_valid_ncDetachVolume = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncDetachVolume ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolume_reset_ncDetachVolume( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolume, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDetachVolume->property_ncDetachVolume != NULL) ++ { ++ ++ ++ adb_ncDetachVolumeType_free(_ncDetachVolume->property_ncDetachVolume, env); ++ _ncDetachVolume->property_ncDetachVolume = NULL; ++ } ++ ++ ++ ++ _ncDetachVolume->is_valid_ncDetachVolume = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncDetachVolume is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolume_is_ncDetachVolume_nil( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolume, AXIS2_TRUE); ++ ++ return !_ncDetachVolume->is_valid_ncDetachVolume; ++ } ++ ++ /** ++ * Set ncDetachVolume to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolume_set_ncDetachVolume_nil( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolume_reset_ncDetachVolume(_ncDetachVolume, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncDetachVolume.h' +--- old/cluster/generated/adb_ncDetachVolume.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncDetachVolume.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCDETACHVOLUME_H ++ #define ADB_NCDETACHVOLUME_H ++ ++ /** ++ * adb_ncDetachVolume.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncDetachVolume class ++ */ ++ typedef struct adb_ncDetachVolume adb_ncDetachVolume_t; ++ ++ ++ #include "adb_ncDetachVolumeType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncDetachVolume_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncDetachVolume_t object ++ */ ++ adb_ncDetachVolume_t* AXIS2_CALL ++ adb_ncDetachVolume_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncDetachVolume_t object ++ * @param _ncDetachVolume adb_ncDetachVolume_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolume_free ( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncDetachVolume. ++ * @param _ncDetachVolume adb_ncDetachVolume_t object ++ * @param env pointer to environment struct ++ * @return adb_ncDetachVolumeType_t* ++ */ ++ adb_ncDetachVolumeType_t* AXIS2_CALL ++ adb_ncDetachVolume_get_ncDetachVolume( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncDetachVolume. ++ * @param _ncDetachVolume adb_ncDetachVolume_t object ++ * @param env pointer to environment struct ++ * @param arg_ncDetachVolume adb_ncDetachVolumeType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolume_set_ncDetachVolume( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env, ++ adb_ncDetachVolumeType_t* arg_ncDetachVolume); ++ ++ /** ++ * Resetter for ncDetachVolume ++ * @param _ncDetachVolume adb_ncDetachVolume_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolume_reset_ncDetachVolume( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncDetachVolume is nill ++ * @param _ncDetachVolume adb_ncDetachVolume_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolume_is_ncDetachVolume_nil( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncDetachVolume to nill (currently the same as reset) ++ * @param _ncDetachVolume adb_ncDetachVolume_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolume_set_ncDetachVolume_nil( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncDetachVolume adb_ncDetachVolume_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolume_deserialize( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncDetachVolume adb_ncDetachVolume_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncDetachVolume_declare_parent_namespaces( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncDetachVolume adb_ncDetachVolume_t object ++ * @param env pointer to environment struct ++ * @param ncDetachVolume_om_node node to serialize from ++ * @param ncDetachVolume_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDetachVolume_serialize( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env, ++ axiom_node_t* ncDetachVolume_om_node, axiom_element_t *ncDetachVolume_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncDetachVolume is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolume_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCDETACHVOLUME_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncDetachVolumeResponse.c' +--- old/cluster/generated/adb_ncDetachVolumeResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncDetachVolumeResponse.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncDetachVolumeResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncDetachVolumeResponse.h" ++ ++ /* ++ * implmentation of the ncDetachVolumeResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncDetachVolumeResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncDetachVolumeResponseType_t* property_ncDetachVolumeResponse; ++ ++ ++ axis2_bool_t is_valid_ncDetachVolumeResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncDetachVolumeResponse_t* AXIS2_CALL ++ adb_ncDetachVolumeResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_ncDetachVolumeResponse_t *_ncDetachVolumeResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncDetachVolumeResponse = (adb_ncDetachVolumeResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncDetachVolumeResponse_t)); ++ ++ if(NULL == _ncDetachVolumeResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncDetachVolumeResponse, 0, sizeof(adb_ncDetachVolumeResponse_t)); ++ ++ _ncDetachVolumeResponse->property_ncDetachVolumeResponse = NULL; ++ _ncDetachVolumeResponse->is_valid_ncDetachVolumeResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncDetachVolumeResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncDetachVolumeResponse->qname = qname; ++ ++ ++ return _ncDetachVolumeResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_free ( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponse, AXIS2_FAILURE); ++ ++ adb_ncDetachVolumeResponse_reset_ncDetachVolumeResponse(_ncDetachVolumeResponse, env); ++ ++ if(_ncDetachVolumeResponse->qname) ++ { ++ axutil_qname_free (_ncDetachVolumeResponse->qname, env); ++ _ncDetachVolumeResponse->qname = NULL; ++ } ++ ++ ++ if(_ncDetachVolumeResponse) ++ { ++ AXIS2_FREE(env->allocator, _ncDetachVolumeResponse); ++ _ncDetachVolumeResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_deserialize( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDetachVolumeResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncDetachVolumeResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDetachVolumeResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncDetachVolumeResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncDetachVolumeResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncDetachVolumeResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncDetachVolumeResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncDetachVolumeResponseType_create(env); ++ ++ status = adb_ncDetachVolumeResponseType_deserialize((adb_ncDetachVolumeResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncDetachVolumeResponse"); ++ } ++ else ++ { ++ status = adb_ncDetachVolumeResponse_set_ncDetachVolumeResponse(_ncDetachVolumeResponse, env, ++ (adb_ncDetachVolumeResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncDetachVolumeResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncDetachVolumeResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncDetachVolumeResponse_declare_parent_namespaces( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDetachVolumeResponse_serialize( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncDetachVolumeResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeResponse->is_valid_ncDetachVolumeResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncDetachVolumeResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncDetachVolumeResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncDetachVolumeResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncDetachVolumeResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncDetachVolumeResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncDetachVolumeResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncDetachVolumeResponseType_serialize(_ncDetachVolumeResponse->property_ncDetachVolumeResponse, ++ env, current_node, parent_element, ++ adb_ncDetachVolumeResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncDetachVolumeResponse. ++ */ ++ adb_ncDetachVolumeResponseType_t* AXIS2_CALL ++ adb_ncDetachVolumeResponse_get_ncDetachVolumeResponse( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponse, NULL); ++ ++ ++ return _ncDetachVolumeResponse->property_ncDetachVolumeResponse; ++ } ++ ++ /** ++ * setter for ncDetachVolumeResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_set_ncDetachVolumeResponse( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env, ++ adb_ncDetachVolumeResponseType_t* arg_ncDetachVolumeResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponse, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeResponse->is_valid_ncDetachVolumeResponse && ++ arg_ncDetachVolumeResponse == _ncDetachVolumeResponse->property_ncDetachVolumeResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeResponse_reset_ncDetachVolumeResponse(_ncDetachVolumeResponse, env); ++ ++ ++ if(NULL == arg_ncDetachVolumeResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDetachVolumeResponse->property_ncDetachVolumeResponse = arg_ncDetachVolumeResponse; ++ _ncDetachVolumeResponse->is_valid_ncDetachVolumeResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncDetachVolumeResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_reset_ncDetachVolumeResponse( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDetachVolumeResponse->property_ncDetachVolumeResponse != NULL) ++ { ++ ++ ++ adb_ncDetachVolumeResponseType_free(_ncDetachVolumeResponse->property_ncDetachVolumeResponse, env); ++ _ncDetachVolumeResponse->property_ncDetachVolumeResponse = NULL; ++ } ++ ++ ++ ++ _ncDetachVolumeResponse->is_valid_ncDetachVolumeResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncDetachVolumeResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_is_ncDetachVolumeResponse_nil( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponse, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeResponse->is_valid_ncDetachVolumeResponse; ++ } ++ ++ /** ++ * Set ncDetachVolumeResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_set_ncDetachVolumeResponse_nil( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeResponse_reset_ncDetachVolumeResponse(_ncDetachVolumeResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncDetachVolumeResponse.h' +--- old/cluster/generated/adb_ncDetachVolumeResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncDetachVolumeResponse.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCDETACHVOLUMERESPONSE_H ++ #define ADB_NCDETACHVOLUMERESPONSE_H ++ ++ /** ++ * adb_ncDetachVolumeResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncDetachVolumeResponse class ++ */ ++ typedef struct adb_ncDetachVolumeResponse adb_ncDetachVolumeResponse_t; ++ ++ ++ #include "adb_ncDetachVolumeResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncDetachVolumeResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncDetachVolumeResponse_t object ++ */ ++ adb_ncDetachVolumeResponse_t* AXIS2_CALL ++ adb_ncDetachVolumeResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncDetachVolumeResponse_t object ++ * @param _ncDetachVolumeResponse adb_ncDetachVolumeResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_free ( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncDetachVolumeResponse. ++ * @param _ncDetachVolumeResponse adb_ncDetachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_ncDetachVolumeResponseType_t* ++ */ ++ adb_ncDetachVolumeResponseType_t* AXIS2_CALL ++ adb_ncDetachVolumeResponse_get_ncDetachVolumeResponse( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncDetachVolumeResponse. ++ * @param _ncDetachVolumeResponse adb_ncDetachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_ncDetachVolumeResponse adb_ncDetachVolumeResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_set_ncDetachVolumeResponse( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env, ++ adb_ncDetachVolumeResponseType_t* arg_ncDetachVolumeResponse); ++ ++ /** ++ * Resetter for ncDetachVolumeResponse ++ * @param _ncDetachVolumeResponse adb_ncDetachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_reset_ncDetachVolumeResponse( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncDetachVolumeResponse is nill ++ * @param _ncDetachVolumeResponse adb_ncDetachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_is_ncDetachVolumeResponse_nil( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncDetachVolumeResponse to nill (currently the same as reset) ++ * @param _ncDetachVolumeResponse adb_ncDetachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_set_ncDetachVolumeResponse_nil( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncDetachVolumeResponse adb_ncDetachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_deserialize( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncDetachVolumeResponse adb_ncDetachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncDetachVolumeResponse_declare_parent_namespaces( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncDetachVolumeResponse adb_ncDetachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @param ncDetachVolumeResponse_om_node node to serialize from ++ * @param ncDetachVolumeResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDetachVolumeResponse_serialize( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env, ++ axiom_node_t* ncDetachVolumeResponse_om_node, axiom_element_t *ncDetachVolumeResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncDetachVolumeResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCDETACHVOLUMERESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncDetachVolumeResponseType.c' +--- old/cluster/generated/adb_ncDetachVolumeResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncDetachVolumeResponseType.c 2010-01-05 01:00:43 +0000 +@@ -0,0 +1,1365 @@ ++ ++ ++ /** ++ * adb_ncDetachVolumeResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncDetachVolumeResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncDetachVolumeResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncDetachVolumeResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_correlationId_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_userId_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_return_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncDetachVolumeResponseType_t* AXIS2_CALL ++ adb_ncDetachVolumeResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncDetachVolumeResponseType_t *_ncDetachVolumeResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncDetachVolumeResponseType = (adb_ncDetachVolumeResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncDetachVolumeResponseType_t)); ++ ++ if(NULL == _ncDetachVolumeResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncDetachVolumeResponseType, 0, sizeof(adb_ncDetachVolumeResponseType_t)); ++ ++ _ncDetachVolumeResponseType->property_correlationId = NULL; ++ _ncDetachVolumeResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _ncDetachVolumeResponseType->property_userId = NULL; ++ _ncDetachVolumeResponseType->is_valid_userId = AXIS2_FALSE; ++ _ncDetachVolumeResponseType->is_valid_return = AXIS2_FALSE; ++ _ncDetachVolumeResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ ++ ++ return _ncDetachVolumeResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_free ( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE); ++ ++ adb_ncDetachVolumeResponseType_reset_correlationId(_ncDetachVolumeResponseType, env); ++ adb_ncDetachVolumeResponseType_reset_userId(_ncDetachVolumeResponseType, env); ++ adb_ncDetachVolumeResponseType_reset_return(_ncDetachVolumeResponseType, env); ++ adb_ncDetachVolumeResponseType_reset_statusMessage(_ncDetachVolumeResponseType, env); ++ ++ ++ if(_ncDetachVolumeResponseType) ++ { ++ AXIS2_FREE(env->allocator, _ncDetachVolumeResponseType); ++ _ncDetachVolumeResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_deserialize( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDetachVolumeResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDetachVolumeResponseType_set_correlationId(_ncDetachVolumeResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDetachVolumeResponseType_set_correlationId(_ncDetachVolumeResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDetachVolumeResponseType_set_userId(_ncDetachVolumeResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDetachVolumeResponseType_set_userId(_ncDetachVolumeResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncDetachVolumeResponseType_set_return(_ncDetachVolumeResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncDetachVolumeResponseType_set_return(_ncDetachVolumeResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDetachVolumeResponseType_set_statusMessage(_ncDetachVolumeResponseType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncDetachVolumeResponseType_declare_parent_namespaces( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDetachVolumeResponseType_serialize( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncDetachVolumeResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncDetachVolumeResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncDetachVolumeResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDetachVolumeResponseType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeResponseType_get_correlationId( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, NULL); ++ ++ ++ return _ncDetachVolumeResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_correlationId( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeResponseType->is_valid_correlationId && ++ arg_correlationId == _ncDetachVolumeResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeResponseType_reset_correlationId(_ncDetachVolumeResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDetachVolumeResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncDetachVolumeResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDetachVolumeResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_reset_correlationId( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDetachVolumeResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDetachVolumeResponseType->property_correlationId); ++ _ncDetachVolumeResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncDetachVolumeResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_is_correlationId_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_correlationId_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeResponseType_reset_correlationId(_ncDetachVolumeResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeResponseType_get_userId( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, NULL); ++ ++ ++ return _ncDetachVolumeResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_userId( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeResponseType->is_valid_userId && ++ arg_userId == _ncDetachVolumeResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeResponseType_reset_userId(_ncDetachVolumeResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDetachVolumeResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncDetachVolumeResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDetachVolumeResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_reset_userId( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDetachVolumeResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDetachVolumeResponseType->property_userId); ++ _ncDetachVolumeResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncDetachVolumeResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_is_userId_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_userId_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeResponseType_reset_userId(_ncDetachVolumeResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_get_return( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, (axis2_bool_t)0); ++ ++ ++ return _ncDetachVolumeResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_return( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeResponseType->is_valid_return && ++ arg_return == _ncDetachVolumeResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeResponseType_reset_return(_ncDetachVolumeResponseType, env); ++ ++ _ncDetachVolumeResponseType->property_return = arg_return; ++ _ncDetachVolumeResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_reset_return( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ _ncDetachVolumeResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_is_return_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_return_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeResponseType_reset_return(_ncDetachVolumeResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncDetachVolumeResponseType_get_statusMessage( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, (int)0); ++ ++ ++ return _ncDetachVolumeResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_statusMessage( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeResponseType->is_valid_statusMessage && ++ arg_statusMessage == _ncDetachVolumeResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeResponseType_reset_statusMessage(_ncDetachVolumeResponseType, env); ++ ++ _ncDetachVolumeResponseType->property_statusMessage = arg_statusMessage; ++ _ncDetachVolumeResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_reset_statusMessage( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ _ncDetachVolumeResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_is_statusMessage_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_statusMessage_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeResponseType_reset_statusMessage(_ncDetachVolumeResponseType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncDetachVolumeResponseType.h' +--- old/cluster/generated/adb_ncDetachVolumeResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncDetachVolumeResponseType.h 2010-01-05 01:00:43 +0000 +@@ -0,0 +1,362 @@ ++ ++ ++ #ifndef ADB_NCDETACHVOLUMERESPONSETYPE_H ++ #define ADB_NCDETACHVOLUMERESPONSETYPE_H ++ ++ /** ++ * adb_ncDetachVolumeResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncDetachVolumeResponseType class ++ */ ++ typedef struct adb_ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncDetachVolumeResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncDetachVolumeResponseType_t object ++ */ ++ adb_ncDetachVolumeResponseType_t* AXIS2_CALL ++ adb_ncDetachVolumeResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncDetachVolumeResponseType_t object ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_free ( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeResponseType_get_correlationId( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_correlationId( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_reset_correlationId( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeResponseType_get_userId( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_userId( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_reset_userId( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_get_return( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_return( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_reset_return( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncDetachVolumeResponseType_get_statusMessage( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_statusMessage( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_reset_statusMessage( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_is_correlationId_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_is_userId_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_is_return_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_is_statusMessage_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_statusMessage_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_deserialize( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncDetachVolumeResponseType_declare_parent_namespaces( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param ncDetachVolumeResponseType_om_node node to serialize from ++ * @param ncDetachVolumeResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDetachVolumeResponseType_serialize( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* ncDetachVolumeResponseType_om_node, axiom_element_t *ncDetachVolumeResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncDetachVolumeResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCDETACHVOLUMERESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncDetachVolumeType.c' +--- old/cluster/generated/adb_ncDetachVolumeType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncDetachVolumeType.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,2969 @@ ++ ++ ++ /** ++ * adb_ncDetachVolumeType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncDetachVolumeType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncDetachVolumeType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncDetachVolumeType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_char_t* property_instanceId; ++ ++ ++ axis2_bool_t is_valid_instanceId; ++ ++ ++ axis2_char_t* property_volumeId; ++ ++ ++ axis2_bool_t is_valid_volumeId; ++ ++ ++ axis2_char_t* property_remoteDev; ++ ++ ++ axis2_bool_t is_valid_remoteDev; ++ ++ ++ axis2_char_t* property_localDev; ++ ++ ++ axis2_bool_t is_valid_localDev; ++ ++ ++ axis2_bool_t property_force; ++ ++ ++ axis2_bool_t is_valid_force; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_correlationId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_userId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_return_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_instanceId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_volumeId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_remoteDev_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_localDev_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_force_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncDetachVolumeType_t* AXIS2_CALL ++ adb_ncDetachVolumeType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncDetachVolumeType_t *_ncDetachVolumeType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncDetachVolumeType = (adb_ncDetachVolumeType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncDetachVolumeType_t)); ++ ++ if(NULL == _ncDetachVolumeType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncDetachVolumeType, 0, sizeof(adb_ncDetachVolumeType_t)); ++ ++ _ncDetachVolumeType->property_correlationId = NULL; ++ _ncDetachVolumeType->is_valid_correlationId = AXIS2_FALSE; ++ _ncDetachVolumeType->property_userId = NULL; ++ _ncDetachVolumeType->is_valid_userId = AXIS2_FALSE; ++ _ncDetachVolumeType->is_valid_return = AXIS2_FALSE; ++ _ncDetachVolumeType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncDetachVolumeType->property_instanceId = NULL; ++ _ncDetachVolumeType->is_valid_instanceId = AXIS2_FALSE; ++ _ncDetachVolumeType->property_volumeId = NULL; ++ _ncDetachVolumeType->is_valid_volumeId = AXIS2_FALSE; ++ _ncDetachVolumeType->property_remoteDev = NULL; ++ _ncDetachVolumeType->is_valid_remoteDev = AXIS2_FALSE; ++ _ncDetachVolumeType->property_localDev = NULL; ++ _ncDetachVolumeType->is_valid_localDev = AXIS2_FALSE; ++ _ncDetachVolumeType->is_valid_force = AXIS2_FALSE; ++ ++ ++ return _ncDetachVolumeType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_free ( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ adb_ncDetachVolumeType_reset_correlationId(_ncDetachVolumeType, env); ++ adb_ncDetachVolumeType_reset_userId(_ncDetachVolumeType, env); ++ adb_ncDetachVolumeType_reset_return(_ncDetachVolumeType, env); ++ adb_ncDetachVolumeType_reset_statusMessage(_ncDetachVolumeType, env); ++ adb_ncDetachVolumeType_reset_instanceId(_ncDetachVolumeType, env); ++ adb_ncDetachVolumeType_reset_volumeId(_ncDetachVolumeType, env); ++ adb_ncDetachVolumeType_reset_remoteDev(_ncDetachVolumeType, env); ++ adb_ncDetachVolumeType_reset_localDev(_ncDetachVolumeType, env); ++ adb_ncDetachVolumeType_reset_force(_ncDetachVolumeType, env); ++ ++ ++ if(_ncDetachVolumeType) ++ { ++ AXIS2_FREE(env->allocator, _ncDetachVolumeType); ++ _ncDetachVolumeType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_deserialize( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDetachVolumeType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDetachVolumeType_set_correlationId(_ncDetachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDetachVolumeType_set_correlationId(_ncDetachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDetachVolumeType_set_userId(_ncDetachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDetachVolumeType_set_userId(_ncDetachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncDetachVolumeType_set_return(_ncDetachVolumeType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncDetachVolumeType_set_return(_ncDetachVolumeType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDetachVolumeType_set_statusMessage(_ncDetachVolumeType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDetachVolumeType_set_instanceId(_ncDetachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDetachVolumeType_set_instanceId(_ncDetachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building volumeId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "volumeId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDetachVolumeType_set_volumeId(_ncDetachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element volumeId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDetachVolumeType_set_volumeId(_ncDetachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for volumeId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building remoteDev element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "remoteDev", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDetachVolumeType_set_remoteDev(_ncDetachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element remoteDev"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDetachVolumeType_set_remoteDev(_ncDetachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for remoteDev "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building localDev element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "localDev", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDetachVolumeType_set_localDev(_ncDetachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element localDev"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDetachVolumeType_set_localDev(_ncDetachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for localDev "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building force element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "force", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncDetachVolumeType_set_force(_ncDetachVolumeType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncDetachVolumeType_set_force(_ncDetachVolumeType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element force"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for force "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncDetachVolumeType_declare_parent_namespaces( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDetachVolumeType_serialize( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *text_value_6; ++ axis2_char_t *text_value_6_temp; ++ ++ axis2_char_t *text_value_7; ++ axis2_char_t *text_value_7_temp; ++ ++ axis2_char_t *text_value_8; ++ axis2_char_t *text_value_8_temp; ++ ++ axis2_char_t text_value_9[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncDetachVolumeType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncDetachVolumeType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncDetachVolumeType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDetachVolumeType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeType->is_valid_instanceId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _ncDetachVolumeType->property_instanceId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeType->is_valid_volumeId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("volumeId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("volumeId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing volumeId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%svolumeId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_6 = _ncDetachVolumeType->property_volumeId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE); ++ if (text_value_6_temp) ++ { ++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp)); ++ AXIS2_FREE(env->allocator, text_value_6_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeType->is_valid_remoteDev) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("remoteDev"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("remoteDev"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing remoteDev element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sremoteDev>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_7 = _ncDetachVolumeType->property_remoteDev; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE); ++ if (text_value_7_temp) ++ { ++ axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp)); ++ AXIS2_FREE(env->allocator, text_value_7_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeType->is_valid_localDev) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("localDev"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("localDev"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing localDev element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%slocalDev>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_8 = _ncDetachVolumeType->property_localDev; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE); ++ if (text_value_8_temp) ++ { ++ axutil_stream_write(stream, env, text_value_8_temp, axutil_strlen(text_value_8_temp)); ++ AXIS2_FREE(env->allocator, text_value_8_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeType->is_valid_force) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("force"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("force"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing force element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sforce>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_9, (_ncDetachVolumeType->property_force)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_9, axutil_strlen(text_value_9)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeType_get_correlationId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, NULL); ++ ++ ++ return _ncDetachVolumeType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_correlationId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeType->is_valid_correlationId && ++ arg_correlationId == _ncDetachVolumeType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeType_reset_correlationId(_ncDetachVolumeType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDetachVolumeType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncDetachVolumeType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDetachVolumeType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_correlationId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDetachVolumeType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDetachVolumeType->property_correlationId); ++ _ncDetachVolumeType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncDetachVolumeType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_correlationId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_correlationId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeType_reset_correlationId(_ncDetachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeType_get_userId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, NULL); ++ ++ ++ return _ncDetachVolumeType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_userId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeType->is_valid_userId && ++ arg_userId == _ncDetachVolumeType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeType_reset_userId(_ncDetachVolumeType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDetachVolumeType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncDetachVolumeType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDetachVolumeType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_userId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDetachVolumeType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDetachVolumeType->property_userId); ++ _ncDetachVolumeType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncDetachVolumeType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_userId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_userId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeType_reset_userId(_ncDetachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_get_return( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, (axis2_bool_t)0); ++ ++ ++ return _ncDetachVolumeType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_return( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeType->is_valid_return && ++ arg_return == _ncDetachVolumeType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeType_reset_return(_ncDetachVolumeType, env); ++ ++ _ncDetachVolumeType->property_return = arg_return; ++ _ncDetachVolumeType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_return( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ ++ _ncDetachVolumeType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_return_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_return_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeType_reset_return(_ncDetachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncDetachVolumeType_get_statusMessage( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, (int)0); ++ ++ ++ return _ncDetachVolumeType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_statusMessage( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeType->is_valid_statusMessage && ++ arg_statusMessage == _ncDetachVolumeType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeType_reset_statusMessage(_ncDetachVolumeType, env); ++ ++ _ncDetachVolumeType->property_statusMessage = arg_statusMessage; ++ _ncDetachVolumeType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_statusMessage( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ ++ _ncDetachVolumeType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_statusMessage_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_statusMessage_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeType_reset_statusMessage(_ncDetachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeType_get_instanceId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, NULL); ++ ++ ++ return _ncDetachVolumeType->property_instanceId; ++ } ++ ++ /** ++ * setter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_instanceId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeType->is_valid_instanceId && ++ arg_instanceId == _ncDetachVolumeType->property_instanceId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeType_reset_instanceId(_ncDetachVolumeType, env); ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDetachVolumeType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId); ++ if(NULL == _ncDetachVolumeType->property_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDetachVolumeType->is_valid_instanceId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_instanceId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDetachVolumeType->property_instanceId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDetachVolumeType->property_instanceId); ++ _ncDetachVolumeType->property_instanceId = NULL; ++ } ++ ++ ++ ++ _ncDetachVolumeType->is_valid_instanceId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_instanceId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeType->is_valid_instanceId; ++ } ++ ++ /** ++ * Set instanceId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_instanceId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeType_reset_instanceId(_ncDetachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for volumeId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeType_get_volumeId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, NULL); ++ ++ ++ return _ncDetachVolumeType->property_volumeId; ++ } ++ ++ /** ++ * setter for volumeId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_volumeId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_volumeId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeType->is_valid_volumeId && ++ arg_volumeId == _ncDetachVolumeType->property_volumeId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeType_reset_volumeId(_ncDetachVolumeType, env); ++ ++ ++ if(NULL == arg_volumeId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDetachVolumeType->property_volumeId = (axis2_char_t *)axutil_strdup(env, arg_volumeId); ++ if(NULL == _ncDetachVolumeType->property_volumeId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for volumeId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDetachVolumeType->is_valid_volumeId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for volumeId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_volumeId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDetachVolumeType->property_volumeId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDetachVolumeType->property_volumeId); ++ _ncDetachVolumeType->property_volumeId = NULL; ++ } ++ ++ ++ ++ _ncDetachVolumeType->is_valid_volumeId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether volumeId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_volumeId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeType->is_valid_volumeId; ++ } ++ ++ /** ++ * Set volumeId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_volumeId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeType_reset_volumeId(_ncDetachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for remoteDev. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeType_get_remoteDev( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, NULL); ++ ++ ++ return _ncDetachVolumeType->property_remoteDev; ++ } ++ ++ /** ++ * setter for remoteDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_remoteDev( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_remoteDev) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeType->is_valid_remoteDev && ++ arg_remoteDev == _ncDetachVolumeType->property_remoteDev) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeType_reset_remoteDev(_ncDetachVolumeType, env); ++ ++ ++ if(NULL == arg_remoteDev) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDetachVolumeType->property_remoteDev = (axis2_char_t *)axutil_strdup(env, arg_remoteDev); ++ if(NULL == _ncDetachVolumeType->property_remoteDev) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for remoteDev"); ++ return AXIS2_FAILURE; ++ } ++ _ncDetachVolumeType->is_valid_remoteDev = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for remoteDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_remoteDev( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDetachVolumeType->property_remoteDev != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDetachVolumeType->property_remoteDev); ++ _ncDetachVolumeType->property_remoteDev = NULL; ++ } ++ ++ ++ ++ _ncDetachVolumeType->is_valid_remoteDev = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether remoteDev is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_remoteDev_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeType->is_valid_remoteDev; ++ } ++ ++ /** ++ * Set remoteDev to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_remoteDev_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeType_reset_remoteDev(_ncDetachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for localDev. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeType_get_localDev( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, NULL); ++ ++ ++ return _ncDetachVolumeType->property_localDev; ++ } ++ ++ /** ++ * setter for localDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_localDev( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_localDev) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeType->is_valid_localDev && ++ arg_localDev == _ncDetachVolumeType->property_localDev) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeType_reset_localDev(_ncDetachVolumeType, env); ++ ++ ++ if(NULL == arg_localDev) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDetachVolumeType->property_localDev = (axis2_char_t *)axutil_strdup(env, arg_localDev); ++ if(NULL == _ncDetachVolumeType->property_localDev) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for localDev"); ++ return AXIS2_FAILURE; ++ } ++ _ncDetachVolumeType->is_valid_localDev = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for localDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_localDev( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDetachVolumeType->property_localDev != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDetachVolumeType->property_localDev); ++ _ncDetachVolumeType->property_localDev = NULL; ++ } ++ ++ ++ ++ _ncDetachVolumeType->is_valid_localDev = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether localDev is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_localDev_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeType->is_valid_localDev; ++ } ++ ++ /** ++ * Set localDev to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_localDev_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeType_reset_localDev(_ncDetachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for force. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_get_force( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, (axis2_bool_t)0); ++ ++ ++ return _ncDetachVolumeType->property_force; ++ } ++ ++ /** ++ * setter for force ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_force( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_force) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeType->is_valid_force && ++ arg_force == _ncDetachVolumeType->property_force) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeType_reset_force(_ncDetachVolumeType, env); ++ ++ _ncDetachVolumeType->property_force = arg_force; ++ _ncDetachVolumeType->is_valid_force = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for force ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_force( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ ++ _ncDetachVolumeType->is_valid_force = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether force is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_force_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeType->is_valid_force; ++ } ++ ++ /** ++ * Set force to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_force_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeType_reset_force(_ncDetachVolumeType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncDetachVolumeType.h' +--- old/cluster/generated/adb_ncDetachVolumeType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncDetachVolumeType.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,622 @@ ++ ++ ++ #ifndef ADB_NCDETACHVOLUMETYPE_H ++ #define ADB_NCDETACHVOLUMETYPE_H ++ ++ /** ++ * adb_ncDetachVolumeType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncDetachVolumeType class ++ */ ++ typedef struct adb_ncDetachVolumeType adb_ncDetachVolumeType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncDetachVolumeType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncDetachVolumeType_t object ++ */ ++ adb_ncDetachVolumeType_t* AXIS2_CALL ++ adb_ncDetachVolumeType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncDetachVolumeType_t object ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_free ( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeType_get_correlationId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_correlationId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_correlationId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeType_get_userId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_userId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_userId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_get_return( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_return( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_return( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncDetachVolumeType_get_statusMessage( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_statusMessage( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_statusMessage( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceId. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeType_get_instanceId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceId. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_instanceId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId); ++ ++ /** ++ * Resetter for instanceId ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_instanceId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for volumeId. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeType_get_volumeId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for volumeId. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_volumeId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_volumeId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_volumeId); ++ ++ /** ++ * Resetter for volumeId ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_volumeId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for remoteDev. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeType_get_remoteDev( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for remoteDev. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_remoteDev axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_remoteDev( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_remoteDev); ++ ++ /** ++ * Resetter for remoteDev ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_remoteDev( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for localDev. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeType_get_localDev( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for localDev. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_localDev axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_localDev( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_localDev); ++ ++ /** ++ * Resetter for localDev ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_localDev( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for force. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_get_force( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for force. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_force axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_force( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_force); ++ ++ /** ++ * Resetter for force ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_force( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_correlationId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_userId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_return_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_statusMessage_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_statusMessage_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether instanceId is nill ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_instanceId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether volumeId is nill ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_volumeId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether remoteDev is nill ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_remoteDev_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether localDev is nill ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_localDev_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether force is nill ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_force_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_deserialize( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncDetachVolumeType_declare_parent_namespaces( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param ncDetachVolumeType_om_node node to serialize from ++ * @param ncDetachVolumeType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDetachVolumeType_serialize( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ axiom_node_t* ncDetachVolumeType_om_node, axiom_element_t *ncDetachVolumeType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncDetachVolumeType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCDETACHVOLUMETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncGetConsoleOutput.c' +--- old/cluster/generated/adb_ncGetConsoleOutput.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncGetConsoleOutput.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncGetConsoleOutput.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncGetConsoleOutput.h" ++ ++ /* ++ * implmentation of the ncGetConsoleOutput|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncGetConsoleOutput ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncGetConsoleOutputType_t* property_ncGetConsoleOutput; ++ ++ ++ axis2_bool_t is_valid_ncGetConsoleOutput; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncGetConsoleOutput_t* AXIS2_CALL ++ adb_ncGetConsoleOutput_create( ++ const axutil_env_t *env) ++ { ++ adb_ncGetConsoleOutput_t *_ncGetConsoleOutput = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncGetConsoleOutput = (adb_ncGetConsoleOutput_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncGetConsoleOutput_t)); ++ ++ if(NULL == _ncGetConsoleOutput) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncGetConsoleOutput, 0, sizeof(adb_ncGetConsoleOutput_t)); ++ ++ _ncGetConsoleOutput->property_ncGetConsoleOutput = NULL; ++ _ncGetConsoleOutput->is_valid_ncGetConsoleOutput = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncGetConsoleOutput", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncGetConsoleOutput->qname = qname; ++ ++ ++ return _ncGetConsoleOutput; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutput_free ( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutput, AXIS2_FAILURE); ++ ++ adb_ncGetConsoleOutput_reset_ncGetConsoleOutput(_ncGetConsoleOutput, env); ++ ++ if(_ncGetConsoleOutput->qname) ++ { ++ axutil_qname_free (_ncGetConsoleOutput->qname, env); ++ _ncGetConsoleOutput->qname = NULL; ++ } ++ ++ ++ if(_ncGetConsoleOutput) ++ { ++ AXIS2_FREE(env->allocator, _ncGetConsoleOutput); ++ _ncGetConsoleOutput = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutput_deserialize( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutput, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncGetConsoleOutput : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncGetConsoleOutput-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncGetConsoleOutput : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncGetConsoleOutput-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncGetConsoleOutput element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncGetConsoleOutput", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncGetConsoleOutputType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncGetConsoleOutputType_create(env); ++ ++ status = adb_ncGetConsoleOutputType_deserialize((adb_ncGetConsoleOutputType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncGetConsoleOutput"); ++ } ++ else ++ { ++ status = adb_ncGetConsoleOutput_set_ncGetConsoleOutput(_ncGetConsoleOutput, env, ++ (adb_ncGetConsoleOutputType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncGetConsoleOutput "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncGetConsoleOutput missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutput_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncGetConsoleOutput_declare_parent_namespaces( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncGetConsoleOutput_serialize( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutput, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncGetConsoleOutput", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncGetConsoleOutput->is_valid_ncGetConsoleOutput) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncGetConsoleOutput") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncGetConsoleOutput xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncGetConsoleOutput"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncGetConsoleOutput"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncGetConsoleOutput element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncGetConsoleOutput", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncGetConsoleOutputType_serialize(_ncGetConsoleOutput->property_ncGetConsoleOutput, ++ env, current_node, parent_element, ++ adb_ncGetConsoleOutputType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncGetConsoleOutput. ++ */ ++ adb_ncGetConsoleOutputType_t* AXIS2_CALL ++ adb_ncGetConsoleOutput_get_ncGetConsoleOutput( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutput, NULL); ++ ++ ++ return _ncGetConsoleOutput->property_ncGetConsoleOutput; ++ } ++ ++ /** ++ * setter for ncGetConsoleOutput ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutput_set_ncGetConsoleOutput( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env, ++ adb_ncGetConsoleOutputType_t* arg_ncGetConsoleOutput) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutput, AXIS2_FAILURE); ++ ++ if(_ncGetConsoleOutput->is_valid_ncGetConsoleOutput && ++ arg_ncGetConsoleOutput == _ncGetConsoleOutput->property_ncGetConsoleOutput) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncGetConsoleOutput_reset_ncGetConsoleOutput(_ncGetConsoleOutput, env); ++ ++ ++ if(NULL == arg_ncGetConsoleOutput) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncGetConsoleOutput->property_ncGetConsoleOutput = arg_ncGetConsoleOutput; ++ _ncGetConsoleOutput->is_valid_ncGetConsoleOutput = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncGetConsoleOutput ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutput_reset_ncGetConsoleOutput( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutput, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncGetConsoleOutput->property_ncGetConsoleOutput != NULL) ++ { ++ ++ ++ adb_ncGetConsoleOutputType_free(_ncGetConsoleOutput->property_ncGetConsoleOutput, env); ++ _ncGetConsoleOutput->property_ncGetConsoleOutput = NULL; ++ } ++ ++ ++ ++ _ncGetConsoleOutput->is_valid_ncGetConsoleOutput = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncGetConsoleOutput is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutput_is_ncGetConsoleOutput_nil( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutput, AXIS2_TRUE); ++ ++ return !_ncGetConsoleOutput->is_valid_ncGetConsoleOutput; ++ } ++ ++ /** ++ * Set ncGetConsoleOutput to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutput_set_ncGetConsoleOutput_nil( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env) ++ { ++ return adb_ncGetConsoleOutput_reset_ncGetConsoleOutput(_ncGetConsoleOutput, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncGetConsoleOutput.h' +--- old/cluster/generated/adb_ncGetConsoleOutput.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncGetConsoleOutput.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCGETCONSOLEOUTPUT_H ++ #define ADB_NCGETCONSOLEOUTPUT_H ++ ++ /** ++ * adb_ncGetConsoleOutput.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncGetConsoleOutput class ++ */ ++ typedef struct adb_ncGetConsoleOutput adb_ncGetConsoleOutput_t; ++ ++ ++ #include "adb_ncGetConsoleOutputType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncGetConsoleOutput_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncGetConsoleOutput_t object ++ */ ++ adb_ncGetConsoleOutput_t* AXIS2_CALL ++ adb_ncGetConsoleOutput_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncGetConsoleOutput_t object ++ * @param _ncGetConsoleOutput adb_ncGetConsoleOutput_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutput_free ( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncGetConsoleOutput. ++ * @param _ncGetConsoleOutput adb_ncGetConsoleOutput_t object ++ * @param env pointer to environment struct ++ * @return adb_ncGetConsoleOutputType_t* ++ */ ++ adb_ncGetConsoleOutputType_t* AXIS2_CALL ++ adb_ncGetConsoleOutput_get_ncGetConsoleOutput( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncGetConsoleOutput. ++ * @param _ncGetConsoleOutput adb_ncGetConsoleOutput_t object ++ * @param env pointer to environment struct ++ * @param arg_ncGetConsoleOutput adb_ncGetConsoleOutputType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutput_set_ncGetConsoleOutput( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env, ++ adb_ncGetConsoleOutputType_t* arg_ncGetConsoleOutput); ++ ++ /** ++ * Resetter for ncGetConsoleOutput ++ * @param _ncGetConsoleOutput adb_ncGetConsoleOutput_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutput_reset_ncGetConsoleOutput( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncGetConsoleOutput is nill ++ * @param _ncGetConsoleOutput adb_ncGetConsoleOutput_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutput_is_ncGetConsoleOutput_nil( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncGetConsoleOutput to nill (currently the same as reset) ++ * @param _ncGetConsoleOutput adb_ncGetConsoleOutput_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutput_set_ncGetConsoleOutput_nil( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncGetConsoleOutput adb_ncGetConsoleOutput_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutput_deserialize( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncGetConsoleOutput adb_ncGetConsoleOutput_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncGetConsoleOutput_declare_parent_namespaces( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncGetConsoleOutput adb_ncGetConsoleOutput_t object ++ * @param env pointer to environment struct ++ * @param ncGetConsoleOutput_om_node node to serialize from ++ * @param ncGetConsoleOutput_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncGetConsoleOutput_serialize( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env, ++ axiom_node_t* ncGetConsoleOutput_om_node, axiom_element_t *ncGetConsoleOutput_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncGetConsoleOutput is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutput_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCGETCONSOLEOUTPUT_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncGetConsoleOutputResponse.c' +--- old/cluster/generated/adb_ncGetConsoleOutputResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncGetConsoleOutputResponse.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncGetConsoleOutputResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncGetConsoleOutputResponse.h" ++ ++ /* ++ * implmentation of the ncGetConsoleOutputResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncGetConsoleOutputResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncGetConsoleOutputResponseType_t* property_ncGetConsoleOutputResponse; ++ ++ ++ axis2_bool_t is_valid_ncGetConsoleOutputResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncGetConsoleOutputResponse_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_ncGetConsoleOutputResponse_t *_ncGetConsoleOutputResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncGetConsoleOutputResponse = (adb_ncGetConsoleOutputResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncGetConsoleOutputResponse_t)); ++ ++ if(NULL == _ncGetConsoleOutputResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncGetConsoleOutputResponse, 0, sizeof(adb_ncGetConsoleOutputResponse_t)); ++ ++ _ncGetConsoleOutputResponse->property_ncGetConsoleOutputResponse = NULL; ++ _ncGetConsoleOutputResponse->is_valid_ncGetConsoleOutputResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncGetConsoleOutputResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncGetConsoleOutputResponse->qname = qname; ++ ++ ++ return _ncGetConsoleOutputResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_free ( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponse, AXIS2_FAILURE); ++ ++ adb_ncGetConsoleOutputResponse_reset_ncGetConsoleOutputResponse(_ncGetConsoleOutputResponse, env); ++ ++ if(_ncGetConsoleOutputResponse->qname) ++ { ++ axutil_qname_free (_ncGetConsoleOutputResponse->qname, env); ++ _ncGetConsoleOutputResponse->qname = NULL; ++ } ++ ++ ++ if(_ncGetConsoleOutputResponse) ++ { ++ AXIS2_FREE(env->allocator, _ncGetConsoleOutputResponse); ++ _ncGetConsoleOutputResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_deserialize( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncGetConsoleOutputResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncGetConsoleOutputResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncGetConsoleOutputResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncGetConsoleOutputResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncGetConsoleOutputResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncGetConsoleOutputResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncGetConsoleOutputResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncGetConsoleOutputResponseType_create(env); ++ ++ status = adb_ncGetConsoleOutputResponseType_deserialize((adb_ncGetConsoleOutputResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncGetConsoleOutputResponse"); ++ } ++ else ++ { ++ status = adb_ncGetConsoleOutputResponse_set_ncGetConsoleOutputResponse(_ncGetConsoleOutputResponse, env, ++ (adb_ncGetConsoleOutputResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncGetConsoleOutputResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncGetConsoleOutputResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_declare_parent_namespaces( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_serialize( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncGetConsoleOutputResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncGetConsoleOutputResponse->is_valid_ncGetConsoleOutputResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncGetConsoleOutputResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncGetConsoleOutputResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncGetConsoleOutputResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncGetConsoleOutputResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncGetConsoleOutputResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncGetConsoleOutputResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncGetConsoleOutputResponseType_serialize(_ncGetConsoleOutputResponse->property_ncGetConsoleOutputResponse, ++ env, current_node, parent_element, ++ adb_ncGetConsoleOutputResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncGetConsoleOutputResponse. ++ */ ++ adb_ncGetConsoleOutputResponseType_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_get_ncGetConsoleOutputResponse( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponse, NULL); ++ ++ ++ return _ncGetConsoleOutputResponse->property_ncGetConsoleOutputResponse; ++ } ++ ++ /** ++ * setter for ncGetConsoleOutputResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_set_ncGetConsoleOutputResponse( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env, ++ adb_ncGetConsoleOutputResponseType_t* arg_ncGetConsoleOutputResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponse, AXIS2_FAILURE); ++ ++ if(_ncGetConsoleOutputResponse->is_valid_ncGetConsoleOutputResponse && ++ arg_ncGetConsoleOutputResponse == _ncGetConsoleOutputResponse->property_ncGetConsoleOutputResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncGetConsoleOutputResponse_reset_ncGetConsoleOutputResponse(_ncGetConsoleOutputResponse, env); ++ ++ ++ if(NULL == arg_ncGetConsoleOutputResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncGetConsoleOutputResponse->property_ncGetConsoleOutputResponse = arg_ncGetConsoleOutputResponse; ++ _ncGetConsoleOutputResponse->is_valid_ncGetConsoleOutputResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncGetConsoleOutputResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_reset_ncGetConsoleOutputResponse( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncGetConsoleOutputResponse->property_ncGetConsoleOutputResponse != NULL) ++ { ++ ++ ++ adb_ncGetConsoleOutputResponseType_free(_ncGetConsoleOutputResponse->property_ncGetConsoleOutputResponse, env); ++ _ncGetConsoleOutputResponse->property_ncGetConsoleOutputResponse = NULL; ++ } ++ ++ ++ ++ _ncGetConsoleOutputResponse->is_valid_ncGetConsoleOutputResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncGetConsoleOutputResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_is_ncGetConsoleOutputResponse_nil( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponse, AXIS2_TRUE); ++ ++ return !_ncGetConsoleOutputResponse->is_valid_ncGetConsoleOutputResponse; ++ } ++ ++ /** ++ * Set ncGetConsoleOutputResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_set_ncGetConsoleOutputResponse_nil( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env) ++ { ++ return adb_ncGetConsoleOutputResponse_reset_ncGetConsoleOutputResponse(_ncGetConsoleOutputResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncGetConsoleOutputResponse.h' +--- old/cluster/generated/adb_ncGetConsoleOutputResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncGetConsoleOutputResponse.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCGETCONSOLEOUTPUTRESPONSE_H ++ #define ADB_NCGETCONSOLEOUTPUTRESPONSE_H ++ ++ /** ++ * adb_ncGetConsoleOutputResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncGetConsoleOutputResponse class ++ */ ++ typedef struct adb_ncGetConsoleOutputResponse adb_ncGetConsoleOutputResponse_t; ++ ++ ++ #include "adb_ncGetConsoleOutputResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncGetConsoleOutputResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncGetConsoleOutputResponse_t object ++ */ ++ adb_ncGetConsoleOutputResponse_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncGetConsoleOutputResponse_t object ++ * @param _ncGetConsoleOutputResponse adb_ncGetConsoleOutputResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_free ( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncGetConsoleOutputResponse. ++ * @param _ncGetConsoleOutputResponse adb_ncGetConsoleOutputResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_ncGetConsoleOutputResponseType_t* ++ */ ++ adb_ncGetConsoleOutputResponseType_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_get_ncGetConsoleOutputResponse( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncGetConsoleOutputResponse. ++ * @param _ncGetConsoleOutputResponse adb_ncGetConsoleOutputResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_ncGetConsoleOutputResponse adb_ncGetConsoleOutputResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_set_ncGetConsoleOutputResponse( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env, ++ adb_ncGetConsoleOutputResponseType_t* arg_ncGetConsoleOutputResponse); ++ ++ /** ++ * Resetter for ncGetConsoleOutputResponse ++ * @param _ncGetConsoleOutputResponse adb_ncGetConsoleOutputResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_reset_ncGetConsoleOutputResponse( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncGetConsoleOutputResponse is nill ++ * @param _ncGetConsoleOutputResponse adb_ncGetConsoleOutputResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_is_ncGetConsoleOutputResponse_nil( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncGetConsoleOutputResponse to nill (currently the same as reset) ++ * @param _ncGetConsoleOutputResponse adb_ncGetConsoleOutputResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_set_ncGetConsoleOutputResponse_nil( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncGetConsoleOutputResponse adb_ncGetConsoleOutputResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_deserialize( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncGetConsoleOutputResponse adb_ncGetConsoleOutputResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_declare_parent_namespaces( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncGetConsoleOutputResponse adb_ncGetConsoleOutputResponse_t object ++ * @param env pointer to environment struct ++ * @param ncGetConsoleOutputResponse_om_node node to serialize from ++ * @param ncGetConsoleOutputResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_serialize( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env, ++ axiom_node_t* ncGetConsoleOutputResponse_om_node, axiom_element_t *ncGetConsoleOutputResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncGetConsoleOutputResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCGETCONSOLEOUTPUTRESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncGetConsoleOutputResponseType.c' +--- old/cluster/generated/adb_ncGetConsoleOutputResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncGetConsoleOutputResponseType.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,1720 @@ ++ ++ ++ /** ++ * adb_ncGetConsoleOutputResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncGetConsoleOutputResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncGetConsoleOutputResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncGetConsoleOutputResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_char_t* property_consoleOutput; ++ ++ ++ axis2_bool_t is_valid_consoleOutput; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_correlationId_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_userId_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_return_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_consoleOutput_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncGetConsoleOutputResponseType_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncGetConsoleOutputResponseType_t *_ncGetConsoleOutputResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncGetConsoleOutputResponseType = (adb_ncGetConsoleOutputResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncGetConsoleOutputResponseType_t)); ++ ++ if(NULL == _ncGetConsoleOutputResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncGetConsoleOutputResponseType, 0, sizeof(adb_ncGetConsoleOutputResponseType_t)); ++ ++ _ncGetConsoleOutputResponseType->property_correlationId = NULL; ++ _ncGetConsoleOutputResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _ncGetConsoleOutputResponseType->property_userId = NULL; ++ _ncGetConsoleOutputResponseType->is_valid_userId = AXIS2_FALSE; ++ _ncGetConsoleOutputResponseType->is_valid_return = AXIS2_FALSE; ++ _ncGetConsoleOutputResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncGetConsoleOutputResponseType->property_consoleOutput = NULL; ++ _ncGetConsoleOutputResponseType->is_valid_consoleOutput = AXIS2_FALSE; ++ ++ ++ return _ncGetConsoleOutputResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_free ( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ adb_ncGetConsoleOutputResponseType_reset_correlationId(_ncGetConsoleOutputResponseType, env); ++ adb_ncGetConsoleOutputResponseType_reset_userId(_ncGetConsoleOutputResponseType, env); ++ adb_ncGetConsoleOutputResponseType_reset_return(_ncGetConsoleOutputResponseType, env); ++ adb_ncGetConsoleOutputResponseType_reset_statusMessage(_ncGetConsoleOutputResponseType, env); ++ adb_ncGetConsoleOutputResponseType_reset_consoleOutput(_ncGetConsoleOutputResponseType, env); ++ ++ ++ if(_ncGetConsoleOutputResponseType) ++ { ++ AXIS2_FREE(env->allocator, _ncGetConsoleOutputResponseType); ++ _ncGetConsoleOutputResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_deserialize( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncGetConsoleOutputResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncGetConsoleOutputResponseType_set_correlationId(_ncGetConsoleOutputResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncGetConsoleOutputResponseType_set_correlationId(_ncGetConsoleOutputResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncGetConsoleOutputResponseType_set_userId(_ncGetConsoleOutputResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncGetConsoleOutputResponseType_set_userId(_ncGetConsoleOutputResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncGetConsoleOutputResponseType_set_return(_ncGetConsoleOutputResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncGetConsoleOutputResponseType_set_return(_ncGetConsoleOutputResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncGetConsoleOutputResponseType_set_statusMessage(_ncGetConsoleOutputResponseType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building consoleOutput element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "consoleOutput", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncGetConsoleOutputResponseType_set_consoleOutput(_ncGetConsoleOutputResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element consoleOutput"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncGetConsoleOutputResponseType_set_consoleOutput(_ncGetConsoleOutputResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for consoleOutput "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element consoleOutput missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_declare_parent_namespaces( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_serialize( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncGetConsoleOutputResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncGetConsoleOutputResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncGetConsoleOutputResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncGetConsoleOutputResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncGetConsoleOutputResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncGetConsoleOutputResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncGetConsoleOutputResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncGetConsoleOutputResponseType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncGetConsoleOutputResponseType->is_valid_consoleOutput) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property consoleOutput"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("consoleOutput"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("consoleOutput"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing consoleOutput element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sconsoleOutput>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _ncGetConsoleOutputResponseType->property_consoleOutput; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_get_correlationId( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, NULL); ++ ++ ++ return _ncGetConsoleOutputResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_correlationId( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ if(_ncGetConsoleOutputResponseType->is_valid_correlationId && ++ arg_correlationId == _ncGetConsoleOutputResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncGetConsoleOutputResponseType_reset_correlationId(_ncGetConsoleOutputResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncGetConsoleOutputResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncGetConsoleOutputResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncGetConsoleOutputResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_reset_correlationId( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncGetConsoleOutputResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncGetConsoleOutputResponseType->property_correlationId); ++ _ncGetConsoleOutputResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncGetConsoleOutputResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_is_correlationId_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_TRUE); ++ ++ return !_ncGetConsoleOutputResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_correlationId_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncGetConsoleOutputResponseType_reset_correlationId(_ncGetConsoleOutputResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_get_userId( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, NULL); ++ ++ ++ return _ncGetConsoleOutputResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_userId( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ if(_ncGetConsoleOutputResponseType->is_valid_userId && ++ arg_userId == _ncGetConsoleOutputResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncGetConsoleOutputResponseType_reset_userId(_ncGetConsoleOutputResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncGetConsoleOutputResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncGetConsoleOutputResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncGetConsoleOutputResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_reset_userId( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncGetConsoleOutputResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncGetConsoleOutputResponseType->property_userId); ++ _ncGetConsoleOutputResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncGetConsoleOutputResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_is_userId_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_TRUE); ++ ++ return !_ncGetConsoleOutputResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_userId_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncGetConsoleOutputResponseType_reset_userId(_ncGetConsoleOutputResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_get_return( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, (axis2_bool_t)0); ++ ++ ++ return _ncGetConsoleOutputResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_return( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ if(_ncGetConsoleOutputResponseType->is_valid_return && ++ arg_return == _ncGetConsoleOutputResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncGetConsoleOutputResponseType_reset_return(_ncGetConsoleOutputResponseType, env); ++ ++ _ncGetConsoleOutputResponseType->property_return = arg_return; ++ _ncGetConsoleOutputResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_reset_return( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ ++ _ncGetConsoleOutputResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_is_return_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_TRUE); ++ ++ return !_ncGetConsoleOutputResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_return_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncGetConsoleOutputResponseType_reset_return(_ncGetConsoleOutputResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_get_statusMessage( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, (int)0); ++ ++ ++ return _ncGetConsoleOutputResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_statusMessage( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ if(_ncGetConsoleOutputResponseType->is_valid_statusMessage && ++ arg_statusMessage == _ncGetConsoleOutputResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncGetConsoleOutputResponseType_reset_statusMessage(_ncGetConsoleOutputResponseType, env); ++ ++ _ncGetConsoleOutputResponseType->property_statusMessage = arg_statusMessage; ++ _ncGetConsoleOutputResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_reset_statusMessage( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ ++ _ncGetConsoleOutputResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_is_statusMessage_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_TRUE); ++ ++ return !_ncGetConsoleOutputResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_statusMessage_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncGetConsoleOutputResponseType_reset_statusMessage(_ncGetConsoleOutputResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for consoleOutput. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_get_consoleOutput( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, NULL); ++ ++ ++ return _ncGetConsoleOutputResponseType->property_consoleOutput; ++ } ++ ++ /** ++ * setter for consoleOutput ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_consoleOutput( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_consoleOutput) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ if(_ncGetConsoleOutputResponseType->is_valid_consoleOutput && ++ arg_consoleOutput == _ncGetConsoleOutputResponseType->property_consoleOutput) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_consoleOutput) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "consoleOutput is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncGetConsoleOutputResponseType_reset_consoleOutput(_ncGetConsoleOutputResponseType, env); ++ ++ ++ if(NULL == arg_consoleOutput) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncGetConsoleOutputResponseType->property_consoleOutput = (axis2_char_t *)axutil_strdup(env, arg_consoleOutput); ++ if(NULL == _ncGetConsoleOutputResponseType->property_consoleOutput) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for consoleOutput"); ++ return AXIS2_FAILURE; ++ } ++ _ncGetConsoleOutputResponseType->is_valid_consoleOutput = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for consoleOutput ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_reset_consoleOutput( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncGetConsoleOutputResponseType->property_consoleOutput != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncGetConsoleOutputResponseType->property_consoleOutput); ++ _ncGetConsoleOutputResponseType->property_consoleOutput = NULL; ++ } ++ ++ ++ ++ _ncGetConsoleOutputResponseType->is_valid_consoleOutput = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether consoleOutput is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_is_consoleOutput_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_TRUE); ++ ++ return !_ncGetConsoleOutputResponseType->is_valid_consoleOutput; ++ } ++ ++ /** ++ * Set consoleOutput to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_consoleOutput_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncGetConsoleOutputResponseType_reset_consoleOutput(_ncGetConsoleOutputResponseType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncGetConsoleOutputResponseType.h' +--- old/cluster/generated/adb_ncGetConsoleOutputResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncGetConsoleOutputResponseType.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,414 @@ ++ ++ ++ #ifndef ADB_NCGETCONSOLEOUTPUTRESPONSETYPE_H ++ #define ADB_NCGETCONSOLEOUTPUTRESPONSETYPE_H ++ ++ /** ++ * adb_ncGetConsoleOutputResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncGetConsoleOutputResponseType class ++ */ ++ typedef struct adb_ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncGetConsoleOutputResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncGetConsoleOutputResponseType_t object ++ */ ++ adb_ncGetConsoleOutputResponseType_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncGetConsoleOutputResponseType_t object ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_free ( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_get_correlationId( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_correlationId( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_reset_correlationId( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_get_userId( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_userId( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_reset_userId( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_get_return( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_return( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_reset_return( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_get_statusMessage( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_statusMessage( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_reset_statusMessage( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for consoleOutput. ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_get_consoleOutput( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for consoleOutput. ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_consoleOutput axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_consoleOutput( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_consoleOutput); ++ ++ /** ++ * Resetter for consoleOutput ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_reset_consoleOutput( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_is_correlationId_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_is_userId_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_is_return_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_is_statusMessage_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_statusMessage_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether consoleOutput is nill ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_is_consoleOutput_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_deserialize( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_declare_parent_namespaces( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @param ncGetConsoleOutputResponseType_om_node node to serialize from ++ * @param ncGetConsoleOutputResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_serialize( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* ncGetConsoleOutputResponseType_om_node, axiom_element_t *ncGetConsoleOutputResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncGetConsoleOutputResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCGETCONSOLEOUTPUTRESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncGetConsoleOutputType.c' +--- old/cluster/generated/adb_ncGetConsoleOutputType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncGetConsoleOutputType.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,1720 @@ ++ ++ ++ /** ++ * adb_ncGetConsoleOutputType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncGetConsoleOutputType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncGetConsoleOutputType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncGetConsoleOutputType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_char_t* property_instanceId; ++ ++ ++ axis2_bool_t is_valid_instanceId; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_correlationId_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_userId_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_return_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_instanceId_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncGetConsoleOutputType_t* AXIS2_CALL ++ adb_ncGetConsoleOutputType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncGetConsoleOutputType_t *_ncGetConsoleOutputType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncGetConsoleOutputType = (adb_ncGetConsoleOutputType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncGetConsoleOutputType_t)); ++ ++ if(NULL == _ncGetConsoleOutputType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncGetConsoleOutputType, 0, sizeof(adb_ncGetConsoleOutputType_t)); ++ ++ _ncGetConsoleOutputType->property_correlationId = NULL; ++ _ncGetConsoleOutputType->is_valid_correlationId = AXIS2_FALSE; ++ _ncGetConsoleOutputType->property_userId = NULL; ++ _ncGetConsoleOutputType->is_valid_userId = AXIS2_FALSE; ++ _ncGetConsoleOutputType->is_valid_return = AXIS2_FALSE; ++ _ncGetConsoleOutputType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncGetConsoleOutputType->property_instanceId = NULL; ++ _ncGetConsoleOutputType->is_valid_instanceId = AXIS2_FALSE; ++ ++ ++ return _ncGetConsoleOutputType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_free ( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE); ++ ++ adb_ncGetConsoleOutputType_reset_correlationId(_ncGetConsoleOutputType, env); ++ adb_ncGetConsoleOutputType_reset_userId(_ncGetConsoleOutputType, env); ++ adb_ncGetConsoleOutputType_reset_return(_ncGetConsoleOutputType, env); ++ adb_ncGetConsoleOutputType_reset_statusMessage(_ncGetConsoleOutputType, env); ++ adb_ncGetConsoleOutputType_reset_instanceId(_ncGetConsoleOutputType, env); ++ ++ ++ if(_ncGetConsoleOutputType) ++ { ++ AXIS2_FREE(env->allocator, _ncGetConsoleOutputType); ++ _ncGetConsoleOutputType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_deserialize( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncGetConsoleOutputType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncGetConsoleOutputType_set_correlationId(_ncGetConsoleOutputType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncGetConsoleOutputType_set_correlationId(_ncGetConsoleOutputType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncGetConsoleOutputType_set_userId(_ncGetConsoleOutputType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncGetConsoleOutputType_set_userId(_ncGetConsoleOutputType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncGetConsoleOutputType_set_return(_ncGetConsoleOutputType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncGetConsoleOutputType_set_return(_ncGetConsoleOutputType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncGetConsoleOutputType_set_statusMessage(_ncGetConsoleOutputType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncGetConsoleOutputType_set_instanceId(_ncGetConsoleOutputType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncGetConsoleOutputType_set_instanceId(_ncGetConsoleOutputType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element instanceId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncGetConsoleOutputType_declare_parent_namespaces( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncGetConsoleOutputType_serialize( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncGetConsoleOutputType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncGetConsoleOutputType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncGetConsoleOutputType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncGetConsoleOutputType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncGetConsoleOutputType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncGetConsoleOutputType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncGetConsoleOutputType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncGetConsoleOutputType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncGetConsoleOutputType->is_valid_instanceId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _ncGetConsoleOutputType->property_instanceId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncGetConsoleOutputType_get_correlationId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, NULL); ++ ++ ++ return _ncGetConsoleOutputType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_correlationId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE); ++ ++ if(_ncGetConsoleOutputType->is_valid_correlationId && ++ arg_correlationId == _ncGetConsoleOutputType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncGetConsoleOutputType_reset_correlationId(_ncGetConsoleOutputType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncGetConsoleOutputType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncGetConsoleOutputType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncGetConsoleOutputType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_reset_correlationId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncGetConsoleOutputType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncGetConsoleOutputType->property_correlationId); ++ _ncGetConsoleOutputType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncGetConsoleOutputType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_is_correlationId_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_TRUE); ++ ++ return !_ncGetConsoleOutputType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_correlationId_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ return adb_ncGetConsoleOutputType_reset_correlationId(_ncGetConsoleOutputType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncGetConsoleOutputType_get_userId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, NULL); ++ ++ ++ return _ncGetConsoleOutputType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_userId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE); ++ ++ if(_ncGetConsoleOutputType->is_valid_userId && ++ arg_userId == _ncGetConsoleOutputType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncGetConsoleOutputType_reset_userId(_ncGetConsoleOutputType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncGetConsoleOutputType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncGetConsoleOutputType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncGetConsoleOutputType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_reset_userId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncGetConsoleOutputType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncGetConsoleOutputType->property_userId); ++ _ncGetConsoleOutputType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncGetConsoleOutputType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_is_userId_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_TRUE); ++ ++ return !_ncGetConsoleOutputType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_userId_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ return adb_ncGetConsoleOutputType_reset_userId(_ncGetConsoleOutputType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_get_return( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, (axis2_bool_t)0); ++ ++ ++ return _ncGetConsoleOutputType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_return( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE); ++ ++ if(_ncGetConsoleOutputType->is_valid_return && ++ arg_return == _ncGetConsoleOutputType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncGetConsoleOutputType_reset_return(_ncGetConsoleOutputType, env); ++ ++ _ncGetConsoleOutputType->property_return = arg_return; ++ _ncGetConsoleOutputType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_reset_return( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE); ++ ++ ++ _ncGetConsoleOutputType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_is_return_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_TRUE); ++ ++ return !_ncGetConsoleOutputType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_return_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ return adb_ncGetConsoleOutputType_reset_return(_ncGetConsoleOutputType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncGetConsoleOutputType_get_statusMessage( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, (int)0); ++ ++ ++ return _ncGetConsoleOutputType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_statusMessage( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE); ++ ++ if(_ncGetConsoleOutputType->is_valid_statusMessage && ++ arg_statusMessage == _ncGetConsoleOutputType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncGetConsoleOutputType_reset_statusMessage(_ncGetConsoleOutputType, env); ++ ++ _ncGetConsoleOutputType->property_statusMessage = arg_statusMessage; ++ _ncGetConsoleOutputType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_reset_statusMessage( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE); ++ ++ ++ _ncGetConsoleOutputType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_is_statusMessage_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_TRUE); ++ ++ return !_ncGetConsoleOutputType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_statusMessage_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ return adb_ncGetConsoleOutputType_reset_statusMessage(_ncGetConsoleOutputType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncGetConsoleOutputType_get_instanceId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, NULL); ++ ++ ++ return _ncGetConsoleOutputType->property_instanceId; ++ } ++ ++ /** ++ * setter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_instanceId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE); ++ ++ if(_ncGetConsoleOutputType->is_valid_instanceId && ++ arg_instanceId == _ncGetConsoleOutputType->property_instanceId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncGetConsoleOutputType_reset_instanceId(_ncGetConsoleOutputType, env); ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncGetConsoleOutputType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId); ++ if(NULL == _ncGetConsoleOutputType->property_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId"); ++ return AXIS2_FAILURE; ++ } ++ _ncGetConsoleOutputType->is_valid_instanceId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_reset_instanceId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncGetConsoleOutputType->property_instanceId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncGetConsoleOutputType->property_instanceId); ++ _ncGetConsoleOutputType->property_instanceId = NULL; ++ } ++ ++ ++ ++ _ncGetConsoleOutputType->is_valid_instanceId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_is_instanceId_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_TRUE); ++ ++ return !_ncGetConsoleOutputType->is_valid_instanceId; ++ } ++ ++ /** ++ * Set instanceId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_instanceId_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ return adb_ncGetConsoleOutputType_reset_instanceId(_ncGetConsoleOutputType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncGetConsoleOutputType.h' +--- old/cluster/generated/adb_ncGetConsoleOutputType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncGetConsoleOutputType.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,414 @@ ++ ++ ++ #ifndef ADB_NCGETCONSOLEOUTPUTTYPE_H ++ #define ADB_NCGETCONSOLEOUTPUTTYPE_H ++ ++ /** ++ * adb_ncGetConsoleOutputType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncGetConsoleOutputType class ++ */ ++ typedef struct adb_ncGetConsoleOutputType adb_ncGetConsoleOutputType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncGetConsoleOutputType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncGetConsoleOutputType_t object ++ */ ++ adb_ncGetConsoleOutputType_t* AXIS2_CALL ++ adb_ncGetConsoleOutputType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncGetConsoleOutputType_t object ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_free ( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncGetConsoleOutputType_get_correlationId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_correlationId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_reset_correlationId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncGetConsoleOutputType_get_userId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_userId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_reset_userId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_get_return( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_return( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_reset_return( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncGetConsoleOutputType_get_statusMessage( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_statusMessage( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_reset_statusMessage( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceId. ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncGetConsoleOutputType_get_instanceId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceId. ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_instanceId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId); ++ ++ /** ++ * Resetter for instanceId ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_reset_instanceId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_is_correlationId_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_is_userId_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_is_return_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_is_statusMessage_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_statusMessage_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether instanceId is nill ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_is_instanceId_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_deserialize( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncGetConsoleOutputType_declare_parent_namespaces( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @param ncGetConsoleOutputType_om_node node to serialize from ++ * @param ncGetConsoleOutputType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncGetConsoleOutputType_serialize( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ axiom_node_t* ncGetConsoleOutputType_om_node, axiom_element_t *ncGetConsoleOutputType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncGetConsoleOutputType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCGETCONSOLEOUTPUTTYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncPowerDown.c' +--- old/cluster/generated/adb_ncPowerDown.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncPowerDown.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncPowerDown.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncPowerDown.h" ++ ++ /* ++ * implmentation of the ncPowerDown|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncPowerDown ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncPowerDownType_t* property_ncPowerDown; ++ ++ ++ axis2_bool_t is_valid_ncPowerDown; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncPowerDown_t* AXIS2_CALL ++ adb_ncPowerDown_create( ++ const axutil_env_t *env) ++ { ++ adb_ncPowerDown_t *_ncPowerDown = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncPowerDown = (adb_ncPowerDown_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncPowerDown_t)); ++ ++ if(NULL == _ncPowerDown) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncPowerDown, 0, sizeof(adb_ncPowerDown_t)); ++ ++ _ncPowerDown->property_ncPowerDown = NULL; ++ _ncPowerDown->is_valid_ncPowerDown = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncPowerDown", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncPowerDown->qname = qname; ++ ++ ++ return _ncPowerDown; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDown_free ( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDown, AXIS2_FAILURE); ++ ++ adb_ncPowerDown_reset_ncPowerDown(_ncPowerDown, env); ++ ++ if(_ncPowerDown->qname) ++ { ++ axutil_qname_free (_ncPowerDown->qname, env); ++ _ncPowerDown->qname = NULL; ++ } ++ ++ ++ if(_ncPowerDown) ++ { ++ AXIS2_FREE(env->allocator, _ncPowerDown); ++ _ncPowerDown = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDown_deserialize( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDown, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncPowerDown : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncPowerDown-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncPowerDown : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncPowerDown-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncPowerDown element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncPowerDown", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncPowerDownType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncPowerDownType_create(env); ++ ++ status = adb_ncPowerDownType_deserialize((adb_ncPowerDownType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncPowerDown"); ++ } ++ else ++ { ++ status = adb_ncPowerDown_set_ncPowerDown(_ncPowerDown, env, ++ (adb_ncPowerDownType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncPowerDown "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncPowerDown missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDown_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncPowerDown_declare_parent_namespaces( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncPowerDown_serialize( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDown, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncPowerDown", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncPowerDown->is_valid_ncPowerDown) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncPowerDown") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncPowerDown xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncPowerDown"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncPowerDown"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncPowerDown element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncPowerDown", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncPowerDownType_serialize(_ncPowerDown->property_ncPowerDown, ++ env, current_node, parent_element, ++ adb_ncPowerDownType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncPowerDown. ++ */ ++ adb_ncPowerDownType_t* AXIS2_CALL ++ adb_ncPowerDown_get_ncPowerDown( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDown, NULL); ++ ++ ++ return _ncPowerDown->property_ncPowerDown; ++ } ++ ++ /** ++ * setter for ncPowerDown ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDown_set_ncPowerDown( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env, ++ adb_ncPowerDownType_t* arg_ncPowerDown) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDown, AXIS2_FAILURE); ++ ++ if(_ncPowerDown->is_valid_ncPowerDown && ++ arg_ncPowerDown == _ncPowerDown->property_ncPowerDown) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncPowerDown_reset_ncPowerDown(_ncPowerDown, env); ++ ++ ++ if(NULL == arg_ncPowerDown) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncPowerDown->property_ncPowerDown = arg_ncPowerDown; ++ _ncPowerDown->is_valid_ncPowerDown = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncPowerDown ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDown_reset_ncPowerDown( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDown, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncPowerDown->property_ncPowerDown != NULL) ++ { ++ ++ ++ adb_ncPowerDownType_free(_ncPowerDown->property_ncPowerDown, env); ++ _ncPowerDown->property_ncPowerDown = NULL; ++ } ++ ++ ++ ++ _ncPowerDown->is_valid_ncPowerDown = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncPowerDown is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDown_is_ncPowerDown_nil( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDown, AXIS2_TRUE); ++ ++ return !_ncPowerDown->is_valid_ncPowerDown; ++ } ++ ++ /** ++ * Set ncPowerDown to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDown_set_ncPowerDown_nil( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env) ++ { ++ return adb_ncPowerDown_reset_ncPowerDown(_ncPowerDown, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncPowerDown.h' +--- old/cluster/generated/adb_ncPowerDown.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncPowerDown.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCPOWERDOWN_H ++ #define ADB_NCPOWERDOWN_H ++ ++ /** ++ * adb_ncPowerDown.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncPowerDown class ++ */ ++ typedef struct adb_ncPowerDown adb_ncPowerDown_t; ++ ++ ++ #include "adb_ncPowerDownType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncPowerDown_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncPowerDown_t object ++ */ ++ adb_ncPowerDown_t* AXIS2_CALL ++ adb_ncPowerDown_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncPowerDown_t object ++ * @param _ncPowerDown adb_ncPowerDown_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDown_free ( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncPowerDown. ++ * @param _ncPowerDown adb_ncPowerDown_t object ++ * @param env pointer to environment struct ++ * @return adb_ncPowerDownType_t* ++ */ ++ adb_ncPowerDownType_t* AXIS2_CALL ++ adb_ncPowerDown_get_ncPowerDown( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncPowerDown. ++ * @param _ncPowerDown adb_ncPowerDown_t object ++ * @param env pointer to environment struct ++ * @param arg_ncPowerDown adb_ncPowerDownType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDown_set_ncPowerDown( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env, ++ adb_ncPowerDownType_t* arg_ncPowerDown); ++ ++ /** ++ * Resetter for ncPowerDown ++ * @param _ncPowerDown adb_ncPowerDown_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDown_reset_ncPowerDown( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncPowerDown is nill ++ * @param _ncPowerDown adb_ncPowerDown_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDown_is_ncPowerDown_nil( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncPowerDown to nill (currently the same as reset) ++ * @param _ncPowerDown adb_ncPowerDown_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDown_set_ncPowerDown_nil( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncPowerDown adb_ncPowerDown_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDown_deserialize( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncPowerDown adb_ncPowerDown_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncPowerDown_declare_parent_namespaces( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncPowerDown adb_ncPowerDown_t object ++ * @param env pointer to environment struct ++ * @param ncPowerDown_om_node node to serialize from ++ * @param ncPowerDown_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncPowerDown_serialize( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env, ++ axiom_node_t* ncPowerDown_om_node, axiom_element_t *ncPowerDown_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncPowerDown is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDown_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCPOWERDOWN_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncPowerDownResponse.c' +--- old/cluster/generated/adb_ncPowerDownResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncPowerDownResponse.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncPowerDownResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncPowerDownResponse.h" ++ ++ /* ++ * implmentation of the ncPowerDownResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncPowerDownResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncPowerDownResponseType_t* property_ncPowerDownResponse; ++ ++ ++ axis2_bool_t is_valid_ncPowerDownResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncPowerDownResponse_t* AXIS2_CALL ++ adb_ncPowerDownResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_ncPowerDownResponse_t *_ncPowerDownResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncPowerDownResponse = (adb_ncPowerDownResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncPowerDownResponse_t)); ++ ++ if(NULL == _ncPowerDownResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncPowerDownResponse, 0, sizeof(adb_ncPowerDownResponse_t)); ++ ++ _ncPowerDownResponse->property_ncPowerDownResponse = NULL; ++ _ncPowerDownResponse->is_valid_ncPowerDownResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncPowerDownResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncPowerDownResponse->qname = qname; ++ ++ ++ return _ncPowerDownResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponse_free ( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponse, AXIS2_FAILURE); ++ ++ adb_ncPowerDownResponse_reset_ncPowerDownResponse(_ncPowerDownResponse, env); ++ ++ if(_ncPowerDownResponse->qname) ++ { ++ axutil_qname_free (_ncPowerDownResponse->qname, env); ++ _ncPowerDownResponse->qname = NULL; ++ } ++ ++ ++ if(_ncPowerDownResponse) ++ { ++ AXIS2_FREE(env->allocator, _ncPowerDownResponse); ++ _ncPowerDownResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponse_deserialize( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncPowerDownResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncPowerDownResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncPowerDownResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncPowerDownResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncPowerDownResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncPowerDownResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncPowerDownResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncPowerDownResponseType_create(env); ++ ++ status = adb_ncPowerDownResponseType_deserialize((adb_ncPowerDownResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncPowerDownResponse"); ++ } ++ else ++ { ++ status = adb_ncPowerDownResponse_set_ncPowerDownResponse(_ncPowerDownResponse, env, ++ (adb_ncPowerDownResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncPowerDownResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncPowerDownResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncPowerDownResponse_declare_parent_namespaces( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncPowerDownResponse_serialize( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncPowerDownResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncPowerDownResponse->is_valid_ncPowerDownResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncPowerDownResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncPowerDownResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncPowerDownResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncPowerDownResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncPowerDownResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncPowerDownResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncPowerDownResponseType_serialize(_ncPowerDownResponse->property_ncPowerDownResponse, ++ env, current_node, parent_element, ++ adb_ncPowerDownResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncPowerDownResponse. ++ */ ++ adb_ncPowerDownResponseType_t* AXIS2_CALL ++ adb_ncPowerDownResponse_get_ncPowerDownResponse( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponse, NULL); ++ ++ ++ return _ncPowerDownResponse->property_ncPowerDownResponse; ++ } ++ ++ /** ++ * setter for ncPowerDownResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponse_set_ncPowerDownResponse( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env, ++ adb_ncPowerDownResponseType_t* arg_ncPowerDownResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponse, AXIS2_FAILURE); ++ ++ if(_ncPowerDownResponse->is_valid_ncPowerDownResponse && ++ arg_ncPowerDownResponse == _ncPowerDownResponse->property_ncPowerDownResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncPowerDownResponse_reset_ncPowerDownResponse(_ncPowerDownResponse, env); ++ ++ ++ if(NULL == arg_ncPowerDownResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncPowerDownResponse->property_ncPowerDownResponse = arg_ncPowerDownResponse; ++ _ncPowerDownResponse->is_valid_ncPowerDownResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncPowerDownResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponse_reset_ncPowerDownResponse( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncPowerDownResponse->property_ncPowerDownResponse != NULL) ++ { ++ ++ ++ adb_ncPowerDownResponseType_free(_ncPowerDownResponse->property_ncPowerDownResponse, env); ++ _ncPowerDownResponse->property_ncPowerDownResponse = NULL; ++ } ++ ++ ++ ++ _ncPowerDownResponse->is_valid_ncPowerDownResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncPowerDownResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponse_is_ncPowerDownResponse_nil( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponse, AXIS2_TRUE); ++ ++ return !_ncPowerDownResponse->is_valid_ncPowerDownResponse; ++ } ++ ++ /** ++ * Set ncPowerDownResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponse_set_ncPowerDownResponse_nil( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env) ++ { ++ return adb_ncPowerDownResponse_reset_ncPowerDownResponse(_ncPowerDownResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncPowerDownResponse.h' +--- old/cluster/generated/adb_ncPowerDownResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncPowerDownResponse.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCPOWERDOWNRESPONSE_H ++ #define ADB_NCPOWERDOWNRESPONSE_H ++ ++ /** ++ * adb_ncPowerDownResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncPowerDownResponse class ++ */ ++ typedef struct adb_ncPowerDownResponse adb_ncPowerDownResponse_t; ++ ++ ++ #include "adb_ncPowerDownResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncPowerDownResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncPowerDownResponse_t object ++ */ ++ adb_ncPowerDownResponse_t* AXIS2_CALL ++ adb_ncPowerDownResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncPowerDownResponse_t object ++ * @param _ncPowerDownResponse adb_ncPowerDownResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponse_free ( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncPowerDownResponse. ++ * @param _ncPowerDownResponse adb_ncPowerDownResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_ncPowerDownResponseType_t* ++ */ ++ adb_ncPowerDownResponseType_t* AXIS2_CALL ++ adb_ncPowerDownResponse_get_ncPowerDownResponse( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncPowerDownResponse. ++ * @param _ncPowerDownResponse adb_ncPowerDownResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_ncPowerDownResponse adb_ncPowerDownResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponse_set_ncPowerDownResponse( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env, ++ adb_ncPowerDownResponseType_t* arg_ncPowerDownResponse); ++ ++ /** ++ * Resetter for ncPowerDownResponse ++ * @param _ncPowerDownResponse adb_ncPowerDownResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponse_reset_ncPowerDownResponse( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncPowerDownResponse is nill ++ * @param _ncPowerDownResponse adb_ncPowerDownResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponse_is_ncPowerDownResponse_nil( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncPowerDownResponse to nill (currently the same as reset) ++ * @param _ncPowerDownResponse adb_ncPowerDownResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponse_set_ncPowerDownResponse_nil( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncPowerDownResponse adb_ncPowerDownResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponse_deserialize( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncPowerDownResponse adb_ncPowerDownResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncPowerDownResponse_declare_parent_namespaces( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncPowerDownResponse adb_ncPowerDownResponse_t object ++ * @param env pointer to environment struct ++ * @param ncPowerDownResponse_om_node node to serialize from ++ * @param ncPowerDownResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncPowerDownResponse_serialize( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env, ++ axiom_node_t* ncPowerDownResponse_om_node, axiom_element_t *ncPowerDownResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncPowerDownResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCPOWERDOWNRESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncPowerDownResponseType.c' +--- old/cluster/generated/adb_ncPowerDownResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncPowerDownResponseType.c 2010-01-05 01:00:43 +0000 +@@ -0,0 +1,1365 @@ ++ ++ ++ /** ++ * adb_ncPowerDownResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncPowerDownResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncPowerDownResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncPowerDownResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_correlationId_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_userId_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_return_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncPowerDownResponseType_t* AXIS2_CALL ++ adb_ncPowerDownResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncPowerDownResponseType_t *_ncPowerDownResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncPowerDownResponseType = (adb_ncPowerDownResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncPowerDownResponseType_t)); ++ ++ if(NULL == _ncPowerDownResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncPowerDownResponseType, 0, sizeof(adb_ncPowerDownResponseType_t)); ++ ++ _ncPowerDownResponseType->property_correlationId = NULL; ++ _ncPowerDownResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _ncPowerDownResponseType->property_userId = NULL; ++ _ncPowerDownResponseType->is_valid_userId = AXIS2_FALSE; ++ _ncPowerDownResponseType->is_valid_return = AXIS2_FALSE; ++ _ncPowerDownResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ ++ ++ return _ncPowerDownResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_free ( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_FAILURE); ++ ++ adb_ncPowerDownResponseType_reset_correlationId(_ncPowerDownResponseType, env); ++ adb_ncPowerDownResponseType_reset_userId(_ncPowerDownResponseType, env); ++ adb_ncPowerDownResponseType_reset_return(_ncPowerDownResponseType, env); ++ adb_ncPowerDownResponseType_reset_statusMessage(_ncPowerDownResponseType, env); ++ ++ ++ if(_ncPowerDownResponseType) ++ { ++ AXIS2_FREE(env->allocator, _ncPowerDownResponseType); ++ _ncPowerDownResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_deserialize( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncPowerDownResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncPowerDownResponseType_set_correlationId(_ncPowerDownResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncPowerDownResponseType_set_correlationId(_ncPowerDownResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncPowerDownResponseType_set_userId(_ncPowerDownResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncPowerDownResponseType_set_userId(_ncPowerDownResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncPowerDownResponseType_set_return(_ncPowerDownResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncPowerDownResponseType_set_return(_ncPowerDownResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncPowerDownResponseType_set_statusMessage(_ncPowerDownResponseType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncPowerDownResponseType_declare_parent_namespaces( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncPowerDownResponseType_serialize( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncPowerDownResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncPowerDownResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncPowerDownResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncPowerDownResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncPowerDownResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncPowerDownResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncPowerDownResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncPowerDownResponseType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncPowerDownResponseType_get_correlationId( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, NULL); ++ ++ ++ return _ncPowerDownResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_correlationId( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_FAILURE); ++ ++ if(_ncPowerDownResponseType->is_valid_correlationId && ++ arg_correlationId == _ncPowerDownResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncPowerDownResponseType_reset_correlationId(_ncPowerDownResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncPowerDownResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncPowerDownResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncPowerDownResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_reset_correlationId( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncPowerDownResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncPowerDownResponseType->property_correlationId); ++ _ncPowerDownResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncPowerDownResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponseType_is_correlationId_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_TRUE); ++ ++ return !_ncPowerDownResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_correlationId_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncPowerDownResponseType_reset_correlationId(_ncPowerDownResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncPowerDownResponseType_get_userId( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, NULL); ++ ++ ++ return _ncPowerDownResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_userId( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_FAILURE); ++ ++ if(_ncPowerDownResponseType->is_valid_userId && ++ arg_userId == _ncPowerDownResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncPowerDownResponseType_reset_userId(_ncPowerDownResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncPowerDownResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncPowerDownResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncPowerDownResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_reset_userId( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncPowerDownResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncPowerDownResponseType->property_userId); ++ _ncPowerDownResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncPowerDownResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponseType_is_userId_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_TRUE); ++ ++ return !_ncPowerDownResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_userId_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncPowerDownResponseType_reset_userId(_ncPowerDownResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponseType_get_return( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, (axis2_bool_t)0); ++ ++ ++ return _ncPowerDownResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_return( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_FAILURE); ++ ++ if(_ncPowerDownResponseType->is_valid_return && ++ arg_return == _ncPowerDownResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncPowerDownResponseType_reset_return(_ncPowerDownResponseType, env); ++ ++ _ncPowerDownResponseType->property_return = arg_return; ++ _ncPowerDownResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_reset_return( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_FAILURE); ++ ++ ++ _ncPowerDownResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponseType_is_return_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_TRUE); ++ ++ return !_ncPowerDownResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_return_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncPowerDownResponseType_reset_return(_ncPowerDownResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncPowerDownResponseType_get_statusMessage( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, (int)0); ++ ++ ++ return _ncPowerDownResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_statusMessage( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_FAILURE); ++ ++ if(_ncPowerDownResponseType->is_valid_statusMessage && ++ arg_statusMessage == _ncPowerDownResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncPowerDownResponseType_reset_statusMessage(_ncPowerDownResponseType, env); ++ ++ _ncPowerDownResponseType->property_statusMessage = arg_statusMessage; ++ _ncPowerDownResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_reset_statusMessage( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_FAILURE); ++ ++ ++ _ncPowerDownResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponseType_is_statusMessage_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_TRUE); ++ ++ return !_ncPowerDownResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_statusMessage_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncPowerDownResponseType_reset_statusMessage(_ncPowerDownResponseType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncPowerDownResponseType.h' +--- old/cluster/generated/adb_ncPowerDownResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncPowerDownResponseType.h 2010-01-05 01:00:43 +0000 +@@ -0,0 +1,362 @@ ++ ++ ++ #ifndef ADB_NCPOWERDOWNRESPONSETYPE_H ++ #define ADB_NCPOWERDOWNRESPONSETYPE_H ++ ++ /** ++ * adb_ncPowerDownResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncPowerDownResponseType class ++ */ ++ typedef struct adb_ncPowerDownResponseType adb_ncPowerDownResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncPowerDownResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncPowerDownResponseType_t object ++ */ ++ adb_ncPowerDownResponseType_t* AXIS2_CALL ++ adb_ncPowerDownResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncPowerDownResponseType_t object ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_free ( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncPowerDownResponseType_get_correlationId( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_correlationId( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_reset_correlationId( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncPowerDownResponseType_get_userId( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_userId( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_reset_userId( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponseType_get_return( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_return( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_reset_return( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncPowerDownResponseType_get_statusMessage( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_statusMessage( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_reset_statusMessage( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponseType_is_correlationId_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponseType_is_userId_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponseType_is_return_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponseType_is_statusMessage_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_statusMessage_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_deserialize( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncPowerDownResponseType_declare_parent_namespaces( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @param ncPowerDownResponseType_om_node node to serialize from ++ * @param ncPowerDownResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncPowerDownResponseType_serialize( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* ncPowerDownResponseType_om_node, axiom_element_t *ncPowerDownResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncPowerDownResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCPOWERDOWNRESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncPowerDownType.c' +--- old/cluster/generated/adb_ncPowerDownType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncPowerDownType.c 2010-01-05 01:00:43 +0000 +@@ -0,0 +1,1365 @@ ++ ++ ++ /** ++ * adb_ncPowerDownType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncPowerDownType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncPowerDownType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncPowerDownType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_correlationId_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_userId_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_return_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncPowerDownType_t* AXIS2_CALL ++ adb_ncPowerDownType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncPowerDownType_t *_ncPowerDownType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncPowerDownType = (adb_ncPowerDownType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncPowerDownType_t)); ++ ++ if(NULL == _ncPowerDownType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncPowerDownType, 0, sizeof(adb_ncPowerDownType_t)); ++ ++ _ncPowerDownType->property_correlationId = NULL; ++ _ncPowerDownType->is_valid_correlationId = AXIS2_FALSE; ++ _ncPowerDownType->property_userId = NULL; ++ _ncPowerDownType->is_valid_userId = AXIS2_FALSE; ++ _ncPowerDownType->is_valid_return = AXIS2_FALSE; ++ _ncPowerDownType->is_valid_statusMessage = AXIS2_FALSE; ++ ++ ++ return _ncPowerDownType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_free ( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_FAILURE); ++ ++ adb_ncPowerDownType_reset_correlationId(_ncPowerDownType, env); ++ adb_ncPowerDownType_reset_userId(_ncPowerDownType, env); ++ adb_ncPowerDownType_reset_return(_ncPowerDownType, env); ++ adb_ncPowerDownType_reset_statusMessage(_ncPowerDownType, env); ++ ++ ++ if(_ncPowerDownType) ++ { ++ AXIS2_FREE(env->allocator, _ncPowerDownType); ++ _ncPowerDownType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_deserialize( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncPowerDownType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncPowerDownType_set_correlationId(_ncPowerDownType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncPowerDownType_set_correlationId(_ncPowerDownType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncPowerDownType_set_userId(_ncPowerDownType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncPowerDownType_set_userId(_ncPowerDownType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncPowerDownType_set_return(_ncPowerDownType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncPowerDownType_set_return(_ncPowerDownType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncPowerDownType_set_statusMessage(_ncPowerDownType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncPowerDownType_declare_parent_namespaces( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncPowerDownType_serialize( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncPowerDownType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncPowerDownType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncPowerDownType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncPowerDownType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncPowerDownType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncPowerDownType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncPowerDownType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncPowerDownType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncPowerDownType_get_correlationId( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, NULL); ++ ++ ++ return _ncPowerDownType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_correlationId( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_FAILURE); ++ ++ if(_ncPowerDownType->is_valid_correlationId && ++ arg_correlationId == _ncPowerDownType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncPowerDownType_reset_correlationId(_ncPowerDownType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncPowerDownType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncPowerDownType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncPowerDownType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_reset_correlationId( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncPowerDownType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncPowerDownType->property_correlationId); ++ _ncPowerDownType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncPowerDownType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownType_is_correlationId_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_TRUE); ++ ++ return !_ncPowerDownType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_correlationId_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ return adb_ncPowerDownType_reset_correlationId(_ncPowerDownType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncPowerDownType_get_userId( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, NULL); ++ ++ ++ return _ncPowerDownType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_userId( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_FAILURE); ++ ++ if(_ncPowerDownType->is_valid_userId && ++ arg_userId == _ncPowerDownType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncPowerDownType_reset_userId(_ncPowerDownType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncPowerDownType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncPowerDownType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncPowerDownType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_reset_userId( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncPowerDownType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncPowerDownType->property_userId); ++ _ncPowerDownType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncPowerDownType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownType_is_userId_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_TRUE); ++ ++ return !_ncPowerDownType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_userId_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ return adb_ncPowerDownType_reset_userId(_ncPowerDownType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownType_get_return( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, (axis2_bool_t)0); ++ ++ ++ return _ncPowerDownType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_return( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_FAILURE); ++ ++ if(_ncPowerDownType->is_valid_return && ++ arg_return == _ncPowerDownType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncPowerDownType_reset_return(_ncPowerDownType, env); ++ ++ _ncPowerDownType->property_return = arg_return; ++ _ncPowerDownType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_reset_return( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_FAILURE); ++ ++ ++ _ncPowerDownType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownType_is_return_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_TRUE); ++ ++ return !_ncPowerDownType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_return_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ return adb_ncPowerDownType_reset_return(_ncPowerDownType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncPowerDownType_get_statusMessage( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, (int)0); ++ ++ ++ return _ncPowerDownType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_statusMessage( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_FAILURE); ++ ++ if(_ncPowerDownType->is_valid_statusMessage && ++ arg_statusMessage == _ncPowerDownType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncPowerDownType_reset_statusMessage(_ncPowerDownType, env); ++ ++ _ncPowerDownType->property_statusMessage = arg_statusMessage; ++ _ncPowerDownType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_reset_statusMessage( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_FAILURE); ++ ++ ++ _ncPowerDownType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownType_is_statusMessage_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_TRUE); ++ ++ return !_ncPowerDownType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_statusMessage_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ return adb_ncPowerDownType_reset_statusMessage(_ncPowerDownType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncPowerDownType.h' +--- old/cluster/generated/adb_ncPowerDownType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncPowerDownType.h 2010-01-05 01:00:43 +0000 +@@ -0,0 +1,362 @@ ++ ++ ++ #ifndef ADB_NCPOWERDOWNTYPE_H ++ #define ADB_NCPOWERDOWNTYPE_H ++ ++ /** ++ * adb_ncPowerDownType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncPowerDownType class ++ */ ++ typedef struct adb_ncPowerDownType adb_ncPowerDownType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncPowerDownType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncPowerDownType_t object ++ */ ++ adb_ncPowerDownType_t* AXIS2_CALL ++ adb_ncPowerDownType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncPowerDownType_t object ++ * @param _ncPowerDownType adb_ncPowerDownType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_free ( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncPowerDownType_get_correlationId( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_correlationId( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_reset_correlationId( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncPowerDownType_get_userId( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_userId( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_reset_userId( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownType_get_return( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_return( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_reset_return( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncPowerDownType_get_statusMessage( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_statusMessage( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_reset_statusMessage( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownType_is_correlationId_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownType_is_userId_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownType_is_return_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownType_is_statusMessage_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_statusMessage_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_deserialize( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncPowerDownType_declare_parent_namespaces( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @param ncPowerDownType_om_node node to serialize from ++ * @param ncPowerDownType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncPowerDownType_serialize( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, ++ axiom_node_t* ncPowerDownType_om_node, axiom_element_t *ncPowerDownType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncPowerDownType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCPOWERDOWNTYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncRebootInstance.c' +--- old/cluster/generated/adb_ncRebootInstance.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncRebootInstance.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncRebootInstance.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncRebootInstance.h" ++ ++ /* ++ * implmentation of the ncRebootInstance|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncRebootInstance ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncRebootInstanceType_t* property_ncRebootInstance; ++ ++ ++ axis2_bool_t is_valid_ncRebootInstance; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncRebootInstance_t* AXIS2_CALL ++ adb_ncRebootInstance_create( ++ const axutil_env_t *env) ++ { ++ adb_ncRebootInstance_t *_ncRebootInstance = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncRebootInstance = (adb_ncRebootInstance_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncRebootInstance_t)); ++ ++ if(NULL == _ncRebootInstance) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncRebootInstance, 0, sizeof(adb_ncRebootInstance_t)); ++ ++ _ncRebootInstance->property_ncRebootInstance = NULL; ++ _ncRebootInstance->is_valid_ncRebootInstance = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncRebootInstance", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncRebootInstance->qname = qname; ++ ++ ++ return _ncRebootInstance; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstance_free ( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstance, AXIS2_FAILURE); ++ ++ adb_ncRebootInstance_reset_ncRebootInstance(_ncRebootInstance, env); ++ ++ if(_ncRebootInstance->qname) ++ { ++ axutil_qname_free (_ncRebootInstance->qname, env); ++ _ncRebootInstance->qname = NULL; ++ } ++ ++ ++ if(_ncRebootInstance) ++ { ++ AXIS2_FREE(env->allocator, _ncRebootInstance); ++ _ncRebootInstance = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstance_deserialize( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstance, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncRebootInstance : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncRebootInstance-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncRebootInstance : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncRebootInstance-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncRebootInstance element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncRebootInstance", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncRebootInstanceType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncRebootInstanceType_create(env); ++ ++ status = adb_ncRebootInstanceType_deserialize((adb_ncRebootInstanceType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncRebootInstance"); ++ } ++ else ++ { ++ status = adb_ncRebootInstance_set_ncRebootInstance(_ncRebootInstance, env, ++ (adb_ncRebootInstanceType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncRebootInstance "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncRebootInstance missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstance_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncRebootInstance_declare_parent_namespaces( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRebootInstance_serialize( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstance, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncRebootInstance", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRebootInstance->is_valid_ncRebootInstance) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncRebootInstance") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncRebootInstance xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncRebootInstance"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncRebootInstance"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncRebootInstance element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncRebootInstance", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncRebootInstanceType_serialize(_ncRebootInstance->property_ncRebootInstance, ++ env, current_node, parent_element, ++ adb_ncRebootInstanceType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncRebootInstance. ++ */ ++ adb_ncRebootInstanceType_t* AXIS2_CALL ++ adb_ncRebootInstance_get_ncRebootInstance( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstance, NULL); ++ ++ ++ return _ncRebootInstance->property_ncRebootInstance; ++ } ++ ++ /** ++ * setter for ncRebootInstance ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstance_set_ncRebootInstance( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env, ++ adb_ncRebootInstanceType_t* arg_ncRebootInstance) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstance, AXIS2_FAILURE); ++ ++ if(_ncRebootInstance->is_valid_ncRebootInstance && ++ arg_ncRebootInstance == _ncRebootInstance->property_ncRebootInstance) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRebootInstance_reset_ncRebootInstance(_ncRebootInstance, env); ++ ++ ++ if(NULL == arg_ncRebootInstance) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRebootInstance->property_ncRebootInstance = arg_ncRebootInstance; ++ _ncRebootInstance->is_valid_ncRebootInstance = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncRebootInstance ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstance_reset_ncRebootInstance( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstance, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRebootInstance->property_ncRebootInstance != NULL) ++ { ++ ++ ++ adb_ncRebootInstanceType_free(_ncRebootInstance->property_ncRebootInstance, env); ++ _ncRebootInstance->property_ncRebootInstance = NULL; ++ } ++ ++ ++ ++ _ncRebootInstance->is_valid_ncRebootInstance = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncRebootInstance is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstance_is_ncRebootInstance_nil( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstance, AXIS2_TRUE); ++ ++ return !_ncRebootInstance->is_valid_ncRebootInstance; ++ } ++ ++ /** ++ * Set ncRebootInstance to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstance_set_ncRebootInstance_nil( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env) ++ { ++ return adb_ncRebootInstance_reset_ncRebootInstance(_ncRebootInstance, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncRebootInstance.h' +--- old/cluster/generated/adb_ncRebootInstance.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncRebootInstance.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCREBOOTINSTANCE_H ++ #define ADB_NCREBOOTINSTANCE_H ++ ++ /** ++ * adb_ncRebootInstance.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncRebootInstance class ++ */ ++ typedef struct adb_ncRebootInstance adb_ncRebootInstance_t; ++ ++ ++ #include "adb_ncRebootInstanceType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncRebootInstance_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncRebootInstance_t object ++ */ ++ adb_ncRebootInstance_t* AXIS2_CALL ++ adb_ncRebootInstance_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncRebootInstance_t object ++ * @param _ncRebootInstance adb_ncRebootInstance_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstance_free ( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncRebootInstance. ++ * @param _ncRebootInstance adb_ncRebootInstance_t object ++ * @param env pointer to environment struct ++ * @return adb_ncRebootInstanceType_t* ++ */ ++ adb_ncRebootInstanceType_t* AXIS2_CALL ++ adb_ncRebootInstance_get_ncRebootInstance( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncRebootInstance. ++ * @param _ncRebootInstance adb_ncRebootInstance_t object ++ * @param env pointer to environment struct ++ * @param arg_ncRebootInstance adb_ncRebootInstanceType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstance_set_ncRebootInstance( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env, ++ adb_ncRebootInstanceType_t* arg_ncRebootInstance); ++ ++ /** ++ * Resetter for ncRebootInstance ++ * @param _ncRebootInstance adb_ncRebootInstance_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstance_reset_ncRebootInstance( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncRebootInstance is nill ++ * @param _ncRebootInstance adb_ncRebootInstance_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstance_is_ncRebootInstance_nil( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncRebootInstance to nill (currently the same as reset) ++ * @param _ncRebootInstance adb_ncRebootInstance_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstance_set_ncRebootInstance_nil( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncRebootInstance adb_ncRebootInstance_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstance_deserialize( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncRebootInstance adb_ncRebootInstance_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncRebootInstance_declare_parent_namespaces( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncRebootInstance adb_ncRebootInstance_t object ++ * @param env pointer to environment struct ++ * @param ncRebootInstance_om_node node to serialize from ++ * @param ncRebootInstance_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRebootInstance_serialize( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env, ++ axiom_node_t* ncRebootInstance_om_node, axiom_element_t *ncRebootInstance_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncRebootInstance is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstance_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCREBOOTINSTANCE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncRebootInstanceResponse.c' +--- old/cluster/generated/adb_ncRebootInstanceResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncRebootInstanceResponse.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncRebootInstanceResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncRebootInstanceResponse.h" ++ ++ /* ++ * implmentation of the ncRebootInstanceResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncRebootInstanceResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncRebootInstanceResponseType_t* property_ncRebootInstanceResponse; ++ ++ ++ axis2_bool_t is_valid_ncRebootInstanceResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncRebootInstanceResponse_t* AXIS2_CALL ++ adb_ncRebootInstanceResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_ncRebootInstanceResponse_t *_ncRebootInstanceResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncRebootInstanceResponse = (adb_ncRebootInstanceResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncRebootInstanceResponse_t)); ++ ++ if(NULL == _ncRebootInstanceResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncRebootInstanceResponse, 0, sizeof(adb_ncRebootInstanceResponse_t)); ++ ++ _ncRebootInstanceResponse->property_ncRebootInstanceResponse = NULL; ++ _ncRebootInstanceResponse->is_valid_ncRebootInstanceResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncRebootInstanceResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncRebootInstanceResponse->qname = qname; ++ ++ ++ return _ncRebootInstanceResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_free ( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponse, AXIS2_FAILURE); ++ ++ adb_ncRebootInstanceResponse_reset_ncRebootInstanceResponse(_ncRebootInstanceResponse, env); ++ ++ if(_ncRebootInstanceResponse->qname) ++ { ++ axutil_qname_free (_ncRebootInstanceResponse->qname, env); ++ _ncRebootInstanceResponse->qname = NULL; ++ } ++ ++ ++ if(_ncRebootInstanceResponse) ++ { ++ AXIS2_FREE(env->allocator, _ncRebootInstanceResponse); ++ _ncRebootInstanceResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_deserialize( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncRebootInstanceResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncRebootInstanceResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncRebootInstanceResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncRebootInstanceResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncRebootInstanceResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncRebootInstanceResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncRebootInstanceResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncRebootInstanceResponseType_create(env); ++ ++ status = adb_ncRebootInstanceResponseType_deserialize((adb_ncRebootInstanceResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncRebootInstanceResponse"); ++ } ++ else ++ { ++ status = adb_ncRebootInstanceResponse_set_ncRebootInstanceResponse(_ncRebootInstanceResponse, env, ++ (adb_ncRebootInstanceResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncRebootInstanceResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncRebootInstanceResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncRebootInstanceResponse_declare_parent_namespaces( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRebootInstanceResponse_serialize( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncRebootInstanceResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRebootInstanceResponse->is_valid_ncRebootInstanceResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncRebootInstanceResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncRebootInstanceResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncRebootInstanceResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncRebootInstanceResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncRebootInstanceResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncRebootInstanceResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncRebootInstanceResponseType_serialize(_ncRebootInstanceResponse->property_ncRebootInstanceResponse, ++ env, current_node, parent_element, ++ adb_ncRebootInstanceResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncRebootInstanceResponse. ++ */ ++ adb_ncRebootInstanceResponseType_t* AXIS2_CALL ++ adb_ncRebootInstanceResponse_get_ncRebootInstanceResponse( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponse, NULL); ++ ++ ++ return _ncRebootInstanceResponse->property_ncRebootInstanceResponse; ++ } ++ ++ /** ++ * setter for ncRebootInstanceResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_set_ncRebootInstanceResponse( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env, ++ adb_ncRebootInstanceResponseType_t* arg_ncRebootInstanceResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponse, AXIS2_FAILURE); ++ ++ if(_ncRebootInstanceResponse->is_valid_ncRebootInstanceResponse && ++ arg_ncRebootInstanceResponse == _ncRebootInstanceResponse->property_ncRebootInstanceResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRebootInstanceResponse_reset_ncRebootInstanceResponse(_ncRebootInstanceResponse, env); ++ ++ ++ if(NULL == arg_ncRebootInstanceResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRebootInstanceResponse->property_ncRebootInstanceResponse = arg_ncRebootInstanceResponse; ++ _ncRebootInstanceResponse->is_valid_ncRebootInstanceResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncRebootInstanceResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_reset_ncRebootInstanceResponse( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRebootInstanceResponse->property_ncRebootInstanceResponse != NULL) ++ { ++ ++ ++ adb_ncRebootInstanceResponseType_free(_ncRebootInstanceResponse->property_ncRebootInstanceResponse, env); ++ _ncRebootInstanceResponse->property_ncRebootInstanceResponse = NULL; ++ } ++ ++ ++ ++ _ncRebootInstanceResponse->is_valid_ncRebootInstanceResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncRebootInstanceResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_is_ncRebootInstanceResponse_nil( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponse, AXIS2_TRUE); ++ ++ return !_ncRebootInstanceResponse->is_valid_ncRebootInstanceResponse; ++ } ++ ++ /** ++ * Set ncRebootInstanceResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_set_ncRebootInstanceResponse_nil( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env) ++ { ++ return adb_ncRebootInstanceResponse_reset_ncRebootInstanceResponse(_ncRebootInstanceResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncRebootInstanceResponse.h' +--- old/cluster/generated/adb_ncRebootInstanceResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncRebootInstanceResponse.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCREBOOTINSTANCERESPONSE_H ++ #define ADB_NCREBOOTINSTANCERESPONSE_H ++ ++ /** ++ * adb_ncRebootInstanceResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncRebootInstanceResponse class ++ */ ++ typedef struct adb_ncRebootInstanceResponse adb_ncRebootInstanceResponse_t; ++ ++ ++ #include "adb_ncRebootInstanceResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncRebootInstanceResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncRebootInstanceResponse_t object ++ */ ++ adb_ncRebootInstanceResponse_t* AXIS2_CALL ++ adb_ncRebootInstanceResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncRebootInstanceResponse_t object ++ * @param _ncRebootInstanceResponse adb_ncRebootInstanceResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_free ( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncRebootInstanceResponse. ++ * @param _ncRebootInstanceResponse adb_ncRebootInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_ncRebootInstanceResponseType_t* ++ */ ++ adb_ncRebootInstanceResponseType_t* AXIS2_CALL ++ adb_ncRebootInstanceResponse_get_ncRebootInstanceResponse( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncRebootInstanceResponse. ++ * @param _ncRebootInstanceResponse adb_ncRebootInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_ncRebootInstanceResponse adb_ncRebootInstanceResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_set_ncRebootInstanceResponse( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env, ++ adb_ncRebootInstanceResponseType_t* arg_ncRebootInstanceResponse); ++ ++ /** ++ * Resetter for ncRebootInstanceResponse ++ * @param _ncRebootInstanceResponse adb_ncRebootInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_reset_ncRebootInstanceResponse( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncRebootInstanceResponse is nill ++ * @param _ncRebootInstanceResponse adb_ncRebootInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_is_ncRebootInstanceResponse_nil( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncRebootInstanceResponse to nill (currently the same as reset) ++ * @param _ncRebootInstanceResponse adb_ncRebootInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_set_ncRebootInstanceResponse_nil( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncRebootInstanceResponse adb_ncRebootInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_deserialize( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncRebootInstanceResponse adb_ncRebootInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncRebootInstanceResponse_declare_parent_namespaces( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncRebootInstanceResponse adb_ncRebootInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @param ncRebootInstanceResponse_om_node node to serialize from ++ * @param ncRebootInstanceResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRebootInstanceResponse_serialize( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env, ++ axiom_node_t* ncRebootInstanceResponse_om_node, axiom_element_t *ncRebootInstanceResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncRebootInstanceResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCREBOOTINSTANCERESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncRebootInstanceResponseType.c' +--- old/cluster/generated/adb_ncRebootInstanceResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncRebootInstanceResponseType.c 2010-01-05 01:00:43 +0000 +@@ -0,0 +1,1633 @@ ++ ++ ++ /** ++ * adb_ncRebootInstanceResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncRebootInstanceResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncRebootInstanceResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncRebootInstanceResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_status; ++ ++ ++ axis2_bool_t is_valid_status; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_correlationId_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_userId_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_return_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_status_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncRebootInstanceResponseType_t* AXIS2_CALL ++ adb_ncRebootInstanceResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncRebootInstanceResponseType_t *_ncRebootInstanceResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncRebootInstanceResponseType = (adb_ncRebootInstanceResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncRebootInstanceResponseType_t)); ++ ++ if(NULL == _ncRebootInstanceResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncRebootInstanceResponseType, 0, sizeof(adb_ncRebootInstanceResponseType_t)); ++ ++ _ncRebootInstanceResponseType->property_correlationId = NULL; ++ _ncRebootInstanceResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _ncRebootInstanceResponseType->property_userId = NULL; ++ _ncRebootInstanceResponseType->is_valid_userId = AXIS2_FALSE; ++ _ncRebootInstanceResponseType->is_valid_return = AXIS2_FALSE; ++ _ncRebootInstanceResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncRebootInstanceResponseType->is_valid_status = AXIS2_FALSE; ++ ++ ++ return _ncRebootInstanceResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_free ( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_FAILURE); ++ ++ adb_ncRebootInstanceResponseType_reset_correlationId(_ncRebootInstanceResponseType, env); ++ adb_ncRebootInstanceResponseType_reset_userId(_ncRebootInstanceResponseType, env); ++ adb_ncRebootInstanceResponseType_reset_return(_ncRebootInstanceResponseType, env); ++ adb_ncRebootInstanceResponseType_reset_statusMessage(_ncRebootInstanceResponseType, env); ++ adb_ncRebootInstanceResponseType_reset_status(_ncRebootInstanceResponseType, env); ++ ++ ++ if(_ncRebootInstanceResponseType) ++ { ++ AXIS2_FREE(env->allocator, _ncRebootInstanceResponseType); ++ _ncRebootInstanceResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_deserialize( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncRebootInstanceResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRebootInstanceResponseType_set_correlationId(_ncRebootInstanceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRebootInstanceResponseType_set_correlationId(_ncRebootInstanceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRebootInstanceResponseType_set_userId(_ncRebootInstanceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRebootInstanceResponseType_set_userId(_ncRebootInstanceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncRebootInstanceResponseType_set_return(_ncRebootInstanceResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncRebootInstanceResponseType_set_return(_ncRebootInstanceResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRebootInstanceResponseType_set_statusMessage(_ncRebootInstanceResponseType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building status element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "status", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncRebootInstanceResponseType_set_status(_ncRebootInstanceResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncRebootInstanceResponseType_set_status(_ncRebootInstanceResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element status"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for status "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element status missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncRebootInstanceResponseType_declare_parent_namespaces( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRebootInstanceResponseType_serialize( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t text_value_5[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRebootInstanceResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncRebootInstanceResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRebootInstanceResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncRebootInstanceResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRebootInstanceResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncRebootInstanceResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRebootInstanceResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncRebootInstanceResponseType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRebootInstanceResponseType->is_valid_status) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property status"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("status"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("status"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing status element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatus>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_5, (_ncRebootInstanceResponseType->property_status)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRebootInstanceResponseType_get_correlationId( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, NULL); ++ ++ ++ return _ncRebootInstanceResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_correlationId( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncRebootInstanceResponseType->is_valid_correlationId && ++ arg_correlationId == _ncRebootInstanceResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRebootInstanceResponseType_reset_correlationId(_ncRebootInstanceResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRebootInstanceResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncRebootInstanceResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRebootInstanceResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_reset_correlationId( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRebootInstanceResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRebootInstanceResponseType->property_correlationId); ++ _ncRebootInstanceResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncRebootInstanceResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_is_correlationId_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncRebootInstanceResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_correlationId_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRebootInstanceResponseType_reset_correlationId(_ncRebootInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRebootInstanceResponseType_get_userId( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, NULL); ++ ++ ++ return _ncRebootInstanceResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_userId( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncRebootInstanceResponseType->is_valid_userId && ++ arg_userId == _ncRebootInstanceResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRebootInstanceResponseType_reset_userId(_ncRebootInstanceResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRebootInstanceResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncRebootInstanceResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRebootInstanceResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_reset_userId( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRebootInstanceResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRebootInstanceResponseType->property_userId); ++ _ncRebootInstanceResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncRebootInstanceResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_is_userId_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncRebootInstanceResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_userId_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRebootInstanceResponseType_reset_userId(_ncRebootInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_get_return( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, (axis2_bool_t)0); ++ ++ ++ return _ncRebootInstanceResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_return( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncRebootInstanceResponseType->is_valid_return && ++ arg_return == _ncRebootInstanceResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRebootInstanceResponseType_reset_return(_ncRebootInstanceResponseType, env); ++ ++ _ncRebootInstanceResponseType->property_return = arg_return; ++ _ncRebootInstanceResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_reset_return( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncRebootInstanceResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_is_return_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncRebootInstanceResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_return_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRebootInstanceResponseType_reset_return(_ncRebootInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncRebootInstanceResponseType_get_statusMessage( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, (int)0); ++ ++ ++ return _ncRebootInstanceResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_statusMessage( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncRebootInstanceResponseType->is_valid_statusMessage && ++ arg_statusMessage == _ncRebootInstanceResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRebootInstanceResponseType_reset_statusMessage(_ncRebootInstanceResponseType, env); ++ ++ _ncRebootInstanceResponseType->property_statusMessage = arg_statusMessage; ++ _ncRebootInstanceResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_reset_statusMessage( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncRebootInstanceResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_is_statusMessage_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncRebootInstanceResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_statusMessage_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRebootInstanceResponseType_reset_statusMessage(_ncRebootInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for status. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_get_status( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, (axis2_bool_t)0); ++ ++ ++ return _ncRebootInstanceResponseType->property_status; ++ } ++ ++ /** ++ * setter for status ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_status( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_status) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncRebootInstanceResponseType->is_valid_status && ++ arg_status == _ncRebootInstanceResponseType->property_status) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRebootInstanceResponseType_reset_status(_ncRebootInstanceResponseType, env); ++ ++ _ncRebootInstanceResponseType->property_status = arg_status; ++ _ncRebootInstanceResponseType->is_valid_status = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for status ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_reset_status( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncRebootInstanceResponseType->is_valid_status = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether status is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_is_status_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncRebootInstanceResponseType->is_valid_status; ++ } ++ ++ /** ++ * Set status to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_status_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRebootInstanceResponseType_reset_status(_ncRebootInstanceResponseType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncRebootInstanceResponseType.h' +--- old/cluster/generated/adb_ncRebootInstanceResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncRebootInstanceResponseType.h 2010-01-05 01:00:43 +0000 +@@ -0,0 +1,414 @@ ++ ++ ++ #ifndef ADB_NCREBOOTINSTANCERESPONSETYPE_H ++ #define ADB_NCREBOOTINSTANCERESPONSETYPE_H ++ ++ /** ++ * adb_ncRebootInstanceResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncRebootInstanceResponseType class ++ */ ++ typedef struct adb_ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncRebootInstanceResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncRebootInstanceResponseType_t object ++ */ ++ adb_ncRebootInstanceResponseType_t* AXIS2_CALL ++ adb_ncRebootInstanceResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncRebootInstanceResponseType_t object ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_free ( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRebootInstanceResponseType_get_correlationId( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_correlationId( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_reset_correlationId( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRebootInstanceResponseType_get_userId( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_userId( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_reset_userId( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_get_return( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_return( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_reset_return( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncRebootInstanceResponseType_get_statusMessage( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_statusMessage( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_reset_statusMessage( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for status. ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_get_status( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for status. ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_status axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_status( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_status); ++ ++ /** ++ * Resetter for status ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_reset_status( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_is_correlationId_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_is_userId_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_is_return_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_is_statusMessage_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_statusMessage_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether status is nill ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_is_status_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_deserialize( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncRebootInstanceResponseType_declare_parent_namespaces( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param ncRebootInstanceResponseType_om_node node to serialize from ++ * @param ncRebootInstanceResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRebootInstanceResponseType_serialize( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* ncRebootInstanceResponseType_om_node, axiom_element_t *ncRebootInstanceResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncRebootInstanceResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCREBOOTINSTANCERESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncRebootInstanceType.c' +--- old/cluster/generated/adb_ncRebootInstanceType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncRebootInstanceType.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,1720 @@ ++ ++ ++ /** ++ * adb_ncRebootInstanceType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncRebootInstanceType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncRebootInstanceType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncRebootInstanceType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_char_t* property_instanceId; ++ ++ ++ axis2_bool_t is_valid_instanceId; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_correlationId_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_userId_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_return_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_instanceId_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncRebootInstanceType_t* AXIS2_CALL ++ adb_ncRebootInstanceType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncRebootInstanceType_t *_ncRebootInstanceType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncRebootInstanceType = (adb_ncRebootInstanceType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncRebootInstanceType_t)); ++ ++ if(NULL == _ncRebootInstanceType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncRebootInstanceType, 0, sizeof(adb_ncRebootInstanceType_t)); ++ ++ _ncRebootInstanceType->property_correlationId = NULL; ++ _ncRebootInstanceType->is_valid_correlationId = AXIS2_FALSE; ++ _ncRebootInstanceType->property_userId = NULL; ++ _ncRebootInstanceType->is_valid_userId = AXIS2_FALSE; ++ _ncRebootInstanceType->is_valid_return = AXIS2_FALSE; ++ _ncRebootInstanceType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncRebootInstanceType->property_instanceId = NULL; ++ _ncRebootInstanceType->is_valid_instanceId = AXIS2_FALSE; ++ ++ ++ return _ncRebootInstanceType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_free ( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_FAILURE); ++ ++ adb_ncRebootInstanceType_reset_correlationId(_ncRebootInstanceType, env); ++ adb_ncRebootInstanceType_reset_userId(_ncRebootInstanceType, env); ++ adb_ncRebootInstanceType_reset_return(_ncRebootInstanceType, env); ++ adb_ncRebootInstanceType_reset_statusMessage(_ncRebootInstanceType, env); ++ adb_ncRebootInstanceType_reset_instanceId(_ncRebootInstanceType, env); ++ ++ ++ if(_ncRebootInstanceType) ++ { ++ AXIS2_FREE(env->allocator, _ncRebootInstanceType); ++ _ncRebootInstanceType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_deserialize( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncRebootInstanceType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRebootInstanceType_set_correlationId(_ncRebootInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRebootInstanceType_set_correlationId(_ncRebootInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRebootInstanceType_set_userId(_ncRebootInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRebootInstanceType_set_userId(_ncRebootInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncRebootInstanceType_set_return(_ncRebootInstanceType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncRebootInstanceType_set_return(_ncRebootInstanceType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRebootInstanceType_set_statusMessage(_ncRebootInstanceType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRebootInstanceType_set_instanceId(_ncRebootInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRebootInstanceType_set_instanceId(_ncRebootInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element instanceId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncRebootInstanceType_declare_parent_namespaces( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRebootInstanceType_serialize( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRebootInstanceType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncRebootInstanceType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRebootInstanceType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncRebootInstanceType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRebootInstanceType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncRebootInstanceType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRebootInstanceType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncRebootInstanceType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRebootInstanceType->is_valid_instanceId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _ncRebootInstanceType->property_instanceId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRebootInstanceType_get_correlationId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, NULL); ++ ++ ++ return _ncRebootInstanceType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_correlationId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRebootInstanceType->is_valid_correlationId && ++ arg_correlationId == _ncRebootInstanceType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRebootInstanceType_reset_correlationId(_ncRebootInstanceType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRebootInstanceType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncRebootInstanceType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRebootInstanceType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_reset_correlationId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRebootInstanceType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRebootInstanceType->property_correlationId); ++ _ncRebootInstanceType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncRebootInstanceType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_is_correlationId_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_TRUE); ++ ++ return !_ncRebootInstanceType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_correlationId_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRebootInstanceType_reset_correlationId(_ncRebootInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRebootInstanceType_get_userId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, NULL); ++ ++ ++ return _ncRebootInstanceType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_userId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRebootInstanceType->is_valid_userId && ++ arg_userId == _ncRebootInstanceType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRebootInstanceType_reset_userId(_ncRebootInstanceType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRebootInstanceType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncRebootInstanceType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRebootInstanceType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_reset_userId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRebootInstanceType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRebootInstanceType->property_userId); ++ _ncRebootInstanceType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncRebootInstanceType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_is_userId_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_TRUE); ++ ++ return !_ncRebootInstanceType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_userId_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRebootInstanceType_reset_userId(_ncRebootInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_get_return( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, (axis2_bool_t)0); ++ ++ ++ return _ncRebootInstanceType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_return( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRebootInstanceType->is_valid_return && ++ arg_return == _ncRebootInstanceType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRebootInstanceType_reset_return(_ncRebootInstanceType, env); ++ ++ _ncRebootInstanceType->property_return = arg_return; ++ _ncRebootInstanceType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_reset_return( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_FAILURE); ++ ++ ++ _ncRebootInstanceType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_is_return_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_TRUE); ++ ++ return !_ncRebootInstanceType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_return_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRebootInstanceType_reset_return(_ncRebootInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncRebootInstanceType_get_statusMessage( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, (int)0); ++ ++ ++ return _ncRebootInstanceType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_statusMessage( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRebootInstanceType->is_valid_statusMessage && ++ arg_statusMessage == _ncRebootInstanceType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRebootInstanceType_reset_statusMessage(_ncRebootInstanceType, env); ++ ++ _ncRebootInstanceType->property_statusMessage = arg_statusMessage; ++ _ncRebootInstanceType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_reset_statusMessage( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_FAILURE); ++ ++ ++ _ncRebootInstanceType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_is_statusMessage_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_TRUE); ++ ++ return !_ncRebootInstanceType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_statusMessage_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRebootInstanceType_reset_statusMessage(_ncRebootInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRebootInstanceType_get_instanceId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, NULL); ++ ++ ++ return _ncRebootInstanceType->property_instanceId; ++ } ++ ++ /** ++ * setter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_instanceId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRebootInstanceType->is_valid_instanceId && ++ arg_instanceId == _ncRebootInstanceType->property_instanceId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncRebootInstanceType_reset_instanceId(_ncRebootInstanceType, env); ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRebootInstanceType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId); ++ if(NULL == _ncRebootInstanceType->property_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRebootInstanceType->is_valid_instanceId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_reset_instanceId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRebootInstanceType->property_instanceId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRebootInstanceType->property_instanceId); ++ _ncRebootInstanceType->property_instanceId = NULL; ++ } ++ ++ ++ ++ _ncRebootInstanceType->is_valid_instanceId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_is_instanceId_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_TRUE); ++ ++ return !_ncRebootInstanceType->is_valid_instanceId; ++ } ++ ++ /** ++ * Set instanceId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_instanceId_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRebootInstanceType_reset_instanceId(_ncRebootInstanceType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncRebootInstanceType.h' +--- old/cluster/generated/adb_ncRebootInstanceType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncRebootInstanceType.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,414 @@ ++ ++ ++ #ifndef ADB_NCREBOOTINSTANCETYPE_H ++ #define ADB_NCREBOOTINSTANCETYPE_H ++ ++ /** ++ * adb_ncRebootInstanceType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncRebootInstanceType class ++ */ ++ typedef struct adb_ncRebootInstanceType adb_ncRebootInstanceType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncRebootInstanceType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncRebootInstanceType_t object ++ */ ++ adb_ncRebootInstanceType_t* AXIS2_CALL ++ adb_ncRebootInstanceType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncRebootInstanceType_t object ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_free ( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRebootInstanceType_get_correlationId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_correlationId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_reset_correlationId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRebootInstanceType_get_userId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_userId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_reset_userId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_get_return( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_return( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_reset_return( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncRebootInstanceType_get_statusMessage( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_statusMessage( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_reset_statusMessage( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceId. ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRebootInstanceType_get_instanceId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceId. ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_instanceId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId); ++ ++ /** ++ * Resetter for instanceId ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_reset_instanceId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_is_correlationId_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_is_userId_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_is_return_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_is_statusMessage_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_statusMessage_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether instanceId is nill ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_is_instanceId_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_deserialize( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncRebootInstanceType_declare_parent_namespaces( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @param ncRebootInstanceType_om_node node to serialize from ++ * @param ncRebootInstanceType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRebootInstanceType_serialize( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ axiom_node_t* ncRebootInstanceType_om_node, axiom_element_t *ncRebootInstanceType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncRebootInstanceType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCREBOOTINSTANCETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncRunInstance.c' +--- old/cluster/generated/adb_ncRunInstance.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncRunInstance.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncRunInstance.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncRunInstance.h" ++ ++ /* ++ * implmentation of the ncRunInstance|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncRunInstance ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncRunInstanceType_t* property_ncRunInstance; ++ ++ ++ axis2_bool_t is_valid_ncRunInstance; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncRunInstance_t* AXIS2_CALL ++ adb_ncRunInstance_create( ++ const axutil_env_t *env) ++ { ++ adb_ncRunInstance_t *_ncRunInstance = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncRunInstance = (adb_ncRunInstance_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncRunInstance_t)); ++ ++ if(NULL == _ncRunInstance) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncRunInstance, 0, sizeof(adb_ncRunInstance_t)); ++ ++ _ncRunInstance->property_ncRunInstance = NULL; ++ _ncRunInstance->is_valid_ncRunInstance = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncRunInstance", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncRunInstance->qname = qname; ++ ++ ++ return _ncRunInstance; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstance_free ( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstance, AXIS2_FAILURE); ++ ++ adb_ncRunInstance_reset_ncRunInstance(_ncRunInstance, env); ++ ++ if(_ncRunInstance->qname) ++ { ++ axutil_qname_free (_ncRunInstance->qname, env); ++ _ncRunInstance->qname = NULL; ++ } ++ ++ ++ if(_ncRunInstance) ++ { ++ AXIS2_FREE(env->allocator, _ncRunInstance); ++ _ncRunInstance = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstance_deserialize( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstance, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncRunInstance : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncRunInstance-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncRunInstance : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncRunInstance-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncRunInstance element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncRunInstance", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncRunInstanceType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncRunInstanceType_create(env); ++ ++ status = adb_ncRunInstanceType_deserialize((adb_ncRunInstanceType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncRunInstance"); ++ } ++ else ++ { ++ status = adb_ncRunInstance_set_ncRunInstance(_ncRunInstance, env, ++ (adb_ncRunInstanceType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncRunInstance "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncRunInstance missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstance_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncRunInstance_declare_parent_namespaces( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRunInstance_serialize( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstance, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncRunInstance", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstance->is_valid_ncRunInstance) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncRunInstance") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncRunInstance xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncRunInstance"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncRunInstance"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncRunInstance element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncRunInstance", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncRunInstanceType_serialize(_ncRunInstance->property_ncRunInstance, ++ env, current_node, parent_element, ++ adb_ncRunInstanceType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncRunInstance. ++ */ ++ adb_ncRunInstanceType_t* AXIS2_CALL ++ adb_ncRunInstance_get_ncRunInstance( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstance, NULL); ++ ++ ++ return _ncRunInstance->property_ncRunInstance; ++ } ++ ++ /** ++ * setter for ncRunInstance ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstance_set_ncRunInstance( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env, ++ adb_ncRunInstanceType_t* arg_ncRunInstance) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstance, AXIS2_FAILURE); ++ ++ if(_ncRunInstance->is_valid_ncRunInstance && ++ arg_ncRunInstance == _ncRunInstance->property_ncRunInstance) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstance_reset_ncRunInstance(_ncRunInstance, env); ++ ++ ++ if(NULL == arg_ncRunInstance) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstance->property_ncRunInstance = arg_ncRunInstance; ++ _ncRunInstance->is_valid_ncRunInstance = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncRunInstance ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstance_reset_ncRunInstance( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstance, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstance->property_ncRunInstance != NULL) ++ { ++ ++ ++ adb_ncRunInstanceType_free(_ncRunInstance->property_ncRunInstance, env); ++ _ncRunInstance->property_ncRunInstance = NULL; ++ } ++ ++ ++ ++ _ncRunInstance->is_valid_ncRunInstance = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncRunInstance is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstance_is_ncRunInstance_nil( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstance, AXIS2_TRUE); ++ ++ return !_ncRunInstance->is_valid_ncRunInstance; ++ } ++ ++ /** ++ * Set ncRunInstance to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstance_set_ncRunInstance_nil( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstance_reset_ncRunInstance(_ncRunInstance, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncRunInstance.h' +--- old/cluster/generated/adb_ncRunInstance.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncRunInstance.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCRUNINSTANCE_H ++ #define ADB_NCRUNINSTANCE_H ++ ++ /** ++ * adb_ncRunInstance.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncRunInstance class ++ */ ++ typedef struct adb_ncRunInstance adb_ncRunInstance_t; ++ ++ ++ #include "adb_ncRunInstanceType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncRunInstance_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncRunInstance_t object ++ */ ++ adb_ncRunInstance_t* AXIS2_CALL ++ adb_ncRunInstance_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncRunInstance_t object ++ * @param _ncRunInstance adb_ncRunInstance_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstance_free ( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncRunInstance. ++ * @param _ncRunInstance adb_ncRunInstance_t object ++ * @param env pointer to environment struct ++ * @return adb_ncRunInstanceType_t* ++ */ ++ adb_ncRunInstanceType_t* AXIS2_CALL ++ adb_ncRunInstance_get_ncRunInstance( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncRunInstance. ++ * @param _ncRunInstance adb_ncRunInstance_t object ++ * @param env pointer to environment struct ++ * @param arg_ncRunInstance adb_ncRunInstanceType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstance_set_ncRunInstance( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env, ++ adb_ncRunInstanceType_t* arg_ncRunInstance); ++ ++ /** ++ * Resetter for ncRunInstance ++ * @param _ncRunInstance adb_ncRunInstance_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstance_reset_ncRunInstance( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncRunInstance is nill ++ * @param _ncRunInstance adb_ncRunInstance_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstance_is_ncRunInstance_nil( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncRunInstance to nill (currently the same as reset) ++ * @param _ncRunInstance adb_ncRunInstance_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstance_set_ncRunInstance_nil( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncRunInstance adb_ncRunInstance_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstance_deserialize( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncRunInstance adb_ncRunInstance_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncRunInstance_declare_parent_namespaces( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncRunInstance adb_ncRunInstance_t object ++ * @param env pointer to environment struct ++ * @param ncRunInstance_om_node node to serialize from ++ * @param ncRunInstance_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRunInstance_serialize( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env, ++ axiom_node_t* ncRunInstance_om_node, axiom_element_t *ncRunInstance_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncRunInstance is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstance_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCRUNINSTANCE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncRunInstanceResponse.c' +--- old/cluster/generated/adb_ncRunInstanceResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncRunInstanceResponse.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncRunInstanceResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncRunInstanceResponse.h" ++ ++ /* ++ * implmentation of the ncRunInstanceResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncRunInstanceResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncRunInstanceResponseType_t* property_ncRunInstanceResponse; ++ ++ ++ axis2_bool_t is_valid_ncRunInstanceResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncRunInstanceResponse_t* AXIS2_CALL ++ adb_ncRunInstanceResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_ncRunInstanceResponse_t *_ncRunInstanceResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncRunInstanceResponse = (adb_ncRunInstanceResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncRunInstanceResponse_t)); ++ ++ if(NULL == _ncRunInstanceResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncRunInstanceResponse, 0, sizeof(adb_ncRunInstanceResponse_t)); ++ ++ _ncRunInstanceResponse->property_ncRunInstanceResponse = NULL; ++ _ncRunInstanceResponse->is_valid_ncRunInstanceResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncRunInstanceResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncRunInstanceResponse->qname = qname; ++ ++ ++ return _ncRunInstanceResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponse_free ( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponse, AXIS2_FAILURE); ++ ++ adb_ncRunInstanceResponse_reset_ncRunInstanceResponse(_ncRunInstanceResponse, env); ++ ++ if(_ncRunInstanceResponse->qname) ++ { ++ axutil_qname_free (_ncRunInstanceResponse->qname, env); ++ _ncRunInstanceResponse->qname = NULL; ++ } ++ ++ ++ if(_ncRunInstanceResponse) ++ { ++ AXIS2_FREE(env->allocator, _ncRunInstanceResponse); ++ _ncRunInstanceResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponse_deserialize( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncRunInstanceResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncRunInstanceResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncRunInstanceResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncRunInstanceResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncRunInstanceResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncRunInstanceResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncRunInstanceResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncRunInstanceResponseType_create(env); ++ ++ status = adb_ncRunInstanceResponseType_deserialize((adb_ncRunInstanceResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncRunInstanceResponse"); ++ } ++ else ++ { ++ status = adb_ncRunInstanceResponse_set_ncRunInstanceResponse(_ncRunInstanceResponse, env, ++ (adb_ncRunInstanceResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncRunInstanceResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncRunInstanceResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncRunInstanceResponse_declare_parent_namespaces( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRunInstanceResponse_serialize( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncRunInstanceResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceResponse->is_valid_ncRunInstanceResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncRunInstanceResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncRunInstanceResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncRunInstanceResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncRunInstanceResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncRunInstanceResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncRunInstanceResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncRunInstanceResponseType_serialize(_ncRunInstanceResponse->property_ncRunInstanceResponse, ++ env, current_node, parent_element, ++ adb_ncRunInstanceResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncRunInstanceResponse. ++ */ ++ adb_ncRunInstanceResponseType_t* AXIS2_CALL ++ adb_ncRunInstanceResponse_get_ncRunInstanceResponse( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponse, NULL); ++ ++ ++ return _ncRunInstanceResponse->property_ncRunInstanceResponse; ++ } ++ ++ /** ++ * setter for ncRunInstanceResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponse_set_ncRunInstanceResponse( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env, ++ adb_ncRunInstanceResponseType_t* arg_ncRunInstanceResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponse, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceResponse->is_valid_ncRunInstanceResponse && ++ arg_ncRunInstanceResponse == _ncRunInstanceResponse->property_ncRunInstanceResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceResponse_reset_ncRunInstanceResponse(_ncRunInstanceResponse, env); ++ ++ ++ if(NULL == arg_ncRunInstanceResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceResponse->property_ncRunInstanceResponse = arg_ncRunInstanceResponse; ++ _ncRunInstanceResponse->is_valid_ncRunInstanceResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncRunInstanceResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponse_reset_ncRunInstanceResponse( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceResponse->property_ncRunInstanceResponse != NULL) ++ { ++ ++ ++ adb_ncRunInstanceResponseType_free(_ncRunInstanceResponse->property_ncRunInstanceResponse, env); ++ _ncRunInstanceResponse->property_ncRunInstanceResponse = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceResponse->is_valid_ncRunInstanceResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncRunInstanceResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponse_is_ncRunInstanceResponse_nil( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponse, AXIS2_TRUE); ++ ++ return !_ncRunInstanceResponse->is_valid_ncRunInstanceResponse; ++ } ++ ++ /** ++ * Set ncRunInstanceResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponse_set_ncRunInstanceResponse_nil( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceResponse_reset_ncRunInstanceResponse(_ncRunInstanceResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncRunInstanceResponse.h' +--- old/cluster/generated/adb_ncRunInstanceResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncRunInstanceResponse.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCRUNINSTANCERESPONSE_H ++ #define ADB_NCRUNINSTANCERESPONSE_H ++ ++ /** ++ * adb_ncRunInstanceResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncRunInstanceResponse class ++ */ ++ typedef struct adb_ncRunInstanceResponse adb_ncRunInstanceResponse_t; ++ ++ ++ #include "adb_ncRunInstanceResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncRunInstanceResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncRunInstanceResponse_t object ++ */ ++ adb_ncRunInstanceResponse_t* AXIS2_CALL ++ adb_ncRunInstanceResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncRunInstanceResponse_t object ++ * @param _ncRunInstanceResponse adb_ncRunInstanceResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponse_free ( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncRunInstanceResponse. ++ * @param _ncRunInstanceResponse adb_ncRunInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_ncRunInstanceResponseType_t* ++ */ ++ adb_ncRunInstanceResponseType_t* AXIS2_CALL ++ adb_ncRunInstanceResponse_get_ncRunInstanceResponse( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncRunInstanceResponse. ++ * @param _ncRunInstanceResponse adb_ncRunInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_ncRunInstanceResponse adb_ncRunInstanceResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponse_set_ncRunInstanceResponse( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env, ++ adb_ncRunInstanceResponseType_t* arg_ncRunInstanceResponse); ++ ++ /** ++ * Resetter for ncRunInstanceResponse ++ * @param _ncRunInstanceResponse adb_ncRunInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponse_reset_ncRunInstanceResponse( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncRunInstanceResponse is nill ++ * @param _ncRunInstanceResponse adb_ncRunInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponse_is_ncRunInstanceResponse_nil( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncRunInstanceResponse to nill (currently the same as reset) ++ * @param _ncRunInstanceResponse adb_ncRunInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponse_set_ncRunInstanceResponse_nil( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncRunInstanceResponse adb_ncRunInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponse_deserialize( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncRunInstanceResponse adb_ncRunInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncRunInstanceResponse_declare_parent_namespaces( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncRunInstanceResponse adb_ncRunInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @param ncRunInstanceResponse_om_node node to serialize from ++ * @param ncRunInstanceResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRunInstanceResponse_serialize( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env, ++ axiom_node_t* ncRunInstanceResponse_om_node, axiom_element_t *ncRunInstanceResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncRunInstanceResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCRUNINSTANCERESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncRunInstanceResponseType.c' +--- old/cluster/generated/adb_ncRunInstanceResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncRunInstanceResponseType.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,1642 @@ ++ ++ ++ /** ++ * adb_ncRunInstanceResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncRunInstanceResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncRunInstanceResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncRunInstanceResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ adb_instanceType_t* property_instance; ++ ++ ++ axis2_bool_t is_valid_instance; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_correlationId_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_userId_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_return_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_instance_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncRunInstanceResponseType_t* AXIS2_CALL ++ adb_ncRunInstanceResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncRunInstanceResponseType_t *_ncRunInstanceResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncRunInstanceResponseType = (adb_ncRunInstanceResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncRunInstanceResponseType_t)); ++ ++ if(NULL == _ncRunInstanceResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncRunInstanceResponseType, 0, sizeof(adb_ncRunInstanceResponseType_t)); ++ ++ _ncRunInstanceResponseType->property_correlationId = NULL; ++ _ncRunInstanceResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _ncRunInstanceResponseType->property_userId = NULL; ++ _ncRunInstanceResponseType->is_valid_userId = AXIS2_FALSE; ++ _ncRunInstanceResponseType->is_valid_return = AXIS2_FALSE; ++ _ncRunInstanceResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncRunInstanceResponseType->property_instance = NULL; ++ _ncRunInstanceResponseType->is_valid_instance = AXIS2_FALSE; ++ ++ ++ return _ncRunInstanceResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_free ( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_FAILURE); ++ ++ adb_ncRunInstanceResponseType_reset_correlationId(_ncRunInstanceResponseType, env); ++ adb_ncRunInstanceResponseType_reset_userId(_ncRunInstanceResponseType, env); ++ adb_ncRunInstanceResponseType_reset_return(_ncRunInstanceResponseType, env); ++ adb_ncRunInstanceResponseType_reset_statusMessage(_ncRunInstanceResponseType, env); ++ adb_ncRunInstanceResponseType_reset_instance(_ncRunInstanceResponseType, env); ++ ++ ++ if(_ncRunInstanceResponseType) ++ { ++ AXIS2_FREE(env->allocator, _ncRunInstanceResponseType); ++ _ncRunInstanceResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_deserialize( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncRunInstanceResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceResponseType_set_correlationId(_ncRunInstanceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceResponseType_set_correlationId(_ncRunInstanceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceResponseType_set_userId(_ncRunInstanceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceResponseType_set_userId(_ncRunInstanceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncRunInstanceResponseType_set_return(_ncRunInstanceResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncRunInstanceResponseType_set_return(_ncRunInstanceResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceResponseType_set_statusMessage(_ncRunInstanceResponseType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instance element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instance", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_instanceType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_instanceType_create(env); ++ ++ status = adb_instanceType_deserialize((adb_instanceType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element instance"); ++ } ++ else ++ { ++ status = adb_ncRunInstanceResponseType_set_instance(_ncRunInstanceResponseType, env, ++ (adb_instanceType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instance "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncRunInstanceResponseType_declare_parent_namespaces( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRunInstanceResponseType_serialize( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t text_value_5[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncRunInstanceResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncRunInstanceResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncRunInstanceResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncRunInstanceResponseType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceResponseType->is_valid_instance) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instance"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instance"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instance element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstance", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ if(!adb_instanceType_is_particle()) ++ { ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ } ++ ++ adb_instanceType_serialize(_ncRunInstanceResponseType->property_instance, ++ env, current_node, parent_element, ++ adb_instanceType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index); ++ ++ if(!adb_instanceType_is_particle()) ++ { ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceResponseType_get_correlationId( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, NULL); ++ ++ ++ return _ncRunInstanceResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_correlationId( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceResponseType->is_valid_correlationId && ++ arg_correlationId == _ncRunInstanceResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceResponseType_reset_correlationId(_ncRunInstanceResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncRunInstanceResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_reset_correlationId( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceResponseType->property_correlationId); ++ _ncRunInstanceResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_is_correlationId_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_correlationId_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceResponseType_reset_correlationId(_ncRunInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceResponseType_get_userId( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, NULL); ++ ++ ++ return _ncRunInstanceResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_userId( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceResponseType->is_valid_userId && ++ arg_userId == _ncRunInstanceResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceResponseType_reset_userId(_ncRunInstanceResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncRunInstanceResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_reset_userId( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceResponseType->property_userId); ++ _ncRunInstanceResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_is_userId_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_userId_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceResponseType_reset_userId(_ncRunInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_get_return( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, (axis2_bool_t)0); ++ ++ ++ return _ncRunInstanceResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_return( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceResponseType->is_valid_return && ++ arg_return == _ncRunInstanceResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceResponseType_reset_return(_ncRunInstanceResponseType, env); ++ ++ _ncRunInstanceResponseType->property_return = arg_return; ++ _ncRunInstanceResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_reset_return( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncRunInstanceResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_is_return_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_return_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceResponseType_reset_return(_ncRunInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncRunInstanceResponseType_get_statusMessage( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, (int)0); ++ ++ ++ return _ncRunInstanceResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_statusMessage( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceResponseType->is_valid_statusMessage && ++ arg_statusMessage == _ncRunInstanceResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceResponseType_reset_statusMessage(_ncRunInstanceResponseType, env); ++ ++ _ncRunInstanceResponseType->property_statusMessage = arg_statusMessage; ++ _ncRunInstanceResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_reset_statusMessage( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncRunInstanceResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_is_statusMessage_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_statusMessage_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceResponseType_reset_statusMessage(_ncRunInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instance. ++ */ ++ adb_instanceType_t* AXIS2_CALL ++ adb_ncRunInstanceResponseType_get_instance( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, NULL); ++ ++ ++ return _ncRunInstanceResponseType->property_instance; ++ } ++ ++ /** ++ * setter for instance ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_instance( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ adb_instanceType_t* arg_instance) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceResponseType->is_valid_instance && ++ arg_instance == _ncRunInstanceResponseType->property_instance) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceResponseType_reset_instance(_ncRunInstanceResponseType, env); ++ ++ ++ if(NULL == arg_instance) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceResponseType->property_instance = arg_instance; ++ _ncRunInstanceResponseType->is_valid_instance = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instance ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_reset_instance( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceResponseType->property_instance != NULL) ++ { ++ ++ ++ adb_instanceType_free(_ncRunInstanceResponseType->property_instance, env); ++ _ncRunInstanceResponseType->property_instance = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceResponseType->is_valid_instance = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instance is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_is_instance_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceResponseType->is_valid_instance; ++ } ++ ++ /** ++ * Set instance to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_instance_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceResponseType_reset_instance(_ncRunInstanceResponseType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncRunInstanceResponseType.h' +--- old/cluster/generated/adb_ncRunInstanceResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncRunInstanceResponseType.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,416 @@ ++ ++ ++ #ifndef ADB_NCRUNINSTANCERESPONSETYPE_H ++ #define ADB_NCRUNINSTANCERESPONSETYPE_H ++ ++ /** ++ * adb_ncRunInstanceResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncRunInstanceResponseType class ++ */ ++ typedef struct adb_ncRunInstanceResponseType adb_ncRunInstanceResponseType_t; ++ ++ ++ #include "adb_instanceType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncRunInstanceResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncRunInstanceResponseType_t object ++ */ ++ adb_ncRunInstanceResponseType_t* AXIS2_CALL ++ adb_ncRunInstanceResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncRunInstanceResponseType_t object ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_free ( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceResponseType_get_correlationId( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_correlationId( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_reset_correlationId( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceResponseType_get_userId( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_userId( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_reset_userId( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_get_return( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_return( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_reset_return( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncRunInstanceResponseType_get_statusMessage( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_statusMessage( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_reset_statusMessage( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instance. ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return adb_instanceType_t* ++ */ ++ adb_instanceType_t* AXIS2_CALL ++ adb_ncRunInstanceResponseType_get_instance( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instance. ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_instance adb_instanceType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_instance( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ adb_instanceType_t* arg_instance); ++ ++ /** ++ * Resetter for instance ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_reset_instance( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_is_correlationId_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_is_userId_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_is_return_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_is_statusMessage_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_statusMessage_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether instance is nill ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_is_instance_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_deserialize( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncRunInstanceResponseType_declare_parent_namespaces( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param ncRunInstanceResponseType_om_node node to serialize from ++ * @param ncRunInstanceResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRunInstanceResponseType_serialize( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* ncRunInstanceResponseType_om_node, axiom_element_t *ncRunInstanceResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncRunInstanceResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCRUNINSTANCERESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncRunInstanceType.c' +--- old/cluster/generated/adb_ncRunInstanceType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncRunInstanceType.c 2010-01-05 01:00:43 +0000 +@@ -0,0 +1,7197 @@ ++ ++ ++ /** ++ * adb_ncRunInstanceType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncRunInstanceType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncRunInstanceType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncRunInstanceType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_char_t* property_imageId; ++ ++ ++ axis2_bool_t is_valid_imageId; ++ ++ ++ axis2_char_t* property_kernelId; ++ ++ ++ axis2_bool_t is_valid_kernelId; ++ ++ ++ axis2_char_t* property_ramdiskId; ++ ++ ++ axis2_bool_t is_valid_ramdiskId; ++ ++ ++ axis2_char_t* property_imageURL; ++ ++ ++ axis2_bool_t is_valid_imageURL; ++ ++ ++ axis2_char_t* property_kernelURL; ++ ++ ++ axis2_bool_t is_valid_kernelURL; ++ ++ ++ axis2_char_t* property_ramdiskURL; ++ ++ ++ axis2_bool_t is_valid_ramdiskURL; ++ ++ ++ axis2_char_t* property_instanceId; ++ ++ ++ axis2_bool_t is_valid_instanceId; ++ ++ ++ adb_virtualMachineType_t* property_instanceType; ++ ++ ++ axis2_bool_t is_valid_instanceType; ++ ++ ++ axis2_char_t* property_keyName; ++ ++ ++ axis2_bool_t is_valid_keyName; ++ ++ ++ axis2_char_t* property_publicMacAddress; ++ ++ ++ axis2_bool_t is_valid_publicMacAddress; ++ ++ ++ axis2_char_t* property_privateMacAddress; ++ ++ ++ axis2_bool_t is_valid_privateMacAddress; ++ ++ ++ axis2_char_t* property_reservationId; ++ ++ ++ axis2_bool_t is_valid_reservationId; ++ ++ ++ int property_vlan; ++ ++ ++ axis2_bool_t is_valid_vlan; ++ ++ ++ axis2_char_t* property_userData; ++ ++ ++ axis2_bool_t is_valid_userData; ++ ++ ++ axis2_char_t* property_launchIndex; ++ ++ ++ axis2_bool_t is_valid_launchIndex; ++ ++ ++ axutil_array_list_t* property_groupNames; ++ ++ ++ axis2_bool_t is_valid_groupNames; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_correlationId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_userId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_return_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_imageId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_kernelId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_ramdiskId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_imageURL_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_kernelURL_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_ramdiskURL_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_instanceId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_instanceType_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_keyName_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_publicMacAddress_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_privateMacAddress_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_reservationId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_vlan_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_userData_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_launchIndex_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_groupNames_nil_at( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_groupNames_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncRunInstanceType_t* AXIS2_CALL ++ adb_ncRunInstanceType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncRunInstanceType_t *_ncRunInstanceType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncRunInstanceType = (adb_ncRunInstanceType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncRunInstanceType_t)); ++ ++ if(NULL == _ncRunInstanceType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncRunInstanceType, 0, sizeof(adb_ncRunInstanceType_t)); ++ ++ _ncRunInstanceType->property_correlationId = NULL; ++ _ncRunInstanceType->is_valid_correlationId = AXIS2_FALSE; ++ _ncRunInstanceType->property_userId = NULL; ++ _ncRunInstanceType->is_valid_userId = AXIS2_FALSE; ++ _ncRunInstanceType->is_valid_return = AXIS2_FALSE; ++ _ncRunInstanceType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncRunInstanceType->property_imageId = NULL; ++ _ncRunInstanceType->is_valid_imageId = AXIS2_FALSE; ++ _ncRunInstanceType->property_kernelId = NULL; ++ _ncRunInstanceType->is_valid_kernelId = AXIS2_FALSE; ++ _ncRunInstanceType->property_ramdiskId = NULL; ++ _ncRunInstanceType->is_valid_ramdiskId = AXIS2_FALSE; ++ _ncRunInstanceType->property_imageURL = NULL; ++ _ncRunInstanceType->is_valid_imageURL = AXIS2_FALSE; ++ _ncRunInstanceType->property_kernelURL = NULL; ++ _ncRunInstanceType->is_valid_kernelURL = AXIS2_FALSE; ++ _ncRunInstanceType->property_ramdiskURL = NULL; ++ _ncRunInstanceType->is_valid_ramdiskURL = AXIS2_FALSE; ++ _ncRunInstanceType->property_instanceId = NULL; ++ _ncRunInstanceType->is_valid_instanceId = AXIS2_FALSE; ++ _ncRunInstanceType->property_instanceType = NULL; ++ _ncRunInstanceType->is_valid_instanceType = AXIS2_FALSE; ++ _ncRunInstanceType->property_keyName = NULL; ++ _ncRunInstanceType->is_valid_keyName = AXIS2_FALSE; ++ _ncRunInstanceType->property_publicMacAddress = NULL; ++ _ncRunInstanceType->is_valid_publicMacAddress = AXIS2_FALSE; ++ _ncRunInstanceType->property_privateMacAddress = NULL; ++ _ncRunInstanceType->is_valid_privateMacAddress = AXIS2_FALSE; ++ _ncRunInstanceType->property_reservationId = NULL; ++ _ncRunInstanceType->is_valid_reservationId = AXIS2_FALSE; ++ _ncRunInstanceType->is_valid_vlan = AXIS2_FALSE; ++ _ncRunInstanceType->property_userData = NULL; ++ _ncRunInstanceType->is_valid_userData = AXIS2_FALSE; ++ _ncRunInstanceType->property_launchIndex = NULL; ++ _ncRunInstanceType->is_valid_launchIndex = AXIS2_FALSE; ++ _ncRunInstanceType->property_groupNames = NULL; ++ _ncRunInstanceType->is_valid_groupNames = AXIS2_FALSE; ++ ++ ++ return _ncRunInstanceType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_free ( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ adb_ncRunInstanceType_reset_correlationId(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_userId(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_return(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_statusMessage(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_imageId(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_kernelId(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_ramdiskId(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_imageURL(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_kernelURL(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_ramdiskURL(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_instanceId(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_instanceType(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_keyName(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_publicMacAddress(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_privateMacAddress(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_reservationId(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_vlan(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_userData(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_launchIndex(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_groupNames(_ncRunInstanceType, env); ++ ++ ++ if(_ncRunInstanceType) ++ { ++ AXIS2_FREE(env->allocator, _ncRunInstanceType); ++ _ncRunInstanceType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_deserialize( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncRunInstanceType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_correlationId(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_correlationId(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_userId(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_userId(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncRunInstanceType_set_return(_ncRunInstanceType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncRunInstanceType_set_return(_ncRunInstanceType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_statusMessage(_ncRunInstanceType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building imageId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "imageId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_imageId(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element imageId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_imageId(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for imageId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element imageId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building kernelId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "kernelId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_kernelId(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element kernelId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_kernelId(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for kernelId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element kernelId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building ramdiskId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "ramdiskId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_ramdiskId(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element ramdiskId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_ramdiskId(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ramdiskId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building imageURL element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "imageURL", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_imageURL(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element imageURL"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_imageURL(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for imageURL "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element imageURL missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building kernelURL element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "kernelURL", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_kernelURL(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element kernelURL"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_kernelURL(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for kernelURL "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element kernelURL missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building ramdiskURL element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "ramdiskURL", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_ramdiskURL(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element ramdiskURL"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_ramdiskURL(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ramdiskURL "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_instanceId(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_instanceId(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element instanceId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceType element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceType", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_virtualMachineType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_virtualMachineType_create(env); ++ ++ status = adb_virtualMachineType_deserialize((adb_virtualMachineType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element instanceType"); ++ } ++ else ++ { ++ status = adb_ncRunInstanceType_set_instanceType(_ncRunInstanceType, env, ++ (adb_virtualMachineType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceType "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element instanceType missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building keyName element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "keyName", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_keyName(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element keyName"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_keyName(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for keyName "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element keyName missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building publicMacAddress element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "publicMacAddress", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_publicMacAddress(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element publicMacAddress"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_publicMacAddress(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for publicMacAddress "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element publicMacAddress missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building privateMacAddress element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "privateMacAddress", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_privateMacAddress(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element privateMacAddress"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_privateMacAddress(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for privateMacAddress "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element privateMacAddress missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building reservationId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "reservationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_reservationId(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element reservationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_reservationId(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for reservationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element reservationId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building vlan element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "vlan", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_vlan(_ncRunInstanceType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element vlan"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for vlan "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element vlan missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userData element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userData", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_userData(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userData"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_userData(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userData "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building launchIndex element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "launchIndex", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_launchIndex(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element launchIndex"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_launchIndex(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for launchIndex "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building groupNames array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building groupNames element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "groupNames", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value)); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element groupNames"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, "")); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for groupNames "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "groupNames (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_ncRunInstanceType_set_groupNames(_ncRunInstanceType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncRunInstanceType_declare_parent_namespaces( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRunInstanceType_serialize( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *text_value_6; ++ axis2_char_t *text_value_6_temp; ++ ++ axis2_char_t *text_value_7; ++ axis2_char_t *text_value_7_temp; ++ ++ axis2_char_t *text_value_8; ++ axis2_char_t *text_value_8_temp; ++ ++ axis2_char_t *text_value_9; ++ axis2_char_t *text_value_9_temp; ++ ++ axis2_char_t *text_value_10; ++ axis2_char_t *text_value_10_temp; ++ ++ axis2_char_t *text_value_11; ++ axis2_char_t *text_value_11_temp; ++ ++ axis2_char_t text_value_12[64]; ++ ++ axis2_char_t *text_value_13; ++ axis2_char_t *text_value_13_temp; ++ ++ axis2_char_t *text_value_14; ++ axis2_char_t *text_value_14_temp; ++ ++ axis2_char_t *text_value_15; ++ axis2_char_t *text_value_15_temp; ++ ++ axis2_char_t *text_value_16; ++ axis2_char_t *text_value_16_temp; ++ ++ axis2_char_t text_value_17[64]; ++ ++ axis2_char_t *text_value_18; ++ axis2_char_t *text_value_18_temp; ++ ++ axis2_char_t *text_value_19; ++ axis2_char_t *text_value_19_temp; ++ ++ axis2_char_t *text_value_20; ++ axis2_char_t *text_value_20_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncRunInstanceType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncRunInstanceType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncRunInstanceType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncRunInstanceType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_imageId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property imageId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("imageId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("imageId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing imageId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%simageId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _ncRunInstanceType->property_imageId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_kernelId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property kernelId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("kernelId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("kernelId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing kernelId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%skernelId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_6 = _ncRunInstanceType->property_kernelId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE); ++ if (text_value_6_temp) ++ { ++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp)); ++ AXIS2_FREE(env->allocator, text_value_6_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_ramdiskId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ramdiskId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ramdiskId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ramdiskId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sramdiskId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_7 = _ncRunInstanceType->property_ramdiskId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE); ++ if (text_value_7_temp) ++ { ++ axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp)); ++ AXIS2_FREE(env->allocator, text_value_7_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_imageURL) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property imageURL"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("imageURL"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("imageURL"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing imageURL element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%simageURL>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_8 = _ncRunInstanceType->property_imageURL; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE); ++ if (text_value_8_temp) ++ { ++ axutil_stream_write(stream, env, text_value_8_temp, axutil_strlen(text_value_8_temp)); ++ AXIS2_FREE(env->allocator, text_value_8_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_kernelURL) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property kernelURL"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("kernelURL"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("kernelURL"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing kernelURL element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%skernelURL>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_9 = _ncRunInstanceType->property_kernelURL; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_9_temp = axutil_xml_quote_string(env, text_value_9, AXIS2_TRUE); ++ if (text_value_9_temp) ++ { ++ axutil_stream_write(stream, env, text_value_9_temp, axutil_strlen(text_value_9_temp)); ++ AXIS2_FREE(env->allocator, text_value_9_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_9, axutil_strlen(text_value_9)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_ramdiskURL) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ramdiskURL"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ramdiskURL"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ramdiskURL element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sramdiskURL>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_10 = _ncRunInstanceType->property_ramdiskURL; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_10_temp = axutil_xml_quote_string(env, text_value_10, AXIS2_TRUE); ++ if (text_value_10_temp) ++ { ++ axutil_stream_write(stream, env, text_value_10_temp, axutil_strlen(text_value_10_temp)); ++ AXIS2_FREE(env->allocator, text_value_10_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_10, axutil_strlen(text_value_10)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_instanceId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_11 = _ncRunInstanceType->property_instanceId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_11_temp = axutil_xml_quote_string(env, text_value_11, AXIS2_TRUE); ++ if (text_value_11_temp) ++ { ++ axutil_stream_write(stream, env, text_value_11_temp, axutil_strlen(text_value_11_temp)); ++ AXIS2_FREE(env->allocator, text_value_11_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_11, axutil_strlen(text_value_11)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_instanceType) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceType"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceType"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceType"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceType element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceType", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ if(!adb_virtualMachineType_is_particle()) ++ { ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ } ++ ++ adb_virtualMachineType_serialize(_ncRunInstanceType->property_instanceType, ++ env, current_node, parent_element, ++ adb_virtualMachineType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index); ++ ++ if(!adb_virtualMachineType_is_particle()) ++ { ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_keyName) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property keyName"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("keyName"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("keyName"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing keyName element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%skeyName>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_13 = _ncRunInstanceType->property_keyName; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_13_temp = axutil_xml_quote_string(env, text_value_13, AXIS2_TRUE); ++ if (text_value_13_temp) ++ { ++ axutil_stream_write(stream, env, text_value_13_temp, axutil_strlen(text_value_13_temp)); ++ AXIS2_FREE(env->allocator, text_value_13_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_13, axutil_strlen(text_value_13)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_publicMacAddress) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property publicMacAddress"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("publicMacAddress"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("publicMacAddress"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing publicMacAddress element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%spublicMacAddress>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_14 = _ncRunInstanceType->property_publicMacAddress; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_14_temp = axutil_xml_quote_string(env, text_value_14, AXIS2_TRUE); ++ if (text_value_14_temp) ++ { ++ axutil_stream_write(stream, env, text_value_14_temp, axutil_strlen(text_value_14_temp)); ++ AXIS2_FREE(env->allocator, text_value_14_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_14, axutil_strlen(text_value_14)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_privateMacAddress) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property privateMacAddress"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("privateMacAddress"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("privateMacAddress"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing privateMacAddress element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sprivateMacAddress>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_15 = _ncRunInstanceType->property_privateMacAddress; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_15_temp = axutil_xml_quote_string(env, text_value_15, AXIS2_TRUE); ++ if (text_value_15_temp) ++ { ++ axutil_stream_write(stream, env, text_value_15_temp, axutil_strlen(text_value_15_temp)); ++ AXIS2_FREE(env->allocator, text_value_15_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_15, axutil_strlen(text_value_15)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_reservationId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property reservationId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("reservationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("reservationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing reservationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreservationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_16 = _ncRunInstanceType->property_reservationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_16_temp = axutil_xml_quote_string(env, text_value_16, AXIS2_TRUE); ++ if (text_value_16_temp) ++ { ++ axutil_stream_write(stream, env, text_value_16_temp, axutil_strlen(text_value_16_temp)); ++ AXIS2_FREE(env->allocator, text_value_16_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_16, axutil_strlen(text_value_16)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_vlan) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property vlan"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("vlan"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("vlan"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing vlan element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%svlan>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_17, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncRunInstanceType->property_vlan); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_17, axutil_strlen(text_value_17)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_userData) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userData"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userData"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userData element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserData>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_18 = _ncRunInstanceType->property_userData; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_18_temp = axutil_xml_quote_string(env, text_value_18, AXIS2_TRUE); ++ if (text_value_18_temp) ++ { ++ axutil_stream_write(stream, env, text_value_18_temp, axutil_strlen(text_value_18_temp)); ++ AXIS2_FREE(env->allocator, text_value_18_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_18, axutil_strlen(text_value_18)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_launchIndex) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("launchIndex"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("launchIndex"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing launchIndex element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%slaunchIndex>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_19 = _ncRunInstanceType->property_launchIndex; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_19_temp = axutil_xml_quote_string(env, text_value_19, AXIS2_TRUE); ++ if (text_value_19_temp) ++ { ++ axutil_stream_write(stream, env, text_value_19_temp, axutil_strlen(text_value_19_temp)); ++ AXIS2_FREE(env->allocator, text_value_19_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_19, axutil_strlen(text_value_19)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_groupNames) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("groupNames"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("groupNames"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing groupNames array ++ */ ++ if (_ncRunInstanceType->property_groupNames != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%sgroupNames>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_ncRunInstanceType->property_groupNames, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing groupNames element ++ */ ++ ++ ++ ++ text_value_20 = (axis2_char_t*)element; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_20_temp = axutil_xml_quote_string(env, text_value_20, AXIS2_TRUE); ++ if (text_value_20_temp) ++ { ++ axutil_stream_write(stream, env, text_value_20_temp, axutil_strlen(text_value_20_temp)); ++ AXIS2_FREE(env->allocator, text_value_20_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_20, axutil_strlen(text_value_20)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_correlationId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_correlationId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_correlationId && ++ arg_correlationId == _ncRunInstanceType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceType_reset_correlationId(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncRunInstanceType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_correlationId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_correlationId); ++ _ncRunInstanceType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_correlationId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_correlationId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_correlationId(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_userId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_userId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_userId && ++ arg_userId == _ncRunInstanceType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceType_reset_userId(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncRunInstanceType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_userId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_userId); ++ _ncRunInstanceType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_userId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_userId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_userId(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_get_return( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, (axis2_bool_t)0); ++ ++ ++ return _ncRunInstanceType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_return( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_return && ++ arg_return == _ncRunInstanceType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceType_reset_return(_ncRunInstanceType, env); ++ ++ _ncRunInstanceType->property_return = arg_return; ++ _ncRunInstanceType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_return( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ _ncRunInstanceType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_return_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_return_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_return(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncRunInstanceType_get_statusMessage( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, (int)0); ++ ++ ++ return _ncRunInstanceType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_statusMessage( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_statusMessage && ++ arg_statusMessage == _ncRunInstanceType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceType_reset_statusMessage(_ncRunInstanceType, env); ++ ++ _ncRunInstanceType->property_statusMessage = arg_statusMessage; ++ _ncRunInstanceType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_statusMessage( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ _ncRunInstanceType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_statusMessage_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_statusMessage_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_statusMessage(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for imageId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_imageId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_imageId; ++ } ++ ++ /** ++ * setter for imageId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_imageId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_imageId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_imageId && ++ arg_imageId == _ncRunInstanceType->property_imageId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_imageId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "imageId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncRunInstanceType_reset_imageId(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_imageId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_imageId = (axis2_char_t *)axutil_strdup(env, arg_imageId); ++ if(NULL == _ncRunInstanceType->property_imageId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for imageId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_imageId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for imageId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_imageId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_imageId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_imageId); ++ _ncRunInstanceType->property_imageId = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_imageId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether imageId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_imageId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_imageId; ++ } ++ ++ /** ++ * Set imageId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_imageId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_imageId(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for kernelId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_kernelId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_kernelId; ++ } ++ ++ /** ++ * setter for kernelId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_kernelId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_kernelId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_kernelId && ++ arg_kernelId == _ncRunInstanceType->property_kernelId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_kernelId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "kernelId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncRunInstanceType_reset_kernelId(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_kernelId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_kernelId = (axis2_char_t *)axutil_strdup(env, arg_kernelId); ++ if(NULL == _ncRunInstanceType->property_kernelId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for kernelId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_kernelId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for kernelId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_kernelId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_kernelId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_kernelId); ++ _ncRunInstanceType->property_kernelId = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_kernelId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether kernelId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_kernelId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_kernelId; ++ } ++ ++ /** ++ * Set kernelId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_kernelId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_kernelId(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for ramdiskId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_ramdiskId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_ramdiskId; ++ } ++ ++ /** ++ * setter for ramdiskId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_ramdiskId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_ramdiskId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_ramdiskId && ++ arg_ramdiskId == _ncRunInstanceType->property_ramdiskId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceType_reset_ramdiskId(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_ramdiskId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_ramdiskId = (axis2_char_t *)axutil_strdup(env, arg_ramdiskId); ++ if(NULL == _ncRunInstanceType->property_ramdiskId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for ramdiskId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_ramdiskId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ramdiskId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_ramdiskId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_ramdiskId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_ramdiskId); ++ _ncRunInstanceType->property_ramdiskId = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_ramdiskId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ramdiskId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_ramdiskId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_ramdiskId; ++ } ++ ++ /** ++ * Set ramdiskId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_ramdiskId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_ramdiskId(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for imageURL. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_imageURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_imageURL; ++ } ++ ++ /** ++ * setter for imageURL ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_imageURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_imageURL) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_imageURL && ++ arg_imageURL == _ncRunInstanceType->property_imageURL) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_imageURL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "imageURL is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncRunInstanceType_reset_imageURL(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_imageURL) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_imageURL = (axis2_char_t *)axutil_strdup(env, arg_imageURL); ++ if(NULL == _ncRunInstanceType->property_imageURL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for imageURL"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_imageURL = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for imageURL ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_imageURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_imageURL != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_imageURL); ++ _ncRunInstanceType->property_imageURL = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_imageURL = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether imageURL is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_imageURL_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_imageURL; ++ } ++ ++ /** ++ * Set imageURL to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_imageURL_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_imageURL(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for kernelURL. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_kernelURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_kernelURL; ++ } ++ ++ /** ++ * setter for kernelURL ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_kernelURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_kernelURL) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_kernelURL && ++ arg_kernelURL == _ncRunInstanceType->property_kernelURL) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_kernelURL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "kernelURL is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncRunInstanceType_reset_kernelURL(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_kernelURL) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_kernelURL = (axis2_char_t *)axutil_strdup(env, arg_kernelURL); ++ if(NULL == _ncRunInstanceType->property_kernelURL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for kernelURL"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_kernelURL = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for kernelURL ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_kernelURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_kernelURL != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_kernelURL); ++ _ncRunInstanceType->property_kernelURL = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_kernelURL = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether kernelURL is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_kernelURL_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_kernelURL; ++ } ++ ++ /** ++ * Set kernelURL to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_kernelURL_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_kernelURL(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for ramdiskURL. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_ramdiskURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_ramdiskURL; ++ } ++ ++ /** ++ * setter for ramdiskURL ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_ramdiskURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_ramdiskURL) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_ramdiskURL && ++ arg_ramdiskURL == _ncRunInstanceType->property_ramdiskURL) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceType_reset_ramdiskURL(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_ramdiskURL) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_ramdiskURL = (axis2_char_t *)axutil_strdup(env, arg_ramdiskURL); ++ if(NULL == _ncRunInstanceType->property_ramdiskURL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for ramdiskURL"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_ramdiskURL = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ramdiskURL ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_ramdiskURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_ramdiskURL != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_ramdiskURL); ++ _ncRunInstanceType->property_ramdiskURL = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_ramdiskURL = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ramdiskURL is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_ramdiskURL_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_ramdiskURL; ++ } ++ ++ /** ++ * Set ramdiskURL to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_ramdiskURL_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_ramdiskURL(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_instanceId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_instanceId; ++ } ++ ++ /** ++ * setter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_instanceId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_instanceId && ++ arg_instanceId == _ncRunInstanceType->property_instanceId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncRunInstanceType_reset_instanceId(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId); ++ if(NULL == _ncRunInstanceType->property_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_instanceId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_instanceId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_instanceId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_instanceId); ++ _ncRunInstanceType->property_instanceId = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_instanceId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_instanceId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_instanceId; ++ } ++ ++ /** ++ * Set instanceId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_instanceId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_instanceId(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceType. ++ */ ++ adb_virtualMachineType_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_instanceType( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_instanceType; ++ } ++ ++ /** ++ * setter for instanceType ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_instanceType( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ adb_virtualMachineType_t* arg_instanceType) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_instanceType && ++ arg_instanceType == _ncRunInstanceType->property_instanceType) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instanceType) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceType is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncRunInstanceType_reset_instanceType(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_instanceType) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_instanceType = arg_instanceType; ++ _ncRunInstanceType->is_valid_instanceType = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceType ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_instanceType( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_instanceType != NULL) ++ { ++ ++ ++ adb_virtualMachineType_free(_ncRunInstanceType->property_instanceType, env); ++ _ncRunInstanceType->property_instanceType = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_instanceType = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceType is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_instanceType_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_instanceType; ++ } ++ ++ /** ++ * Set instanceType to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_instanceType_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_instanceType(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for keyName. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_keyName( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_keyName; ++ } ++ ++ /** ++ * setter for keyName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_keyName( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_keyName) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_keyName && ++ arg_keyName == _ncRunInstanceType->property_keyName) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_keyName) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "keyName is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncRunInstanceType_reset_keyName(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_keyName) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_keyName = (axis2_char_t *)axutil_strdup(env, arg_keyName); ++ if(NULL == _ncRunInstanceType->property_keyName) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for keyName"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_keyName = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for keyName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_keyName( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_keyName != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_keyName); ++ _ncRunInstanceType->property_keyName = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_keyName = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether keyName is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_keyName_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_keyName; ++ } ++ ++ /** ++ * Set keyName to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_keyName_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_keyName(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for publicMacAddress. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_publicMacAddress( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_publicMacAddress; ++ } ++ ++ /** ++ * setter for publicMacAddress ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_publicMacAddress( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_publicMacAddress) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_publicMacAddress && ++ arg_publicMacAddress == _ncRunInstanceType->property_publicMacAddress) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_publicMacAddress) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "publicMacAddress is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncRunInstanceType_reset_publicMacAddress(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_publicMacAddress) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_publicMacAddress = (axis2_char_t *)axutil_strdup(env, arg_publicMacAddress); ++ if(NULL == _ncRunInstanceType->property_publicMacAddress) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for publicMacAddress"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_publicMacAddress = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for publicMacAddress ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_publicMacAddress( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_publicMacAddress != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_publicMacAddress); ++ _ncRunInstanceType->property_publicMacAddress = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_publicMacAddress = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether publicMacAddress is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_publicMacAddress_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_publicMacAddress; ++ } ++ ++ /** ++ * Set publicMacAddress to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_publicMacAddress_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_publicMacAddress(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for privateMacAddress. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_privateMacAddress( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_privateMacAddress; ++ } ++ ++ /** ++ * setter for privateMacAddress ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_privateMacAddress( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_privateMacAddress) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_privateMacAddress && ++ arg_privateMacAddress == _ncRunInstanceType->property_privateMacAddress) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_privateMacAddress) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "privateMacAddress is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncRunInstanceType_reset_privateMacAddress(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_privateMacAddress) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_privateMacAddress = (axis2_char_t *)axutil_strdup(env, arg_privateMacAddress); ++ if(NULL == _ncRunInstanceType->property_privateMacAddress) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for privateMacAddress"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_privateMacAddress = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for privateMacAddress ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_privateMacAddress( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_privateMacAddress != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_privateMacAddress); ++ _ncRunInstanceType->property_privateMacAddress = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_privateMacAddress = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether privateMacAddress is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_privateMacAddress_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_privateMacAddress; ++ } ++ ++ /** ++ * Set privateMacAddress to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_privateMacAddress_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_privateMacAddress(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for reservationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_reservationId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_reservationId; ++ } ++ ++ /** ++ * setter for reservationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_reservationId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_reservationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_reservationId && ++ arg_reservationId == _ncRunInstanceType->property_reservationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_reservationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "reservationId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncRunInstanceType_reset_reservationId(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_reservationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_reservationId = (axis2_char_t *)axutil_strdup(env, arg_reservationId); ++ if(NULL == _ncRunInstanceType->property_reservationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for reservationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_reservationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for reservationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_reservationId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_reservationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_reservationId); ++ _ncRunInstanceType->property_reservationId = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_reservationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether reservationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_reservationId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_reservationId; ++ } ++ ++ /** ++ * Set reservationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_reservationId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_reservationId(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for vlan. ++ */ ++ int AXIS2_CALL ++ adb_ncRunInstanceType_get_vlan( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, (int)0); ++ ++ ++ return _ncRunInstanceType->property_vlan; ++ } ++ ++ /** ++ * setter for vlan ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_vlan( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const int arg_vlan) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_vlan && ++ arg_vlan == _ncRunInstanceType->property_vlan) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceType_reset_vlan(_ncRunInstanceType, env); ++ ++ _ncRunInstanceType->property_vlan = arg_vlan; ++ _ncRunInstanceType->is_valid_vlan = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for vlan ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_vlan( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ _ncRunInstanceType->is_valid_vlan = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether vlan is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_vlan_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_vlan; ++ } ++ ++ /** ++ * Set vlan to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_vlan_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_vlan(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userData. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_userData( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_userData; ++ } ++ ++ /** ++ * setter for userData ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_userData( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userData) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_userData && ++ arg_userData == _ncRunInstanceType->property_userData) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceType_reset_userData(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_userData) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_userData = (axis2_char_t *)axutil_strdup(env, arg_userData); ++ if(NULL == _ncRunInstanceType->property_userData) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userData"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_userData = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userData ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_userData( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_userData != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_userData); ++ _ncRunInstanceType->property_userData = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_userData = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userData is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_userData_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_userData; ++ } ++ ++ /** ++ * Set userData to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_userData_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_userData(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for launchIndex. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_launchIndex( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_launchIndex; ++ } ++ ++ /** ++ * setter for launchIndex ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_launchIndex( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_launchIndex) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_launchIndex && ++ arg_launchIndex == _ncRunInstanceType->property_launchIndex) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceType_reset_launchIndex(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_launchIndex) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_launchIndex = (axis2_char_t *)axutil_strdup(env, arg_launchIndex); ++ if(NULL == _ncRunInstanceType->property_launchIndex) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for launchIndex"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_launchIndex = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for launchIndex ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_launchIndex( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_launchIndex != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_launchIndex); ++ _ncRunInstanceType->property_launchIndex = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_launchIndex = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether launchIndex is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_launchIndex_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_launchIndex; ++ } ++ ++ /** ++ * Set launchIndex to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_launchIndex_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_launchIndex(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for groupNames. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_groupNames( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_groupNames; ++ } ++ ++ /** ++ * setter for groupNames ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_groupNames( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_groupNames) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_groupNames && ++ arg_groupNames == _ncRunInstanceType->property_groupNames) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_groupNames, env); ++ ++ if (size > 64) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "groupNames has exceed the maxOccurs(64)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "groupNames has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_groupNames, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_ncRunInstanceType_reset_groupNames(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_groupNames) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_groupNames = arg_groupNames; ++ if(non_nil_exists) ++ { ++ _ncRunInstanceType->is_valid_groupNames = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of groupNames. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_groupNames_at( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, int i) ++ { ++ axis2_char_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ if(_ncRunInstanceType->property_groupNames == NULL) ++ { ++ return (axis2_char_t*)0; ++ } ++ ret_val = (axis2_char_t*)axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of groupNames. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_groupNames_at( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_groupNames) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if( _ncRunInstanceType->is_valid_groupNames && ++ _ncRunInstanceType->property_groupNames && ++ ++ arg_groupNames == (axis2_char_t*)axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_groupNames) ++ { ++ if(_ncRunInstanceType->property_groupNames != NULL) ++ { ++ size = axutil_array_list_size(_ncRunInstanceType->property_groupNames, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of groupNames is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_ncRunInstanceType->property_groupNames == NULL) ++ { ++ _ncRunInstanceType->property_groupNames = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _ncRunInstanceType->is_valid_groupNames = AXIS2_FALSE; ++ axutil_array_list_set(_ncRunInstanceType->property_groupNames , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_ncRunInstanceType->property_groupNames , env, i, axutil_strdup(env, arg_groupNames)); ++ _ncRunInstanceType->is_valid_groupNames = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to groupNames. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_add_groupNames( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_groupNames) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_groupNames) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_ncRunInstanceType->property_groupNames == NULL) ++ { ++ _ncRunInstanceType->property_groupNames = axutil_array_list_create(env, 10); ++ } ++ if(_ncRunInstanceType->property_groupNames == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for groupNames"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_ncRunInstanceType->property_groupNames , env, axutil_strdup(env, arg_groupNames)); ++ _ncRunInstanceType->is_valid_groupNames = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the groupNames array. ++ */ ++ int AXIS2_CALL ++ adb_ncRunInstanceType_sizeof_groupNames( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, -1); ++ if(_ncRunInstanceType->property_groupNames == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_ncRunInstanceType->property_groupNames, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_remove_groupNames_at( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_ncRunInstanceType_set_groupNames_nil_at(_ncRunInstanceType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for groupNames ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_groupNames( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ if (_ncRunInstanceType->property_groupNames != NULL) ++ { ++ count = axutil_array_list_size(_ncRunInstanceType->property_groupNames, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_ncRunInstanceType->property_groupNames, env); ++ } ++ _ncRunInstanceType->is_valid_groupNames = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether groupNames is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_groupNames_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_groupNames; ++ } ++ ++ /** ++ * Set groupNames to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_groupNames_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_groupNames(_ncRunInstanceType, env); ++ } ++ ++ ++ /** ++ * Check whether groupNames is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_groupNames_nil_at( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return (_ncRunInstanceType->is_valid_groupNames == AXIS2_FALSE || ++ NULL == _ncRunInstanceType->property_groupNames || ++ NULL == axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i)); ++ } ++ ++ /** ++ * Set groupNames to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_groupNames_nil_at( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->property_groupNames == NULL || ++ _ncRunInstanceType->is_valid_groupNames == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_ncRunInstanceType->property_groupNames, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of groupNames is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_ncRunInstanceType->property_groupNames == NULL) ++ { ++ _ncRunInstanceType->is_valid_groupNames = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _ncRunInstanceType->is_valid_groupNames = AXIS2_FALSE; ++ axutil_array_list_set(_ncRunInstanceType->property_groupNames , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_ncRunInstanceType->property_groupNames , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncRunInstanceType.h' +--- old/cluster/generated/adb_ncRunInstanceType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncRunInstanceType.h 2010-01-05 01:00:43 +0000 +@@ -0,0 +1,1320 @@ ++ ++ ++ #ifndef ADB_NCRUNINSTANCETYPE_H ++ #define ADB_NCRUNINSTANCETYPE_H ++ ++ /** ++ * adb_ncRunInstanceType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncRunInstanceType class ++ */ ++ typedef struct adb_ncRunInstanceType adb_ncRunInstanceType_t; ++ ++ ++ #include "adb_virtualMachineType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncRunInstanceType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncRunInstanceType_t object ++ */ ++ adb_ncRunInstanceType_t* AXIS2_CALL ++ adb_ncRunInstanceType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncRunInstanceType_t object ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_free ( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_correlationId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_correlationId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_correlationId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_userId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_userId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_userId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_get_return( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_return( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_return( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncRunInstanceType_get_statusMessage( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_statusMessage( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_statusMessage( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for imageId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_imageId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for imageId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_imageId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_imageId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_imageId); ++ ++ /** ++ * Resetter for imageId ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_imageId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for kernelId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_kernelId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for kernelId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_kernelId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_kernelId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_kernelId); ++ ++ /** ++ * Resetter for kernelId ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_kernelId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for ramdiskId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_ramdiskId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ramdiskId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_ramdiskId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_ramdiskId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_ramdiskId); ++ ++ /** ++ * Resetter for ramdiskId ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_ramdiskId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for imageURL. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_imageURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for imageURL. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_imageURL axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_imageURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_imageURL); ++ ++ /** ++ * Resetter for imageURL ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_imageURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for kernelURL. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_kernelURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for kernelURL. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_kernelURL axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_kernelURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_kernelURL); ++ ++ /** ++ * Resetter for kernelURL ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_kernelURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for ramdiskURL. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_ramdiskURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ramdiskURL. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_ramdiskURL axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_ramdiskURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_ramdiskURL); ++ ++ /** ++ * Resetter for ramdiskURL ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_ramdiskURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_instanceId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_instanceId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId); ++ ++ /** ++ * Resetter for instanceId ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_instanceId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceType. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return adb_virtualMachineType_t* ++ */ ++ adb_virtualMachineType_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_instanceType( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceType. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceType adb_virtualMachineType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_instanceType( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ adb_virtualMachineType_t* arg_instanceType); ++ ++ /** ++ * Resetter for instanceType ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_instanceType( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for keyName. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_keyName( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for keyName. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_keyName axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_keyName( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_keyName); ++ ++ /** ++ * Resetter for keyName ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_keyName( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for publicMacAddress. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_publicMacAddress( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for publicMacAddress. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_publicMacAddress axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_publicMacAddress( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_publicMacAddress); ++ ++ /** ++ * Resetter for publicMacAddress ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_publicMacAddress( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for privateMacAddress. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_privateMacAddress( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for privateMacAddress. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_privateMacAddress axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_privateMacAddress( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_privateMacAddress); ++ ++ /** ++ * Resetter for privateMacAddress ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_privateMacAddress( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for reservationId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_reservationId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for reservationId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_reservationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_reservationId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_reservationId); ++ ++ /** ++ * Resetter for reservationId ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_reservationId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for vlan. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncRunInstanceType_get_vlan( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for vlan. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_vlan int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_vlan( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const int arg_vlan); ++ ++ /** ++ * Resetter for vlan ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_vlan( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userData. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_userData( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userData. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_userData axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_userData( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userData); ++ ++ /** ++ * Resetter for userData ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_userData( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for launchIndex. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_launchIndex( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for launchIndex. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_launchIndex axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_launchIndex( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_launchIndex); ++ ++ /** ++ * Resetter for launchIndex ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_launchIndex( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for groupNames. Deprecated for array types, Use adb_ncRunInstanceType_get_groupNames_at instead ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return Array of axis2_char_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_groupNames( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for groupNames.Deprecated for array types, Use adb_ncRunInstanceType_set_groupNames_at ++ * or adb_ncRunInstanceType_add_groupNames instead. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_groupNames Array of axis2_char_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_groupNames( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_groupNames); ++ ++ /** ++ * Resetter for groupNames ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_groupNames( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of groupNames. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_groupNames_at( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of groupNames. (If the ith already exist, it will be replaced) ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_groupNames element to set axis2_char_t* to the array ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_groupNames_at( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_groupNames); ++ ++ ++ /** ++ * Add to groupNames. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_groupNames element to add axis2_char_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_add_groupNames( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_groupNames); ++ ++ /** ++ * Get the size of the groupNames array. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the groupNames array. ++ */ ++ int AXIS2_CALL ++ adb_ncRunInstanceType_sizeof_groupNames( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of groupNames. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_remove_groupNames_at( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_correlationId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_userId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_return_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_statusMessage_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_statusMessage_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether imageId is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_imageId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether kernelId is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_kernelId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether ramdiskId is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_ramdiskId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether imageURL is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_imageURL_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether kernelURL is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_kernelURL_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether ramdiskURL is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_ramdiskURL_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether instanceId is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_instanceId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether instanceType is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_instanceType_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether keyName is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_keyName_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether publicMacAddress is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_publicMacAddress_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether privateMacAddress is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_privateMacAddress_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether reservationId is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_reservationId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether vlan is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_vlan_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userData is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_userData_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether launchIndex is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_launchIndex_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether groupNames is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_groupNames_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether groupNames is nill at i ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_groupNames_nil_at( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set groupNames to nill at i ++ * @param _ncRunInstanceType _ adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_groupNames_nil_at( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_deserialize( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncRunInstanceType_declare_parent_namespaces( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param ncRunInstanceType_om_node node to serialize from ++ * @param ncRunInstanceType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRunInstanceType_serialize( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ axiom_node_t* ncRunInstanceType_om_node, axiom_element_t *ncRunInstanceType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncRunInstanceType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCRUNINSTANCETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncStartNetwork.c' +--- old/cluster/generated/adb_ncStartNetwork.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncStartNetwork.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncStartNetwork.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncStartNetwork.h" ++ ++ /* ++ * implmentation of the ncStartNetwork|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncStartNetwork ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncStartNetworkType_t* property_ncStartNetwork; ++ ++ ++ axis2_bool_t is_valid_ncStartNetwork; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncStartNetwork_t* AXIS2_CALL ++ adb_ncStartNetwork_create( ++ const axutil_env_t *env) ++ { ++ adb_ncStartNetwork_t *_ncStartNetwork = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncStartNetwork = (adb_ncStartNetwork_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncStartNetwork_t)); ++ ++ if(NULL == _ncStartNetwork) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncStartNetwork, 0, sizeof(adb_ncStartNetwork_t)); ++ ++ _ncStartNetwork->property_ncStartNetwork = NULL; ++ _ncStartNetwork->is_valid_ncStartNetwork = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncStartNetwork", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncStartNetwork->qname = qname; ++ ++ ++ return _ncStartNetwork; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetwork_free ( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetwork, AXIS2_FAILURE); ++ ++ adb_ncStartNetwork_reset_ncStartNetwork(_ncStartNetwork, env); ++ ++ if(_ncStartNetwork->qname) ++ { ++ axutil_qname_free (_ncStartNetwork->qname, env); ++ _ncStartNetwork->qname = NULL; ++ } ++ ++ ++ if(_ncStartNetwork) ++ { ++ AXIS2_FREE(env->allocator, _ncStartNetwork); ++ _ncStartNetwork = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetwork_deserialize( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetwork, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncStartNetwork : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncStartNetwork-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncStartNetwork : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncStartNetwork-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncStartNetwork element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncStartNetwork", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncStartNetworkType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncStartNetworkType_create(env); ++ ++ status = adb_ncStartNetworkType_deserialize((adb_ncStartNetworkType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncStartNetwork"); ++ } ++ else ++ { ++ status = adb_ncStartNetwork_set_ncStartNetwork(_ncStartNetwork, env, ++ (adb_ncStartNetworkType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncStartNetwork "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncStartNetwork missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetwork_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncStartNetwork_declare_parent_namespaces( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncStartNetwork_serialize( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetwork, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncStartNetwork", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetwork->is_valid_ncStartNetwork) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncStartNetwork") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncStartNetwork xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncStartNetwork"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncStartNetwork"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncStartNetwork element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncStartNetwork", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncStartNetworkType_serialize(_ncStartNetwork->property_ncStartNetwork, ++ env, current_node, parent_element, ++ adb_ncStartNetworkType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncStartNetwork. ++ */ ++ adb_ncStartNetworkType_t* AXIS2_CALL ++ adb_ncStartNetwork_get_ncStartNetwork( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetwork, NULL); ++ ++ ++ return _ncStartNetwork->property_ncStartNetwork; ++ } ++ ++ /** ++ * setter for ncStartNetwork ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetwork_set_ncStartNetwork( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env, ++ adb_ncStartNetworkType_t* arg_ncStartNetwork) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetwork, AXIS2_FAILURE); ++ ++ if(_ncStartNetwork->is_valid_ncStartNetwork && ++ arg_ncStartNetwork == _ncStartNetwork->property_ncStartNetwork) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetwork_reset_ncStartNetwork(_ncStartNetwork, env); ++ ++ ++ if(NULL == arg_ncStartNetwork) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncStartNetwork->property_ncStartNetwork = arg_ncStartNetwork; ++ _ncStartNetwork->is_valid_ncStartNetwork = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncStartNetwork ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetwork_reset_ncStartNetwork( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetwork, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncStartNetwork->property_ncStartNetwork != NULL) ++ { ++ ++ ++ adb_ncStartNetworkType_free(_ncStartNetwork->property_ncStartNetwork, env); ++ _ncStartNetwork->property_ncStartNetwork = NULL; ++ } ++ ++ ++ ++ _ncStartNetwork->is_valid_ncStartNetwork = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncStartNetwork is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetwork_is_ncStartNetwork_nil( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetwork, AXIS2_TRUE); ++ ++ return !_ncStartNetwork->is_valid_ncStartNetwork; ++ } ++ ++ /** ++ * Set ncStartNetwork to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetwork_set_ncStartNetwork_nil( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetwork_reset_ncStartNetwork(_ncStartNetwork, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncStartNetwork.h' +--- old/cluster/generated/adb_ncStartNetwork.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncStartNetwork.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCSTARTNETWORK_H ++ #define ADB_NCSTARTNETWORK_H ++ ++ /** ++ * adb_ncStartNetwork.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncStartNetwork class ++ */ ++ typedef struct adb_ncStartNetwork adb_ncStartNetwork_t; ++ ++ ++ #include "adb_ncStartNetworkType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncStartNetwork_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncStartNetwork_t object ++ */ ++ adb_ncStartNetwork_t* AXIS2_CALL ++ adb_ncStartNetwork_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncStartNetwork_t object ++ * @param _ncStartNetwork adb_ncStartNetwork_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetwork_free ( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncStartNetwork. ++ * @param _ncStartNetwork adb_ncStartNetwork_t object ++ * @param env pointer to environment struct ++ * @return adb_ncStartNetworkType_t* ++ */ ++ adb_ncStartNetworkType_t* AXIS2_CALL ++ adb_ncStartNetwork_get_ncStartNetwork( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncStartNetwork. ++ * @param _ncStartNetwork adb_ncStartNetwork_t object ++ * @param env pointer to environment struct ++ * @param arg_ncStartNetwork adb_ncStartNetworkType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetwork_set_ncStartNetwork( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env, ++ adb_ncStartNetworkType_t* arg_ncStartNetwork); ++ ++ /** ++ * Resetter for ncStartNetwork ++ * @param _ncStartNetwork adb_ncStartNetwork_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetwork_reset_ncStartNetwork( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncStartNetwork is nill ++ * @param _ncStartNetwork adb_ncStartNetwork_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetwork_is_ncStartNetwork_nil( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncStartNetwork to nill (currently the same as reset) ++ * @param _ncStartNetwork adb_ncStartNetwork_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetwork_set_ncStartNetwork_nil( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncStartNetwork adb_ncStartNetwork_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetwork_deserialize( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncStartNetwork adb_ncStartNetwork_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncStartNetwork_declare_parent_namespaces( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncStartNetwork adb_ncStartNetwork_t object ++ * @param env pointer to environment struct ++ * @param ncStartNetwork_om_node node to serialize from ++ * @param ncStartNetwork_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncStartNetwork_serialize( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env, ++ axiom_node_t* ncStartNetwork_om_node, axiom_element_t *ncStartNetwork_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncStartNetwork is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetwork_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCSTARTNETWORK_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncStartNetworkResponse.c' +--- old/cluster/generated/adb_ncStartNetworkResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncStartNetworkResponse.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncStartNetworkResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncStartNetworkResponse.h" ++ ++ /* ++ * implmentation of the ncStartNetworkResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncStartNetworkResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncStartNetworkResponseType_t* property_ncStartNetworkResponse; ++ ++ ++ axis2_bool_t is_valid_ncStartNetworkResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncStartNetworkResponse_t* AXIS2_CALL ++ adb_ncStartNetworkResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_ncStartNetworkResponse_t *_ncStartNetworkResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncStartNetworkResponse = (adb_ncStartNetworkResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncStartNetworkResponse_t)); ++ ++ if(NULL == _ncStartNetworkResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncStartNetworkResponse, 0, sizeof(adb_ncStartNetworkResponse_t)); ++ ++ _ncStartNetworkResponse->property_ncStartNetworkResponse = NULL; ++ _ncStartNetworkResponse->is_valid_ncStartNetworkResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncStartNetworkResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncStartNetworkResponse->qname = qname; ++ ++ ++ return _ncStartNetworkResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponse_free ( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponse, AXIS2_FAILURE); ++ ++ adb_ncStartNetworkResponse_reset_ncStartNetworkResponse(_ncStartNetworkResponse, env); ++ ++ if(_ncStartNetworkResponse->qname) ++ { ++ axutil_qname_free (_ncStartNetworkResponse->qname, env); ++ _ncStartNetworkResponse->qname = NULL; ++ } ++ ++ ++ if(_ncStartNetworkResponse) ++ { ++ AXIS2_FREE(env->allocator, _ncStartNetworkResponse); ++ _ncStartNetworkResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponse_deserialize( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncStartNetworkResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncStartNetworkResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncStartNetworkResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncStartNetworkResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncStartNetworkResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncStartNetworkResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncStartNetworkResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncStartNetworkResponseType_create(env); ++ ++ status = adb_ncStartNetworkResponseType_deserialize((adb_ncStartNetworkResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncStartNetworkResponse"); ++ } ++ else ++ { ++ status = adb_ncStartNetworkResponse_set_ncStartNetworkResponse(_ncStartNetworkResponse, env, ++ (adb_ncStartNetworkResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncStartNetworkResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncStartNetworkResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncStartNetworkResponse_declare_parent_namespaces( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncStartNetworkResponse_serialize( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncStartNetworkResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkResponse->is_valid_ncStartNetworkResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncStartNetworkResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncStartNetworkResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncStartNetworkResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncStartNetworkResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncStartNetworkResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncStartNetworkResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncStartNetworkResponseType_serialize(_ncStartNetworkResponse->property_ncStartNetworkResponse, ++ env, current_node, parent_element, ++ adb_ncStartNetworkResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncStartNetworkResponse. ++ */ ++ adb_ncStartNetworkResponseType_t* AXIS2_CALL ++ adb_ncStartNetworkResponse_get_ncStartNetworkResponse( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponse, NULL); ++ ++ ++ return _ncStartNetworkResponse->property_ncStartNetworkResponse; ++ } ++ ++ /** ++ * setter for ncStartNetworkResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponse_set_ncStartNetworkResponse( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env, ++ adb_ncStartNetworkResponseType_t* arg_ncStartNetworkResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponse, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkResponse->is_valid_ncStartNetworkResponse && ++ arg_ncStartNetworkResponse == _ncStartNetworkResponse->property_ncStartNetworkResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetworkResponse_reset_ncStartNetworkResponse(_ncStartNetworkResponse, env); ++ ++ ++ if(NULL == arg_ncStartNetworkResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncStartNetworkResponse->property_ncStartNetworkResponse = arg_ncStartNetworkResponse; ++ _ncStartNetworkResponse->is_valid_ncStartNetworkResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncStartNetworkResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponse_reset_ncStartNetworkResponse( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncStartNetworkResponse->property_ncStartNetworkResponse != NULL) ++ { ++ ++ ++ adb_ncStartNetworkResponseType_free(_ncStartNetworkResponse->property_ncStartNetworkResponse, env); ++ _ncStartNetworkResponse->property_ncStartNetworkResponse = NULL; ++ } ++ ++ ++ ++ _ncStartNetworkResponse->is_valid_ncStartNetworkResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncStartNetworkResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponse_is_ncStartNetworkResponse_nil( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponse, AXIS2_TRUE); ++ ++ return !_ncStartNetworkResponse->is_valid_ncStartNetworkResponse; ++ } ++ ++ /** ++ * Set ncStartNetworkResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponse_set_ncStartNetworkResponse_nil( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkResponse_reset_ncStartNetworkResponse(_ncStartNetworkResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncStartNetworkResponse.h' +--- old/cluster/generated/adb_ncStartNetworkResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncStartNetworkResponse.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCSTARTNETWORKRESPONSE_H ++ #define ADB_NCSTARTNETWORKRESPONSE_H ++ ++ /** ++ * adb_ncStartNetworkResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncStartNetworkResponse class ++ */ ++ typedef struct adb_ncStartNetworkResponse adb_ncStartNetworkResponse_t; ++ ++ ++ #include "adb_ncStartNetworkResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncStartNetworkResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncStartNetworkResponse_t object ++ */ ++ adb_ncStartNetworkResponse_t* AXIS2_CALL ++ adb_ncStartNetworkResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncStartNetworkResponse_t object ++ * @param _ncStartNetworkResponse adb_ncStartNetworkResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponse_free ( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncStartNetworkResponse. ++ * @param _ncStartNetworkResponse adb_ncStartNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_ncStartNetworkResponseType_t* ++ */ ++ adb_ncStartNetworkResponseType_t* AXIS2_CALL ++ adb_ncStartNetworkResponse_get_ncStartNetworkResponse( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncStartNetworkResponse. ++ * @param _ncStartNetworkResponse adb_ncStartNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_ncStartNetworkResponse adb_ncStartNetworkResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponse_set_ncStartNetworkResponse( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env, ++ adb_ncStartNetworkResponseType_t* arg_ncStartNetworkResponse); ++ ++ /** ++ * Resetter for ncStartNetworkResponse ++ * @param _ncStartNetworkResponse adb_ncStartNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponse_reset_ncStartNetworkResponse( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncStartNetworkResponse is nill ++ * @param _ncStartNetworkResponse adb_ncStartNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponse_is_ncStartNetworkResponse_nil( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncStartNetworkResponse to nill (currently the same as reset) ++ * @param _ncStartNetworkResponse adb_ncStartNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponse_set_ncStartNetworkResponse_nil( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncStartNetworkResponse adb_ncStartNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponse_deserialize( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncStartNetworkResponse adb_ncStartNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncStartNetworkResponse_declare_parent_namespaces( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncStartNetworkResponse adb_ncStartNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @param ncStartNetworkResponse_om_node node to serialize from ++ * @param ncStartNetworkResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncStartNetworkResponse_serialize( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env, ++ axiom_node_t* ncStartNetworkResponse_om_node, axiom_element_t *ncStartNetworkResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncStartNetworkResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCSTARTNETWORKRESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncStartNetworkResponseType.c' +--- old/cluster/generated/adb_ncStartNetworkResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncStartNetworkResponseType.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,1702 @@ ++ ++ ++ /** ++ * adb_ncStartNetworkResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncStartNetworkResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncStartNetworkResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncStartNetworkResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_char_t* property_networkStatus; ++ ++ ++ axis2_bool_t is_valid_networkStatus; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_correlationId_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_userId_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_return_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_networkStatus_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncStartNetworkResponseType_t* AXIS2_CALL ++ adb_ncStartNetworkResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncStartNetworkResponseType_t *_ncStartNetworkResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncStartNetworkResponseType = (adb_ncStartNetworkResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncStartNetworkResponseType_t)); ++ ++ if(NULL == _ncStartNetworkResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncStartNetworkResponseType, 0, sizeof(adb_ncStartNetworkResponseType_t)); ++ ++ _ncStartNetworkResponseType->property_correlationId = NULL; ++ _ncStartNetworkResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _ncStartNetworkResponseType->property_userId = NULL; ++ _ncStartNetworkResponseType->is_valid_userId = AXIS2_FALSE; ++ _ncStartNetworkResponseType->is_valid_return = AXIS2_FALSE; ++ _ncStartNetworkResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncStartNetworkResponseType->property_networkStatus = NULL; ++ _ncStartNetworkResponseType->is_valid_networkStatus = AXIS2_FALSE; ++ ++ ++ return _ncStartNetworkResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_free ( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE); ++ ++ adb_ncStartNetworkResponseType_reset_correlationId(_ncStartNetworkResponseType, env); ++ adb_ncStartNetworkResponseType_reset_userId(_ncStartNetworkResponseType, env); ++ adb_ncStartNetworkResponseType_reset_return(_ncStartNetworkResponseType, env); ++ adb_ncStartNetworkResponseType_reset_statusMessage(_ncStartNetworkResponseType, env); ++ adb_ncStartNetworkResponseType_reset_networkStatus(_ncStartNetworkResponseType, env); ++ ++ ++ if(_ncStartNetworkResponseType) ++ { ++ AXIS2_FREE(env->allocator, _ncStartNetworkResponseType); ++ _ncStartNetworkResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_deserialize( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncStartNetworkResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncStartNetworkResponseType_set_correlationId(_ncStartNetworkResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncStartNetworkResponseType_set_correlationId(_ncStartNetworkResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncStartNetworkResponseType_set_userId(_ncStartNetworkResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncStartNetworkResponseType_set_userId(_ncStartNetworkResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncStartNetworkResponseType_set_return(_ncStartNetworkResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncStartNetworkResponseType_set_return(_ncStartNetworkResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncStartNetworkResponseType_set_statusMessage(_ncStartNetworkResponseType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building networkStatus element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "networkStatus", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncStartNetworkResponseType_set_networkStatus(_ncStartNetworkResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element networkStatus"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncStartNetworkResponseType_set_networkStatus(_ncStartNetworkResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for networkStatus "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncStartNetworkResponseType_declare_parent_namespaces( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncStartNetworkResponseType_serialize( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncStartNetworkResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncStartNetworkResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncStartNetworkResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncStartNetworkResponseType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkResponseType->is_valid_networkStatus) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("networkStatus"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("networkStatus"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing networkStatus element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%snetworkStatus>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _ncStartNetworkResponseType->property_networkStatus; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncStartNetworkResponseType_get_correlationId( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, NULL); ++ ++ ++ return _ncStartNetworkResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_correlationId( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkResponseType->is_valid_correlationId && ++ arg_correlationId == _ncStartNetworkResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetworkResponseType_reset_correlationId(_ncStartNetworkResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncStartNetworkResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncStartNetworkResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncStartNetworkResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_reset_correlationId( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncStartNetworkResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncStartNetworkResponseType->property_correlationId); ++ _ncStartNetworkResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncStartNetworkResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_is_correlationId_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_TRUE); ++ ++ return !_ncStartNetworkResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_correlationId_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkResponseType_reset_correlationId(_ncStartNetworkResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncStartNetworkResponseType_get_userId( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, NULL); ++ ++ ++ return _ncStartNetworkResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_userId( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkResponseType->is_valid_userId && ++ arg_userId == _ncStartNetworkResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetworkResponseType_reset_userId(_ncStartNetworkResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncStartNetworkResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncStartNetworkResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncStartNetworkResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_reset_userId( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncStartNetworkResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncStartNetworkResponseType->property_userId); ++ _ncStartNetworkResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncStartNetworkResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_is_userId_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_TRUE); ++ ++ return !_ncStartNetworkResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_userId_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkResponseType_reset_userId(_ncStartNetworkResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_get_return( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, (axis2_bool_t)0); ++ ++ ++ return _ncStartNetworkResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_return( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkResponseType->is_valid_return && ++ arg_return == _ncStartNetworkResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetworkResponseType_reset_return(_ncStartNetworkResponseType, env); ++ ++ _ncStartNetworkResponseType->property_return = arg_return; ++ _ncStartNetworkResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_reset_return( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ _ncStartNetworkResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_is_return_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_TRUE); ++ ++ return !_ncStartNetworkResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_return_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkResponseType_reset_return(_ncStartNetworkResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncStartNetworkResponseType_get_statusMessage( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, (int)0); ++ ++ ++ return _ncStartNetworkResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_statusMessage( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkResponseType->is_valid_statusMessage && ++ arg_statusMessage == _ncStartNetworkResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetworkResponseType_reset_statusMessage(_ncStartNetworkResponseType, env); ++ ++ _ncStartNetworkResponseType->property_statusMessage = arg_statusMessage; ++ _ncStartNetworkResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_reset_statusMessage( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ _ncStartNetworkResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_is_statusMessage_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_TRUE); ++ ++ return !_ncStartNetworkResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_statusMessage_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkResponseType_reset_statusMessage(_ncStartNetworkResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for networkStatus. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncStartNetworkResponseType_get_networkStatus( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, NULL); ++ ++ ++ return _ncStartNetworkResponseType->property_networkStatus; ++ } ++ ++ /** ++ * setter for networkStatus ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_networkStatus( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_networkStatus) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkResponseType->is_valid_networkStatus && ++ arg_networkStatus == _ncStartNetworkResponseType->property_networkStatus) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetworkResponseType_reset_networkStatus(_ncStartNetworkResponseType, env); ++ ++ ++ if(NULL == arg_networkStatus) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncStartNetworkResponseType->property_networkStatus = (axis2_char_t *)axutil_strdup(env, arg_networkStatus); ++ if(NULL == _ncStartNetworkResponseType->property_networkStatus) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for networkStatus"); ++ return AXIS2_FAILURE; ++ } ++ _ncStartNetworkResponseType->is_valid_networkStatus = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for networkStatus ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_reset_networkStatus( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncStartNetworkResponseType->property_networkStatus != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncStartNetworkResponseType->property_networkStatus); ++ _ncStartNetworkResponseType->property_networkStatus = NULL; ++ } ++ ++ ++ ++ _ncStartNetworkResponseType->is_valid_networkStatus = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether networkStatus is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_is_networkStatus_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_TRUE); ++ ++ return !_ncStartNetworkResponseType->is_valid_networkStatus; ++ } ++ ++ /** ++ * Set networkStatus to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_networkStatus_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkResponseType_reset_networkStatus(_ncStartNetworkResponseType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncStartNetworkResponseType.h' +--- old/cluster/generated/adb_ncStartNetworkResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncStartNetworkResponseType.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,414 @@ ++ ++ ++ #ifndef ADB_NCSTARTNETWORKRESPONSETYPE_H ++ #define ADB_NCSTARTNETWORKRESPONSETYPE_H ++ ++ /** ++ * adb_ncStartNetworkResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncStartNetworkResponseType class ++ */ ++ typedef struct adb_ncStartNetworkResponseType adb_ncStartNetworkResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncStartNetworkResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncStartNetworkResponseType_t object ++ */ ++ adb_ncStartNetworkResponseType_t* AXIS2_CALL ++ adb_ncStartNetworkResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncStartNetworkResponseType_t object ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_free ( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncStartNetworkResponseType_get_correlationId( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_correlationId( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_reset_correlationId( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncStartNetworkResponseType_get_userId( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_userId( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_reset_userId( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_get_return( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_return( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_reset_return( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncStartNetworkResponseType_get_statusMessage( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_statusMessage( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_reset_statusMessage( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for networkStatus. ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncStartNetworkResponseType_get_networkStatus( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for networkStatus. ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_networkStatus axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_networkStatus( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_networkStatus); ++ ++ /** ++ * Resetter for networkStatus ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_reset_networkStatus( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_is_correlationId_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_is_userId_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_is_return_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_is_statusMessage_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_statusMessage_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether networkStatus is nill ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_is_networkStatus_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_deserialize( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncStartNetworkResponseType_declare_parent_namespaces( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param ncStartNetworkResponseType_om_node node to serialize from ++ * @param ncStartNetworkResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncStartNetworkResponseType_serialize( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* ncStartNetworkResponseType_om_node, axiom_element_t *ncStartNetworkResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncStartNetworkResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCSTARTNETWORKRESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncStartNetworkType.c' +--- old/cluster/generated/adb_ncStartNetworkType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncStartNetworkType.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,2591 @@ ++ ++ ++ /** ++ * adb_ncStartNetworkType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncStartNetworkType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncStartNetworkType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncStartNetworkType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axutil_array_list_t* property_remoteHosts; ++ ++ ++ axis2_bool_t is_valid_remoteHosts; ++ ++ ++ int property_remoteHostPort; ++ ++ ++ axis2_bool_t is_valid_remoteHostPort; ++ ++ ++ int property_vlan; ++ ++ ++ axis2_bool_t is_valid_vlan; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_correlationId_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_userId_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_return_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHosts_nil_at( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHosts_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHostPort_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_vlan_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncStartNetworkType_t* AXIS2_CALL ++ adb_ncStartNetworkType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncStartNetworkType_t *_ncStartNetworkType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncStartNetworkType = (adb_ncStartNetworkType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncStartNetworkType_t)); ++ ++ if(NULL == _ncStartNetworkType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncStartNetworkType, 0, sizeof(adb_ncStartNetworkType_t)); ++ ++ _ncStartNetworkType->property_correlationId = NULL; ++ _ncStartNetworkType->is_valid_correlationId = AXIS2_FALSE; ++ _ncStartNetworkType->property_userId = NULL; ++ _ncStartNetworkType->is_valid_userId = AXIS2_FALSE; ++ _ncStartNetworkType->is_valid_return = AXIS2_FALSE; ++ _ncStartNetworkType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncStartNetworkType->property_remoteHosts = NULL; ++ _ncStartNetworkType->is_valid_remoteHosts = AXIS2_FALSE; ++ _ncStartNetworkType->is_valid_remoteHostPort = AXIS2_FALSE; ++ _ncStartNetworkType->is_valid_vlan = AXIS2_FALSE; ++ ++ ++ return _ncStartNetworkType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_free ( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ adb_ncStartNetworkType_reset_correlationId(_ncStartNetworkType, env); ++ adb_ncStartNetworkType_reset_userId(_ncStartNetworkType, env); ++ adb_ncStartNetworkType_reset_return(_ncStartNetworkType, env); ++ adb_ncStartNetworkType_reset_statusMessage(_ncStartNetworkType, env); ++ adb_ncStartNetworkType_reset_remoteHosts(_ncStartNetworkType, env); ++ adb_ncStartNetworkType_reset_remoteHostPort(_ncStartNetworkType, env); ++ adb_ncStartNetworkType_reset_vlan(_ncStartNetworkType, env); ++ ++ ++ if(_ncStartNetworkType) ++ { ++ AXIS2_FREE(env->allocator, _ncStartNetworkType); ++ _ncStartNetworkType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_deserialize( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncStartNetworkType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncStartNetworkType_set_correlationId(_ncStartNetworkType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncStartNetworkType_set_correlationId(_ncStartNetworkType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncStartNetworkType_set_userId(_ncStartNetworkType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncStartNetworkType_set_userId(_ncStartNetworkType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncStartNetworkType_set_return(_ncStartNetworkType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncStartNetworkType_set_return(_ncStartNetworkType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncStartNetworkType_set_statusMessage(_ncStartNetworkType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building remoteHosts array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building remoteHosts element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "remoteHosts", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value)); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element remoteHosts"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, "")); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for remoteHosts "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "remoteHosts (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_ncStartNetworkType_set_remoteHosts(_ncStartNetworkType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building remoteHostPort element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "remoteHostPort", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncStartNetworkType_set_remoteHostPort(_ncStartNetworkType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element remoteHostPort"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for remoteHostPort "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building vlan element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "vlan", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncStartNetworkType_set_vlan(_ncStartNetworkType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element vlan"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for vlan "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncStartNetworkType_declare_parent_namespaces( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncStartNetworkType_serialize( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t text_value_6[64]; ++ ++ axis2_char_t text_value_7[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncStartNetworkType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncStartNetworkType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncStartNetworkType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncStartNetworkType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkType->is_valid_remoteHosts) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("remoteHosts"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("remoteHosts"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing remoteHosts array ++ */ ++ if (_ncStartNetworkType->property_remoteHosts != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%sremoteHosts>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_ncStartNetworkType->property_remoteHosts, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_ncStartNetworkType->property_remoteHosts, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing remoteHosts element ++ */ ++ ++ ++ ++ text_value_5 = (axis2_char_t*)element; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkType->is_valid_remoteHostPort) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("remoteHostPort"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("remoteHostPort"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing remoteHostPort element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sremoteHostPort>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_6, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncStartNetworkType->property_remoteHostPort); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkType->is_valid_vlan) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("vlan"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("vlan"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing vlan element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%svlan>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_7, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncStartNetworkType->property_vlan); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncStartNetworkType_get_correlationId( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, NULL); ++ ++ ++ return _ncStartNetworkType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_correlationId( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkType->is_valid_correlationId && ++ arg_correlationId == _ncStartNetworkType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetworkType_reset_correlationId(_ncStartNetworkType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncStartNetworkType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncStartNetworkType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncStartNetworkType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_correlationId( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncStartNetworkType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncStartNetworkType->property_correlationId); ++ _ncStartNetworkType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncStartNetworkType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_correlationId_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_TRUE); ++ ++ return !_ncStartNetworkType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_correlationId_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkType_reset_correlationId(_ncStartNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncStartNetworkType_get_userId( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, NULL); ++ ++ ++ return _ncStartNetworkType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_userId( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkType->is_valid_userId && ++ arg_userId == _ncStartNetworkType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetworkType_reset_userId(_ncStartNetworkType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncStartNetworkType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncStartNetworkType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncStartNetworkType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_userId( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncStartNetworkType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncStartNetworkType->property_userId); ++ _ncStartNetworkType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncStartNetworkType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_userId_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_TRUE); ++ ++ return !_ncStartNetworkType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_userId_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkType_reset_userId(_ncStartNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_get_return( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, (axis2_bool_t)0); ++ ++ ++ return _ncStartNetworkType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_return( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkType->is_valid_return && ++ arg_return == _ncStartNetworkType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetworkType_reset_return(_ncStartNetworkType, env); ++ ++ _ncStartNetworkType->property_return = arg_return; ++ _ncStartNetworkType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_return( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ ++ _ncStartNetworkType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_return_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_TRUE); ++ ++ return !_ncStartNetworkType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_return_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkType_reset_return(_ncStartNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncStartNetworkType_get_statusMessage( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, (int)0); ++ ++ ++ return _ncStartNetworkType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_statusMessage( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkType->is_valid_statusMessage && ++ arg_statusMessage == _ncStartNetworkType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetworkType_reset_statusMessage(_ncStartNetworkType, env); ++ ++ _ncStartNetworkType->property_statusMessage = arg_statusMessage; ++ _ncStartNetworkType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_statusMessage( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ ++ _ncStartNetworkType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_statusMessage_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_TRUE); ++ ++ return !_ncStartNetworkType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_statusMessage_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkType_reset_statusMessage(_ncStartNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for remoteHosts. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_ncStartNetworkType_get_remoteHosts( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, NULL); ++ ++ ++ return _ncStartNetworkType->property_remoteHosts; ++ } ++ ++ /** ++ * setter for remoteHosts ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHosts( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_remoteHosts) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkType->is_valid_remoteHosts && ++ arg_remoteHosts == _ncStartNetworkType->property_remoteHosts) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_remoteHosts, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "remoteHosts has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_remoteHosts, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_ncStartNetworkType_reset_remoteHosts(_ncStartNetworkType, env); ++ ++ ++ if(NULL == arg_remoteHosts) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncStartNetworkType->property_remoteHosts = arg_remoteHosts; ++ if(non_nil_exists) ++ { ++ _ncStartNetworkType->is_valid_remoteHosts = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of remoteHosts. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncStartNetworkType_get_remoteHosts_at( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, int i) ++ { ++ axis2_char_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, NULL); ++ ++ ++ if(_ncStartNetworkType->property_remoteHosts == NULL) ++ { ++ return (axis2_char_t*)0; ++ } ++ ret_val = (axis2_char_t*)axutil_array_list_get(_ncStartNetworkType->property_remoteHosts, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of remoteHosts. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHosts_at( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_remoteHosts) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ if( _ncStartNetworkType->is_valid_remoteHosts && ++ _ncStartNetworkType->property_remoteHosts && ++ ++ arg_remoteHosts == (axis2_char_t*)axutil_array_list_get(_ncStartNetworkType->property_remoteHosts, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_remoteHosts) ++ { ++ if(_ncStartNetworkType->property_remoteHosts != NULL) ++ { ++ size = axutil_array_list_size(_ncStartNetworkType->property_remoteHosts, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_ncStartNetworkType->property_remoteHosts, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of remoteHosts is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_ncStartNetworkType->property_remoteHosts == NULL) ++ { ++ _ncStartNetworkType->property_remoteHosts = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_ncStartNetworkType->property_remoteHosts, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _ncStartNetworkType->is_valid_remoteHosts = AXIS2_FALSE; ++ axutil_array_list_set(_ncStartNetworkType->property_remoteHosts , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_ncStartNetworkType->property_remoteHosts , env, i, axutil_strdup(env, arg_remoteHosts)); ++ _ncStartNetworkType->is_valid_remoteHosts = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to remoteHosts. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_add_remoteHosts( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_remoteHosts) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_remoteHosts) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_ncStartNetworkType->property_remoteHosts == NULL) ++ { ++ _ncStartNetworkType->property_remoteHosts = axutil_array_list_create(env, 10); ++ } ++ if(_ncStartNetworkType->property_remoteHosts == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for remoteHosts"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_ncStartNetworkType->property_remoteHosts , env, axutil_strdup(env, arg_remoteHosts)); ++ _ncStartNetworkType->is_valid_remoteHosts = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the remoteHosts array. ++ */ ++ int AXIS2_CALL ++ adb_ncStartNetworkType_sizeof_remoteHosts( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, -1); ++ if(_ncStartNetworkType->property_remoteHosts == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_ncStartNetworkType->property_remoteHosts, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_remove_remoteHosts_at( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_ncStartNetworkType_set_remoteHosts_nil_at(_ncStartNetworkType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for remoteHosts ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_remoteHosts( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ if (_ncStartNetworkType->property_remoteHosts != NULL) ++ { ++ count = axutil_array_list_size(_ncStartNetworkType->property_remoteHosts, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_ncStartNetworkType->property_remoteHosts, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_ncStartNetworkType->property_remoteHosts, env); ++ } ++ _ncStartNetworkType->is_valid_remoteHosts = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether remoteHosts is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_remoteHosts_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_TRUE); ++ ++ return !_ncStartNetworkType->is_valid_remoteHosts; ++ } ++ ++ /** ++ * Set remoteHosts to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHosts_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkType_reset_remoteHosts(_ncStartNetworkType, env); ++ } ++ ++ ++ /** ++ * Check whether remoteHosts is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_remoteHosts_nil_at( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_TRUE); ++ ++ return (_ncStartNetworkType->is_valid_remoteHosts == AXIS2_FALSE || ++ NULL == _ncStartNetworkType->property_remoteHosts || ++ NULL == axutil_array_list_get(_ncStartNetworkType->property_remoteHosts, env, i)); ++ } ++ ++ /** ++ * Set remoteHosts to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHosts_nil_at( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkType->property_remoteHosts == NULL || ++ _ncStartNetworkType->is_valid_remoteHosts == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_ncStartNetworkType->property_remoteHosts, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_ncStartNetworkType->property_remoteHosts, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of remoteHosts is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_ncStartNetworkType->property_remoteHosts == NULL) ++ { ++ _ncStartNetworkType->is_valid_remoteHosts = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_ncStartNetworkType->property_remoteHosts, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _ncStartNetworkType->is_valid_remoteHosts = AXIS2_FALSE; ++ axutil_array_list_set(_ncStartNetworkType->property_remoteHosts , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_ncStartNetworkType->property_remoteHosts , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ ++ /** ++ * getter for remoteHostPort. ++ */ ++ int AXIS2_CALL ++ adb_ncStartNetworkType_get_remoteHostPort( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, (int)0); ++ ++ ++ return _ncStartNetworkType->property_remoteHostPort; ++ } ++ ++ /** ++ * setter for remoteHostPort ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHostPort( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ const int arg_remoteHostPort) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkType->is_valid_remoteHostPort && ++ arg_remoteHostPort == _ncStartNetworkType->property_remoteHostPort) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetworkType_reset_remoteHostPort(_ncStartNetworkType, env); ++ ++ _ncStartNetworkType->property_remoteHostPort = arg_remoteHostPort; ++ _ncStartNetworkType->is_valid_remoteHostPort = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for remoteHostPort ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_remoteHostPort( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ ++ _ncStartNetworkType->is_valid_remoteHostPort = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether remoteHostPort is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_remoteHostPort_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_TRUE); ++ ++ return !_ncStartNetworkType->is_valid_remoteHostPort; ++ } ++ ++ /** ++ * Set remoteHostPort to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHostPort_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkType_reset_remoteHostPort(_ncStartNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for vlan. ++ */ ++ int AXIS2_CALL ++ adb_ncStartNetworkType_get_vlan( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, (int)0); ++ ++ ++ return _ncStartNetworkType->property_vlan; ++ } ++ ++ /** ++ * setter for vlan ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_vlan( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ const int arg_vlan) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkType->is_valid_vlan && ++ arg_vlan == _ncStartNetworkType->property_vlan) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetworkType_reset_vlan(_ncStartNetworkType, env); ++ ++ _ncStartNetworkType->property_vlan = arg_vlan; ++ _ncStartNetworkType->is_valid_vlan = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for vlan ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_vlan( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ ++ _ncStartNetworkType->is_valid_vlan = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether vlan is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_vlan_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_TRUE); ++ ++ return !_ncStartNetworkType->is_valid_vlan; ++ } ++ ++ /** ++ * Set vlan to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_vlan_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkType_reset_vlan(_ncStartNetworkType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncStartNetworkType.h' +--- old/cluster/generated/adb_ncStartNetworkType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncStartNetworkType.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,642 @@ ++ ++ ++ #ifndef ADB_NCSTARTNETWORKTYPE_H ++ #define ADB_NCSTARTNETWORKTYPE_H ++ ++ /** ++ * adb_ncStartNetworkType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncStartNetworkType class ++ */ ++ typedef struct adb_ncStartNetworkType adb_ncStartNetworkType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncStartNetworkType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncStartNetworkType_t object ++ */ ++ adb_ncStartNetworkType_t* AXIS2_CALL ++ adb_ncStartNetworkType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncStartNetworkType_t object ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_free ( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncStartNetworkType_get_correlationId( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_correlationId( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_correlationId( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncStartNetworkType_get_userId( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_userId( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_userId( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_get_return( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_return( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_return( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncStartNetworkType_get_statusMessage( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_statusMessage( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_statusMessage( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for remoteHosts. Deprecated for array types, Use adb_ncStartNetworkType_get_remoteHosts_at instead ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return Array of axis2_char_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_ncStartNetworkType_get_remoteHosts( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for remoteHosts.Deprecated for array types, Use adb_ncStartNetworkType_set_remoteHosts_at ++ * or adb_ncStartNetworkType_add_remoteHosts instead. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_remoteHosts Array of axis2_char_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHosts( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_remoteHosts); ++ ++ /** ++ * Resetter for remoteHosts ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_remoteHosts( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for remoteHostPort. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncStartNetworkType_get_remoteHostPort( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for remoteHostPort. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_remoteHostPort int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHostPort( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ const int arg_remoteHostPort); ++ ++ /** ++ * Resetter for remoteHostPort ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_remoteHostPort( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for vlan. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncStartNetworkType_get_vlan( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for vlan. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_vlan int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_vlan( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ const int arg_vlan); ++ ++ /** ++ * Resetter for vlan ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_vlan( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of remoteHosts. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncStartNetworkType_get_remoteHosts_at( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of remoteHosts. (If the ith already exist, it will be replaced) ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_remoteHosts element to set axis2_char_t* to the array ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHosts_at( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_remoteHosts); ++ ++ ++ /** ++ * Add to remoteHosts. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_remoteHosts element to add axis2_char_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_add_remoteHosts( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_remoteHosts); ++ ++ /** ++ * Get the size of the remoteHosts array. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the remoteHosts array. ++ */ ++ int AXIS2_CALL ++ adb_ncStartNetworkType_sizeof_remoteHosts( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of remoteHosts. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_remove_remoteHosts_at( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_correlationId_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_userId_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_return_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_statusMessage_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_statusMessage_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether remoteHosts is nill ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_remoteHosts_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether remoteHostPort is nill ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_remoteHostPort_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether vlan is nill ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_vlan_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether remoteHosts is nill at i ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_remoteHosts_nil_at( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set remoteHosts to nill at i ++ * @param _ncStartNetworkType _ adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHosts_nil_at( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_deserialize( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncStartNetworkType_declare_parent_namespaces( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param ncStartNetworkType_om_node node to serialize from ++ * @param ncStartNetworkType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncStartNetworkType_serialize( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ axiom_node_t* ncStartNetworkType_om_node, axiom_element_t *ncStartNetworkType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncStartNetworkType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCSTARTNETWORKTYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncTerminateInstance.c' +--- old/cluster/generated/adb_ncTerminateInstance.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncTerminateInstance.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncTerminateInstance.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncTerminateInstance.h" ++ ++ /* ++ * implmentation of the ncTerminateInstance|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncTerminateInstance ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncTerminateInstanceType_t* property_ncTerminateInstance; ++ ++ ++ axis2_bool_t is_valid_ncTerminateInstance; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncTerminateInstance_t* AXIS2_CALL ++ adb_ncTerminateInstance_create( ++ const axutil_env_t *env) ++ { ++ adb_ncTerminateInstance_t *_ncTerminateInstance = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncTerminateInstance = (adb_ncTerminateInstance_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncTerminateInstance_t)); ++ ++ if(NULL == _ncTerminateInstance) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncTerminateInstance, 0, sizeof(adb_ncTerminateInstance_t)); ++ ++ _ncTerminateInstance->property_ncTerminateInstance = NULL; ++ _ncTerminateInstance->is_valid_ncTerminateInstance = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncTerminateInstance", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncTerminateInstance->qname = qname; ++ ++ ++ return _ncTerminateInstance; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstance_free ( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstance, AXIS2_FAILURE); ++ ++ adb_ncTerminateInstance_reset_ncTerminateInstance(_ncTerminateInstance, env); ++ ++ if(_ncTerminateInstance->qname) ++ { ++ axutil_qname_free (_ncTerminateInstance->qname, env); ++ _ncTerminateInstance->qname = NULL; ++ } ++ ++ ++ if(_ncTerminateInstance) ++ { ++ AXIS2_FREE(env->allocator, _ncTerminateInstance); ++ _ncTerminateInstance = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstance_deserialize( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstance, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncTerminateInstance : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncTerminateInstance-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncTerminateInstance : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncTerminateInstance-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncTerminateInstance element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncTerminateInstance", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncTerminateInstanceType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncTerminateInstanceType_create(env); ++ ++ status = adb_ncTerminateInstanceType_deserialize((adb_ncTerminateInstanceType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncTerminateInstance"); ++ } ++ else ++ { ++ status = adb_ncTerminateInstance_set_ncTerminateInstance(_ncTerminateInstance, env, ++ (adb_ncTerminateInstanceType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncTerminateInstance "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncTerminateInstance missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstance_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncTerminateInstance_declare_parent_namespaces( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncTerminateInstance_serialize( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstance, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncTerminateInstance", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstance->is_valid_ncTerminateInstance) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncTerminateInstance") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncTerminateInstance xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncTerminateInstance"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncTerminateInstance"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncTerminateInstance element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncTerminateInstance", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncTerminateInstanceType_serialize(_ncTerminateInstance->property_ncTerminateInstance, ++ env, current_node, parent_element, ++ adb_ncTerminateInstanceType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncTerminateInstance. ++ */ ++ adb_ncTerminateInstanceType_t* AXIS2_CALL ++ adb_ncTerminateInstance_get_ncTerminateInstance( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstance, NULL); ++ ++ ++ return _ncTerminateInstance->property_ncTerminateInstance; ++ } ++ ++ /** ++ * setter for ncTerminateInstance ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstance_set_ncTerminateInstance( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env, ++ adb_ncTerminateInstanceType_t* arg_ncTerminateInstance) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstance, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstance->is_valid_ncTerminateInstance && ++ arg_ncTerminateInstance == _ncTerminateInstance->property_ncTerminateInstance) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncTerminateInstance_reset_ncTerminateInstance(_ncTerminateInstance, env); ++ ++ ++ if(NULL == arg_ncTerminateInstance) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncTerminateInstance->property_ncTerminateInstance = arg_ncTerminateInstance; ++ _ncTerminateInstance->is_valid_ncTerminateInstance = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncTerminateInstance ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstance_reset_ncTerminateInstance( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstance, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncTerminateInstance->property_ncTerminateInstance != NULL) ++ { ++ ++ ++ adb_ncTerminateInstanceType_free(_ncTerminateInstance->property_ncTerminateInstance, env); ++ _ncTerminateInstance->property_ncTerminateInstance = NULL; ++ } ++ ++ ++ ++ _ncTerminateInstance->is_valid_ncTerminateInstance = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncTerminateInstance is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstance_is_ncTerminateInstance_nil( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstance, AXIS2_TRUE); ++ ++ return !_ncTerminateInstance->is_valid_ncTerminateInstance; ++ } ++ ++ /** ++ * Set ncTerminateInstance to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstance_set_ncTerminateInstance_nil( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstance_reset_ncTerminateInstance(_ncTerminateInstance, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncTerminateInstance.h' +--- old/cluster/generated/adb_ncTerminateInstance.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncTerminateInstance.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCTERMINATEINSTANCE_H ++ #define ADB_NCTERMINATEINSTANCE_H ++ ++ /** ++ * adb_ncTerminateInstance.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncTerminateInstance class ++ */ ++ typedef struct adb_ncTerminateInstance adb_ncTerminateInstance_t; ++ ++ ++ #include "adb_ncTerminateInstanceType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncTerminateInstance_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncTerminateInstance_t object ++ */ ++ adb_ncTerminateInstance_t* AXIS2_CALL ++ adb_ncTerminateInstance_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncTerminateInstance_t object ++ * @param _ncTerminateInstance adb_ncTerminateInstance_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstance_free ( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncTerminateInstance. ++ * @param _ncTerminateInstance adb_ncTerminateInstance_t object ++ * @param env pointer to environment struct ++ * @return adb_ncTerminateInstanceType_t* ++ */ ++ adb_ncTerminateInstanceType_t* AXIS2_CALL ++ adb_ncTerminateInstance_get_ncTerminateInstance( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncTerminateInstance. ++ * @param _ncTerminateInstance adb_ncTerminateInstance_t object ++ * @param env pointer to environment struct ++ * @param arg_ncTerminateInstance adb_ncTerminateInstanceType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstance_set_ncTerminateInstance( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env, ++ adb_ncTerminateInstanceType_t* arg_ncTerminateInstance); ++ ++ /** ++ * Resetter for ncTerminateInstance ++ * @param _ncTerminateInstance adb_ncTerminateInstance_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstance_reset_ncTerminateInstance( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncTerminateInstance is nill ++ * @param _ncTerminateInstance adb_ncTerminateInstance_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstance_is_ncTerminateInstance_nil( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncTerminateInstance to nill (currently the same as reset) ++ * @param _ncTerminateInstance adb_ncTerminateInstance_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstance_set_ncTerminateInstance_nil( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncTerminateInstance adb_ncTerminateInstance_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstance_deserialize( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncTerminateInstance adb_ncTerminateInstance_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncTerminateInstance_declare_parent_namespaces( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncTerminateInstance adb_ncTerminateInstance_t object ++ * @param env pointer to environment struct ++ * @param ncTerminateInstance_om_node node to serialize from ++ * @param ncTerminateInstance_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncTerminateInstance_serialize( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env, ++ axiom_node_t* ncTerminateInstance_om_node, axiom_element_t *ncTerminateInstance_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncTerminateInstance is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstance_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCTERMINATEINSTANCE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncTerminateInstanceResponse.c' +--- old/cluster/generated/adb_ncTerminateInstanceResponse.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncTerminateInstanceResponse.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncTerminateInstanceResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncTerminateInstanceResponse.h" ++ ++ /* ++ * implmentation of the ncTerminateInstanceResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncTerminateInstanceResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncTerminateInstanceResponseType_t* property_ncTerminateInstanceResponse; ++ ++ ++ axis2_bool_t is_valid_ncTerminateInstanceResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncTerminateInstanceResponse_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_ncTerminateInstanceResponse_t *_ncTerminateInstanceResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncTerminateInstanceResponse = (adb_ncTerminateInstanceResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncTerminateInstanceResponse_t)); ++ ++ if(NULL == _ncTerminateInstanceResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncTerminateInstanceResponse, 0, sizeof(adb_ncTerminateInstanceResponse_t)); ++ ++ _ncTerminateInstanceResponse->property_ncTerminateInstanceResponse = NULL; ++ _ncTerminateInstanceResponse->is_valid_ncTerminateInstanceResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncTerminateInstanceResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncTerminateInstanceResponse->qname = qname; ++ ++ ++ return _ncTerminateInstanceResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_free ( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponse, AXIS2_FAILURE); ++ ++ adb_ncTerminateInstanceResponse_reset_ncTerminateInstanceResponse(_ncTerminateInstanceResponse, env); ++ ++ if(_ncTerminateInstanceResponse->qname) ++ { ++ axutil_qname_free (_ncTerminateInstanceResponse->qname, env); ++ _ncTerminateInstanceResponse->qname = NULL; ++ } ++ ++ ++ if(_ncTerminateInstanceResponse) ++ { ++ AXIS2_FREE(env->allocator, _ncTerminateInstanceResponse); ++ _ncTerminateInstanceResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_deserialize( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncTerminateInstanceResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncTerminateInstanceResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncTerminateInstanceResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncTerminateInstanceResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncTerminateInstanceResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncTerminateInstanceResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncTerminateInstanceResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncTerminateInstanceResponseType_create(env); ++ ++ status = adb_ncTerminateInstanceResponseType_deserialize((adb_ncTerminateInstanceResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncTerminateInstanceResponse"); ++ } ++ else ++ { ++ status = adb_ncTerminateInstanceResponse_set_ncTerminateInstanceResponse(_ncTerminateInstanceResponse, env, ++ (adb_ncTerminateInstanceResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncTerminateInstanceResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncTerminateInstanceResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncTerminateInstanceResponse_declare_parent_namespaces( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponse_serialize( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncTerminateInstanceResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceResponse->is_valid_ncTerminateInstanceResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncTerminateInstanceResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncTerminateInstanceResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncTerminateInstanceResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncTerminateInstanceResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncTerminateInstanceResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncTerminateInstanceResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncTerminateInstanceResponseType_serialize(_ncTerminateInstanceResponse->property_ncTerminateInstanceResponse, ++ env, current_node, parent_element, ++ adb_ncTerminateInstanceResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncTerminateInstanceResponse. ++ */ ++ adb_ncTerminateInstanceResponseType_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponse_get_ncTerminateInstanceResponse( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponse, NULL); ++ ++ ++ return _ncTerminateInstanceResponse->property_ncTerminateInstanceResponse; ++ } ++ ++ /** ++ * setter for ncTerminateInstanceResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_set_ncTerminateInstanceResponse( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env, ++ adb_ncTerminateInstanceResponseType_t* arg_ncTerminateInstanceResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponse, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceResponse->is_valid_ncTerminateInstanceResponse && ++ arg_ncTerminateInstanceResponse == _ncTerminateInstanceResponse->property_ncTerminateInstanceResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncTerminateInstanceResponse_reset_ncTerminateInstanceResponse(_ncTerminateInstanceResponse, env); ++ ++ ++ if(NULL == arg_ncTerminateInstanceResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncTerminateInstanceResponse->property_ncTerminateInstanceResponse = arg_ncTerminateInstanceResponse; ++ _ncTerminateInstanceResponse->is_valid_ncTerminateInstanceResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncTerminateInstanceResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_reset_ncTerminateInstanceResponse( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncTerminateInstanceResponse->property_ncTerminateInstanceResponse != NULL) ++ { ++ ++ ++ adb_ncTerminateInstanceResponseType_free(_ncTerminateInstanceResponse->property_ncTerminateInstanceResponse, env); ++ _ncTerminateInstanceResponse->property_ncTerminateInstanceResponse = NULL; ++ } ++ ++ ++ ++ _ncTerminateInstanceResponse->is_valid_ncTerminateInstanceResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncTerminateInstanceResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_is_ncTerminateInstanceResponse_nil( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponse, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceResponse->is_valid_ncTerminateInstanceResponse; ++ } ++ ++ /** ++ * Set ncTerminateInstanceResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_set_ncTerminateInstanceResponse_nil( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceResponse_reset_ncTerminateInstanceResponse(_ncTerminateInstanceResponse, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncTerminateInstanceResponse.h' +--- old/cluster/generated/adb_ncTerminateInstanceResponse.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncTerminateInstanceResponse.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCTERMINATEINSTANCERESPONSE_H ++ #define ADB_NCTERMINATEINSTANCERESPONSE_H ++ ++ /** ++ * adb_ncTerminateInstanceResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncTerminateInstanceResponse class ++ */ ++ typedef struct adb_ncTerminateInstanceResponse adb_ncTerminateInstanceResponse_t; ++ ++ ++ #include "adb_ncTerminateInstanceResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncTerminateInstanceResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncTerminateInstanceResponse_t object ++ */ ++ adb_ncTerminateInstanceResponse_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncTerminateInstanceResponse_t object ++ * @param _ncTerminateInstanceResponse adb_ncTerminateInstanceResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_free ( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncTerminateInstanceResponse. ++ * @param _ncTerminateInstanceResponse adb_ncTerminateInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_ncTerminateInstanceResponseType_t* ++ */ ++ adb_ncTerminateInstanceResponseType_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponse_get_ncTerminateInstanceResponse( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncTerminateInstanceResponse. ++ * @param _ncTerminateInstanceResponse adb_ncTerminateInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_ncTerminateInstanceResponse adb_ncTerminateInstanceResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_set_ncTerminateInstanceResponse( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env, ++ adb_ncTerminateInstanceResponseType_t* arg_ncTerminateInstanceResponse); ++ ++ /** ++ * Resetter for ncTerminateInstanceResponse ++ * @param _ncTerminateInstanceResponse adb_ncTerminateInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_reset_ncTerminateInstanceResponse( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncTerminateInstanceResponse is nill ++ * @param _ncTerminateInstanceResponse adb_ncTerminateInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_is_ncTerminateInstanceResponse_nil( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncTerminateInstanceResponse to nill (currently the same as reset) ++ * @param _ncTerminateInstanceResponse adb_ncTerminateInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_set_ncTerminateInstanceResponse_nil( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncTerminateInstanceResponse adb_ncTerminateInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_deserialize( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncTerminateInstanceResponse adb_ncTerminateInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncTerminateInstanceResponse_declare_parent_namespaces( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncTerminateInstanceResponse adb_ncTerminateInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @param ncTerminateInstanceResponse_om_node node to serialize from ++ * @param ncTerminateInstanceResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponse_serialize( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env, ++ axiom_node_t* ncTerminateInstanceResponse_om_node, axiom_element_t *ncTerminateInstanceResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncTerminateInstanceResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCTERMINATEINSTANCERESPONSE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncTerminateInstanceResponseType.c' +--- old/cluster/generated/adb_ncTerminateInstanceResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncTerminateInstanceResponseType.c 2010-01-05 01:00:43 +0000 +@@ -0,0 +1,2394 @@ ++ ++ ++ /** ++ * adb_ncTerminateInstanceResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncTerminateInstanceResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncTerminateInstanceResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncTerminateInstanceResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_char_t* property_instanceId; ++ ++ ++ axis2_bool_t is_valid_instanceId; ++ ++ ++ axis2_char_t* property_shutdownState; ++ ++ ++ axis2_bool_t is_valid_shutdownState; ++ ++ ++ axis2_char_t* property_previousState; ++ ++ ++ axis2_bool_t is_valid_previousState; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_correlationId_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_userId_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_return_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_instanceId_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_shutdownState_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_previousState_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncTerminateInstanceResponseType_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncTerminateInstanceResponseType_t *_ncTerminateInstanceResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncTerminateInstanceResponseType = (adb_ncTerminateInstanceResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncTerminateInstanceResponseType_t)); ++ ++ if(NULL == _ncTerminateInstanceResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncTerminateInstanceResponseType, 0, sizeof(adb_ncTerminateInstanceResponseType_t)); ++ ++ _ncTerminateInstanceResponseType->property_correlationId = NULL; ++ _ncTerminateInstanceResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _ncTerminateInstanceResponseType->property_userId = NULL; ++ _ncTerminateInstanceResponseType->is_valid_userId = AXIS2_FALSE; ++ _ncTerminateInstanceResponseType->is_valid_return = AXIS2_FALSE; ++ _ncTerminateInstanceResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncTerminateInstanceResponseType->property_instanceId = NULL; ++ _ncTerminateInstanceResponseType->is_valid_instanceId = AXIS2_FALSE; ++ _ncTerminateInstanceResponseType->property_shutdownState = NULL; ++ _ncTerminateInstanceResponseType->is_valid_shutdownState = AXIS2_FALSE; ++ _ncTerminateInstanceResponseType->property_previousState = NULL; ++ _ncTerminateInstanceResponseType->is_valid_previousState = AXIS2_FALSE; ++ ++ ++ return _ncTerminateInstanceResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_free ( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ adb_ncTerminateInstanceResponseType_reset_correlationId(_ncTerminateInstanceResponseType, env); ++ adb_ncTerminateInstanceResponseType_reset_userId(_ncTerminateInstanceResponseType, env); ++ adb_ncTerminateInstanceResponseType_reset_return(_ncTerminateInstanceResponseType, env); ++ adb_ncTerminateInstanceResponseType_reset_statusMessage(_ncTerminateInstanceResponseType, env); ++ adb_ncTerminateInstanceResponseType_reset_instanceId(_ncTerminateInstanceResponseType, env); ++ adb_ncTerminateInstanceResponseType_reset_shutdownState(_ncTerminateInstanceResponseType, env); ++ adb_ncTerminateInstanceResponseType_reset_previousState(_ncTerminateInstanceResponseType, env); ++ ++ ++ if(_ncTerminateInstanceResponseType) ++ { ++ AXIS2_FREE(env->allocator, _ncTerminateInstanceResponseType); ++ _ncTerminateInstanceResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_deserialize( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncTerminateInstanceResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncTerminateInstanceResponseType_set_correlationId(_ncTerminateInstanceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncTerminateInstanceResponseType_set_correlationId(_ncTerminateInstanceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncTerminateInstanceResponseType_set_userId(_ncTerminateInstanceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncTerminateInstanceResponseType_set_userId(_ncTerminateInstanceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncTerminateInstanceResponseType_set_return(_ncTerminateInstanceResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncTerminateInstanceResponseType_set_return(_ncTerminateInstanceResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncTerminateInstanceResponseType_set_statusMessage(_ncTerminateInstanceResponseType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncTerminateInstanceResponseType_set_instanceId(_ncTerminateInstanceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncTerminateInstanceResponseType_set_instanceId(_ncTerminateInstanceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element instanceId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building shutdownState element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "shutdownState", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncTerminateInstanceResponseType_set_shutdownState(_ncTerminateInstanceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element shutdownState"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncTerminateInstanceResponseType_set_shutdownState(_ncTerminateInstanceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for shutdownState "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building previousState element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "previousState", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncTerminateInstanceResponseType_set_previousState(_ncTerminateInstanceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element previousState"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncTerminateInstanceResponseType_set_previousState(_ncTerminateInstanceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for previousState "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_declare_parent_namespaces( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_serialize( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *text_value_6; ++ axis2_char_t *text_value_6_temp; ++ ++ axis2_char_t *text_value_7; ++ axis2_char_t *text_value_7_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncTerminateInstanceResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncTerminateInstanceResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncTerminateInstanceResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncTerminateInstanceResponseType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceResponseType->is_valid_instanceId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _ncTerminateInstanceResponseType->property_instanceId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceResponseType->is_valid_shutdownState) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("shutdownState"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("shutdownState"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing shutdownState element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sshutdownState>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_6 = _ncTerminateInstanceResponseType->property_shutdownState; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE); ++ if (text_value_6_temp) ++ { ++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp)); ++ AXIS2_FREE(env->allocator, text_value_6_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceResponseType->is_valid_previousState) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("previousState"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("previousState"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing previousState element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%spreviousState>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_7 = _ncTerminateInstanceResponseType->property_previousState; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE); ++ if (text_value_7_temp) ++ { ++ axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp)); ++ AXIS2_FREE(env->allocator, text_value_7_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_correlationId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, NULL); ++ ++ ++ return _ncTerminateInstanceResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_correlationId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceResponseType->is_valid_correlationId && ++ arg_correlationId == _ncTerminateInstanceResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncTerminateInstanceResponseType_reset_correlationId(_ncTerminateInstanceResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncTerminateInstanceResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncTerminateInstanceResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncTerminateInstanceResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_correlationId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncTerminateInstanceResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncTerminateInstanceResponseType->property_correlationId); ++ _ncTerminateInstanceResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncTerminateInstanceResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_correlationId_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_correlationId_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceResponseType_reset_correlationId(_ncTerminateInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_userId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, NULL); ++ ++ ++ return _ncTerminateInstanceResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_userId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceResponseType->is_valid_userId && ++ arg_userId == _ncTerminateInstanceResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncTerminateInstanceResponseType_reset_userId(_ncTerminateInstanceResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncTerminateInstanceResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncTerminateInstanceResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncTerminateInstanceResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_userId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncTerminateInstanceResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncTerminateInstanceResponseType->property_userId); ++ _ncTerminateInstanceResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncTerminateInstanceResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_userId_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_userId_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceResponseType_reset_userId(_ncTerminateInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_return( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, (axis2_bool_t)0); ++ ++ ++ return _ncTerminateInstanceResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_return( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceResponseType->is_valid_return && ++ arg_return == _ncTerminateInstanceResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncTerminateInstanceResponseType_reset_return(_ncTerminateInstanceResponseType, env); ++ ++ _ncTerminateInstanceResponseType->property_return = arg_return; ++ _ncTerminateInstanceResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_return( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncTerminateInstanceResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_return_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_return_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceResponseType_reset_return(_ncTerminateInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_statusMessage( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, (int)0); ++ ++ ++ return _ncTerminateInstanceResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_statusMessage( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceResponseType->is_valid_statusMessage && ++ arg_statusMessage == _ncTerminateInstanceResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncTerminateInstanceResponseType_reset_statusMessage(_ncTerminateInstanceResponseType, env); ++ ++ _ncTerminateInstanceResponseType->property_statusMessage = arg_statusMessage; ++ _ncTerminateInstanceResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_statusMessage( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncTerminateInstanceResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_statusMessage_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_statusMessage_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceResponseType_reset_statusMessage(_ncTerminateInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_instanceId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, NULL); ++ ++ ++ return _ncTerminateInstanceResponseType->property_instanceId; ++ } ++ ++ /** ++ * setter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_instanceId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceResponseType->is_valid_instanceId && ++ arg_instanceId == _ncTerminateInstanceResponseType->property_instanceId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncTerminateInstanceResponseType_reset_instanceId(_ncTerminateInstanceResponseType, env); ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncTerminateInstanceResponseType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId); ++ if(NULL == _ncTerminateInstanceResponseType->property_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId"); ++ return AXIS2_FAILURE; ++ } ++ _ncTerminateInstanceResponseType->is_valid_instanceId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_instanceId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncTerminateInstanceResponseType->property_instanceId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncTerminateInstanceResponseType->property_instanceId); ++ _ncTerminateInstanceResponseType->property_instanceId = NULL; ++ } ++ ++ ++ ++ _ncTerminateInstanceResponseType->is_valid_instanceId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_instanceId_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceResponseType->is_valid_instanceId; ++ } ++ ++ /** ++ * Set instanceId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_instanceId_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceResponseType_reset_instanceId(_ncTerminateInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for shutdownState. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_shutdownState( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, NULL); ++ ++ ++ return _ncTerminateInstanceResponseType->property_shutdownState; ++ } ++ ++ /** ++ * setter for shutdownState ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_shutdownState( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_shutdownState) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceResponseType->is_valid_shutdownState && ++ arg_shutdownState == _ncTerminateInstanceResponseType->property_shutdownState) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncTerminateInstanceResponseType_reset_shutdownState(_ncTerminateInstanceResponseType, env); ++ ++ ++ if(NULL == arg_shutdownState) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncTerminateInstanceResponseType->property_shutdownState = (axis2_char_t *)axutil_strdup(env, arg_shutdownState); ++ if(NULL == _ncTerminateInstanceResponseType->property_shutdownState) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for shutdownState"); ++ return AXIS2_FAILURE; ++ } ++ _ncTerminateInstanceResponseType->is_valid_shutdownState = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for shutdownState ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_shutdownState( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncTerminateInstanceResponseType->property_shutdownState != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncTerminateInstanceResponseType->property_shutdownState); ++ _ncTerminateInstanceResponseType->property_shutdownState = NULL; ++ } ++ ++ ++ ++ _ncTerminateInstanceResponseType->is_valid_shutdownState = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether shutdownState is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_shutdownState_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceResponseType->is_valid_shutdownState; ++ } ++ ++ /** ++ * Set shutdownState to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_shutdownState_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceResponseType_reset_shutdownState(_ncTerminateInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for previousState. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_previousState( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, NULL); ++ ++ ++ return _ncTerminateInstanceResponseType->property_previousState; ++ } ++ ++ /** ++ * setter for previousState ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_previousState( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_previousState) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceResponseType->is_valid_previousState && ++ arg_previousState == _ncTerminateInstanceResponseType->property_previousState) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncTerminateInstanceResponseType_reset_previousState(_ncTerminateInstanceResponseType, env); ++ ++ ++ if(NULL == arg_previousState) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncTerminateInstanceResponseType->property_previousState = (axis2_char_t *)axutil_strdup(env, arg_previousState); ++ if(NULL == _ncTerminateInstanceResponseType->property_previousState) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for previousState"); ++ return AXIS2_FAILURE; ++ } ++ _ncTerminateInstanceResponseType->is_valid_previousState = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for previousState ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_previousState( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncTerminateInstanceResponseType->property_previousState != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncTerminateInstanceResponseType->property_previousState); ++ _ncTerminateInstanceResponseType->property_previousState = NULL; ++ } ++ ++ ++ ++ _ncTerminateInstanceResponseType->is_valid_previousState = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether previousState is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_previousState_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceResponseType->is_valid_previousState; ++ } ++ ++ /** ++ * Set previousState to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_previousState_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceResponseType_reset_previousState(_ncTerminateInstanceResponseType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncTerminateInstanceResponseType.h' +--- old/cluster/generated/adb_ncTerminateInstanceResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncTerminateInstanceResponseType.h 2010-01-05 01:00:43 +0000 +@@ -0,0 +1,518 @@ ++ ++ ++ #ifndef ADB_NCTERMINATEINSTANCERESPONSETYPE_H ++ #define ADB_NCTERMINATEINSTANCERESPONSETYPE_H ++ ++ /** ++ * adb_ncTerminateInstanceResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncTerminateInstanceResponseType class ++ */ ++ typedef struct adb_ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncTerminateInstanceResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncTerminateInstanceResponseType_t object ++ */ ++ adb_ncTerminateInstanceResponseType_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncTerminateInstanceResponseType_t object ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_free ( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_correlationId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_correlationId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_correlationId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_userId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_userId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_userId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_return( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_return( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_return( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_statusMessage( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_statusMessage( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_statusMessage( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceId. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_instanceId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceId. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_instanceId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId); ++ ++ /** ++ * Resetter for instanceId ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_instanceId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for shutdownState. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_shutdownState( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for shutdownState. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_shutdownState axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_shutdownState( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_shutdownState); ++ ++ /** ++ * Resetter for shutdownState ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_shutdownState( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for previousState. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_previousState( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for previousState. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_previousState axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_previousState( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_previousState); ++ ++ /** ++ * Resetter for previousState ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_previousState( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_correlationId_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_userId_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_return_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_statusMessage_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_statusMessage_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether instanceId is nill ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_instanceId_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether shutdownState is nill ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_shutdownState_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether previousState is nill ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_previousState_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_deserialize( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_declare_parent_namespaces( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param ncTerminateInstanceResponseType_om_node node to serialize from ++ * @param ncTerminateInstanceResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_serialize( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* ncTerminateInstanceResponseType_om_node, axiom_element_t *ncTerminateInstanceResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncTerminateInstanceResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCTERMINATEINSTANCERESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_ncTerminateInstanceType.c' +--- old/cluster/generated/adb_ncTerminateInstanceType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncTerminateInstanceType.c 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,1720 @@ ++ ++ ++ /** ++ * adb_ncTerminateInstanceType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncTerminateInstanceType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncTerminateInstanceType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncTerminateInstanceType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_char_t* property_instanceId; ++ ++ ++ axis2_bool_t is_valid_instanceId; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_correlationId_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_userId_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_return_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_instanceId_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncTerminateInstanceType_t* AXIS2_CALL ++ adb_ncTerminateInstanceType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncTerminateInstanceType_t *_ncTerminateInstanceType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncTerminateInstanceType = (adb_ncTerminateInstanceType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncTerminateInstanceType_t)); ++ ++ if(NULL == _ncTerminateInstanceType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncTerminateInstanceType, 0, sizeof(adb_ncTerminateInstanceType_t)); ++ ++ _ncTerminateInstanceType->property_correlationId = NULL; ++ _ncTerminateInstanceType->is_valid_correlationId = AXIS2_FALSE; ++ _ncTerminateInstanceType->property_userId = NULL; ++ _ncTerminateInstanceType->is_valid_userId = AXIS2_FALSE; ++ _ncTerminateInstanceType->is_valid_return = AXIS2_FALSE; ++ _ncTerminateInstanceType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncTerminateInstanceType->property_instanceId = NULL; ++ _ncTerminateInstanceType->is_valid_instanceId = AXIS2_FALSE; ++ ++ ++ return _ncTerminateInstanceType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_free ( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_FAILURE); ++ ++ adb_ncTerminateInstanceType_reset_correlationId(_ncTerminateInstanceType, env); ++ adb_ncTerminateInstanceType_reset_userId(_ncTerminateInstanceType, env); ++ adb_ncTerminateInstanceType_reset_return(_ncTerminateInstanceType, env); ++ adb_ncTerminateInstanceType_reset_statusMessage(_ncTerminateInstanceType, env); ++ adb_ncTerminateInstanceType_reset_instanceId(_ncTerminateInstanceType, env); ++ ++ ++ if(_ncTerminateInstanceType) ++ { ++ AXIS2_FREE(env->allocator, _ncTerminateInstanceType); ++ _ncTerminateInstanceType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_deserialize( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncTerminateInstanceType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncTerminateInstanceType_set_correlationId(_ncTerminateInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncTerminateInstanceType_set_correlationId(_ncTerminateInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncTerminateInstanceType_set_userId(_ncTerminateInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncTerminateInstanceType_set_userId(_ncTerminateInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncTerminateInstanceType_set_return(_ncTerminateInstanceType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncTerminateInstanceType_set_return(_ncTerminateInstanceType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncTerminateInstanceType_set_statusMessage(_ncTerminateInstanceType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncTerminateInstanceType_set_instanceId(_ncTerminateInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncTerminateInstanceType_set_instanceId(_ncTerminateInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element instanceId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncTerminateInstanceType_declare_parent_namespaces( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncTerminateInstanceType_serialize( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncTerminateInstanceType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncTerminateInstanceType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncTerminateInstanceType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncTerminateInstanceType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceType->is_valid_instanceId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _ncTerminateInstanceType->property_instanceId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceType_get_correlationId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, NULL); ++ ++ ++ return _ncTerminateInstanceType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_correlationId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceType->is_valid_correlationId && ++ arg_correlationId == _ncTerminateInstanceType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncTerminateInstanceType_reset_correlationId(_ncTerminateInstanceType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncTerminateInstanceType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncTerminateInstanceType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncTerminateInstanceType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_reset_correlationId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncTerminateInstanceType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncTerminateInstanceType->property_correlationId); ++ _ncTerminateInstanceType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncTerminateInstanceType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_is_correlationId_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_correlationId_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceType_reset_correlationId(_ncTerminateInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceType_get_userId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, NULL); ++ ++ ++ return _ncTerminateInstanceType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_userId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceType->is_valid_userId && ++ arg_userId == _ncTerminateInstanceType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncTerminateInstanceType_reset_userId(_ncTerminateInstanceType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncTerminateInstanceType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncTerminateInstanceType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncTerminateInstanceType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_reset_userId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncTerminateInstanceType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncTerminateInstanceType->property_userId); ++ _ncTerminateInstanceType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncTerminateInstanceType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_is_userId_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_userId_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceType_reset_userId(_ncTerminateInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_get_return( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, (axis2_bool_t)0); ++ ++ ++ return _ncTerminateInstanceType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_return( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceType->is_valid_return && ++ arg_return == _ncTerminateInstanceType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncTerminateInstanceType_reset_return(_ncTerminateInstanceType, env); ++ ++ _ncTerminateInstanceType->property_return = arg_return; ++ _ncTerminateInstanceType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_reset_return( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_FAILURE); ++ ++ ++ _ncTerminateInstanceType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_is_return_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_return_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceType_reset_return(_ncTerminateInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncTerminateInstanceType_get_statusMessage( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, (int)0); ++ ++ ++ return _ncTerminateInstanceType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_statusMessage( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceType->is_valid_statusMessage && ++ arg_statusMessage == _ncTerminateInstanceType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncTerminateInstanceType_reset_statusMessage(_ncTerminateInstanceType, env); ++ ++ _ncTerminateInstanceType->property_statusMessage = arg_statusMessage; ++ _ncTerminateInstanceType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_reset_statusMessage( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_FAILURE); ++ ++ ++ _ncTerminateInstanceType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_is_statusMessage_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_statusMessage_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceType_reset_statusMessage(_ncTerminateInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceType_get_instanceId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, NULL); ++ ++ ++ return _ncTerminateInstanceType->property_instanceId; ++ } ++ ++ /** ++ * setter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_instanceId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceType->is_valid_instanceId && ++ arg_instanceId == _ncTerminateInstanceType->property_instanceId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncTerminateInstanceType_reset_instanceId(_ncTerminateInstanceType, env); ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncTerminateInstanceType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId); ++ if(NULL == _ncTerminateInstanceType->property_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId"); ++ return AXIS2_FAILURE; ++ } ++ _ncTerminateInstanceType->is_valid_instanceId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_reset_instanceId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncTerminateInstanceType->property_instanceId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncTerminateInstanceType->property_instanceId); ++ _ncTerminateInstanceType->property_instanceId = NULL; ++ } ++ ++ ++ ++ _ncTerminateInstanceType->is_valid_instanceId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_is_instanceId_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceType->is_valid_instanceId; ++ } ++ ++ /** ++ * Set instanceId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_instanceId_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceType_reset_instanceId(_ncTerminateInstanceType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_ncTerminateInstanceType.h' +--- old/cluster/generated/adb_ncTerminateInstanceType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_ncTerminateInstanceType.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,414 @@ ++ ++ ++ #ifndef ADB_NCTERMINATEINSTANCETYPE_H ++ #define ADB_NCTERMINATEINSTANCETYPE_H ++ ++ /** ++ * adb_ncTerminateInstanceType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncTerminateInstanceType class ++ */ ++ typedef struct adb_ncTerminateInstanceType adb_ncTerminateInstanceType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncTerminateInstanceType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncTerminateInstanceType_t object ++ */ ++ adb_ncTerminateInstanceType_t* AXIS2_CALL ++ adb_ncTerminateInstanceType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncTerminateInstanceType_t object ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_free ( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceType_get_correlationId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_correlationId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_reset_correlationId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceType_get_userId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_userId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_reset_userId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_get_return( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_return( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_reset_return( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncTerminateInstanceType_get_statusMessage( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_statusMessage( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_reset_statusMessage( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceId. ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceType_get_instanceId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceId. ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_instanceId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId); ++ ++ /** ++ * Resetter for instanceId ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_reset_instanceId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_is_correlationId_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_is_userId_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_is_return_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_is_statusMessage_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_statusMessage_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether instanceId is nill ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_is_instanceId_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_deserialize( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncTerminateInstanceType_declare_parent_namespaces( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @param ncTerminateInstanceType_om_node node to serialize from ++ * @param ncTerminateInstanceType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncTerminateInstanceType_serialize( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ axiom_node_t* ncTerminateInstanceType_om_node, axiom_element_t *ncTerminateInstanceType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncTerminateInstanceType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCTERMINATEINSTANCETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_netConfigType.c' +--- old/cluster/generated/adb_netConfigType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_netConfigType.c 2010-01-05 01:00:47 +0000 +@@ -0,0 +1,1879 @@ ++ ++ ++ /** ++ * adb_netConfigType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_netConfigType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = netConfigType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_netConfigType ++ { ++ axis2_char_t* property_privateMacAddress; ++ ++ ++ axis2_bool_t is_valid_privateMacAddress; ++ ++ ++ axis2_char_t* property_publicMacAddress; ++ ++ ++ axis2_bool_t is_valid_publicMacAddress; ++ ++ ++ int property_vlan; ++ ++ ++ axis2_bool_t is_valid_vlan; ++ ++ ++ axis2_char_t* property_privateIp; ++ ++ ++ axis2_bool_t is_valid_privateIp; ++ ++ ++ axis2_char_t* property_publicIp; ++ ++ ++ axis2_bool_t is_valid_publicIp; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_privateMacAddress_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_publicMacAddress_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_vlan_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_privateIp_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_publicIp_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_netConfigType_t* AXIS2_CALL ++ adb_netConfigType_create( ++ const axutil_env_t *env) ++ { ++ adb_netConfigType_t *_netConfigType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _netConfigType = (adb_netConfigType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_netConfigType_t)); ++ ++ if(NULL == _netConfigType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_netConfigType, 0, sizeof(adb_netConfigType_t)); ++ ++ _netConfigType->property_privateMacAddress = NULL; ++ _netConfigType->is_valid_privateMacAddress = AXIS2_FALSE; ++ _netConfigType->property_publicMacAddress = NULL; ++ _netConfigType->is_valid_publicMacAddress = AXIS2_FALSE; ++ _netConfigType->is_valid_vlan = AXIS2_FALSE; ++ _netConfigType->property_privateIp = NULL; ++ _netConfigType->is_valid_privateIp = AXIS2_FALSE; ++ _netConfigType->property_publicIp = NULL; ++ _netConfigType->is_valid_publicIp = AXIS2_FALSE; ++ ++ ++ return _netConfigType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_free ( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE); ++ ++ adb_netConfigType_reset_privateMacAddress(_netConfigType, env); ++ adb_netConfigType_reset_publicMacAddress(_netConfigType, env); ++ adb_netConfigType_reset_vlan(_netConfigType, env); ++ adb_netConfigType_reset_privateIp(_netConfigType, env); ++ adb_netConfigType_reset_publicIp(_netConfigType, env); ++ ++ ++ if(_netConfigType) ++ { ++ AXIS2_FREE(env->allocator, _netConfigType); ++ _netConfigType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_deserialize( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for netConfigType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building privateMacAddress element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "privateMacAddress", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_netConfigType_set_privateMacAddress(_netConfigType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element privateMacAddress"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_netConfigType_set_privateMacAddress(_netConfigType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for privateMacAddress "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element privateMacAddress missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building publicMacAddress element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "publicMacAddress", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_netConfigType_set_publicMacAddress(_netConfigType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element publicMacAddress"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_netConfigType_set_publicMacAddress(_netConfigType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for publicMacAddress "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element publicMacAddress missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building vlan element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "vlan", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_netConfigType_set_vlan(_netConfigType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element vlan"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for vlan "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element vlan missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building privateIp element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "privateIp", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_netConfigType_set_privateIp(_netConfigType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element privateIp"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_netConfigType_set_privateIp(_netConfigType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for privateIp "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element privateIp missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building publicIp element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "publicIp", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_netConfigType_set_publicIp(_netConfigType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element publicIp"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_netConfigType_set_publicIp(_netConfigType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for publicIp "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element publicIp missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_netConfigType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_netConfigType_declare_parent_namespaces( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_netConfigType_serialize( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t *text_value_4; ++ axis2_char_t *text_value_4_temp; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_netConfigType->is_valid_privateMacAddress) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property privateMacAddress"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("privateMacAddress"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("privateMacAddress"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing privateMacAddress element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sprivateMacAddress>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _netConfigType->property_privateMacAddress; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_netConfigType->is_valid_publicMacAddress) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property publicMacAddress"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("publicMacAddress"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("publicMacAddress"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing publicMacAddress element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%spublicMacAddress>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _netConfigType->property_publicMacAddress; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_netConfigType->is_valid_vlan) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property vlan"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("vlan"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("vlan"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing vlan element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%svlan>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_3, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _netConfigType->property_vlan); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_netConfigType->is_valid_privateIp) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property privateIp"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("privateIp"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("privateIp"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing privateIp element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sprivateIp>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_4 = _netConfigType->property_privateIp; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_4_temp = axutil_xml_quote_string(env, text_value_4, AXIS2_TRUE); ++ if (text_value_4_temp) ++ { ++ axutil_stream_write(stream, env, text_value_4_temp, axutil_strlen(text_value_4_temp)); ++ AXIS2_FREE(env->allocator, text_value_4_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_netConfigType->is_valid_publicIp) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property publicIp"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("publicIp"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("publicIp"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing publicIp element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%spublicIp>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _netConfigType->property_publicIp; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for privateMacAddress. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_netConfigType_get_privateMacAddress( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, NULL); ++ ++ ++ return _netConfigType->property_privateMacAddress; ++ } ++ ++ /** ++ * setter for privateMacAddress ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_privateMacAddress( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_privateMacAddress) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE); ++ ++ if(_netConfigType->is_valid_privateMacAddress && ++ arg_privateMacAddress == _netConfigType->property_privateMacAddress) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_privateMacAddress) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "privateMacAddress is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_netConfigType_reset_privateMacAddress(_netConfigType, env); ++ ++ ++ if(NULL == arg_privateMacAddress) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _netConfigType->property_privateMacAddress = (axis2_char_t *)axutil_strdup(env, arg_privateMacAddress); ++ if(NULL == _netConfigType->property_privateMacAddress) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for privateMacAddress"); ++ return AXIS2_FAILURE; ++ } ++ _netConfigType->is_valid_privateMacAddress = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for privateMacAddress ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_reset_privateMacAddress( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_netConfigType->property_privateMacAddress != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _netConfigType->property_privateMacAddress); ++ _netConfigType->property_privateMacAddress = NULL; ++ } ++ ++ ++ ++ _netConfigType->is_valid_privateMacAddress = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether privateMacAddress is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_netConfigType_is_privateMacAddress_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_TRUE); ++ ++ return !_netConfigType->is_valid_privateMacAddress; ++ } ++ ++ /** ++ * Set privateMacAddress to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_privateMacAddress_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ return adb_netConfigType_reset_privateMacAddress(_netConfigType, env); ++ } ++ ++ ++ ++ /** ++ * getter for publicMacAddress. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_netConfigType_get_publicMacAddress( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, NULL); ++ ++ ++ return _netConfigType->property_publicMacAddress; ++ } ++ ++ /** ++ * setter for publicMacAddress ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_publicMacAddress( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_publicMacAddress) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE); ++ ++ if(_netConfigType->is_valid_publicMacAddress && ++ arg_publicMacAddress == _netConfigType->property_publicMacAddress) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_publicMacAddress) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "publicMacAddress is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_netConfigType_reset_publicMacAddress(_netConfigType, env); ++ ++ ++ if(NULL == arg_publicMacAddress) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _netConfigType->property_publicMacAddress = (axis2_char_t *)axutil_strdup(env, arg_publicMacAddress); ++ if(NULL == _netConfigType->property_publicMacAddress) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for publicMacAddress"); ++ return AXIS2_FAILURE; ++ } ++ _netConfigType->is_valid_publicMacAddress = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for publicMacAddress ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_reset_publicMacAddress( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_netConfigType->property_publicMacAddress != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _netConfigType->property_publicMacAddress); ++ _netConfigType->property_publicMacAddress = NULL; ++ } ++ ++ ++ ++ _netConfigType->is_valid_publicMacAddress = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether publicMacAddress is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_netConfigType_is_publicMacAddress_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_TRUE); ++ ++ return !_netConfigType->is_valid_publicMacAddress; ++ } ++ ++ /** ++ * Set publicMacAddress to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_publicMacAddress_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ return adb_netConfigType_reset_publicMacAddress(_netConfigType, env); ++ } ++ ++ ++ ++ /** ++ * getter for vlan. ++ */ ++ int AXIS2_CALL ++ adb_netConfigType_get_vlan( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, (int)0); ++ ++ ++ return _netConfigType->property_vlan; ++ } ++ ++ /** ++ * setter for vlan ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_vlan( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ const int arg_vlan) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE); ++ ++ if(_netConfigType->is_valid_vlan && ++ arg_vlan == _netConfigType->property_vlan) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_netConfigType_reset_vlan(_netConfigType, env); ++ ++ _netConfigType->property_vlan = arg_vlan; ++ _netConfigType->is_valid_vlan = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for vlan ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_reset_vlan( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE); ++ ++ ++ _netConfigType->is_valid_vlan = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether vlan is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_netConfigType_is_vlan_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_TRUE); ++ ++ return !_netConfigType->is_valid_vlan; ++ } ++ ++ /** ++ * Set vlan to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_vlan_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ return adb_netConfigType_reset_vlan(_netConfigType, env); ++ } ++ ++ ++ ++ /** ++ * getter for privateIp. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_netConfigType_get_privateIp( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, NULL); ++ ++ ++ return _netConfigType->property_privateIp; ++ } ++ ++ /** ++ * setter for privateIp ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_privateIp( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_privateIp) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE); ++ ++ if(_netConfigType->is_valid_privateIp && ++ arg_privateIp == _netConfigType->property_privateIp) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_privateIp) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "privateIp is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_netConfigType_reset_privateIp(_netConfigType, env); ++ ++ ++ if(NULL == arg_privateIp) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _netConfigType->property_privateIp = (axis2_char_t *)axutil_strdup(env, arg_privateIp); ++ if(NULL == _netConfigType->property_privateIp) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for privateIp"); ++ return AXIS2_FAILURE; ++ } ++ _netConfigType->is_valid_privateIp = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for privateIp ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_reset_privateIp( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_netConfigType->property_privateIp != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _netConfigType->property_privateIp); ++ _netConfigType->property_privateIp = NULL; ++ } ++ ++ ++ ++ _netConfigType->is_valid_privateIp = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether privateIp is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_netConfigType_is_privateIp_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_TRUE); ++ ++ return !_netConfigType->is_valid_privateIp; ++ } ++ ++ /** ++ * Set privateIp to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_privateIp_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ return adb_netConfigType_reset_privateIp(_netConfigType, env); ++ } ++ ++ ++ ++ /** ++ * getter for publicIp. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_netConfigType_get_publicIp( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, NULL); ++ ++ ++ return _netConfigType->property_publicIp; ++ } ++ ++ /** ++ * setter for publicIp ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_publicIp( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_publicIp) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE); ++ ++ if(_netConfigType->is_valid_publicIp && ++ arg_publicIp == _netConfigType->property_publicIp) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_publicIp) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "publicIp is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_netConfigType_reset_publicIp(_netConfigType, env); ++ ++ ++ if(NULL == arg_publicIp) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _netConfigType->property_publicIp = (axis2_char_t *)axutil_strdup(env, arg_publicIp); ++ if(NULL == _netConfigType->property_publicIp) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for publicIp"); ++ return AXIS2_FAILURE; ++ } ++ _netConfigType->is_valid_publicIp = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for publicIp ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_reset_publicIp( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_netConfigType->property_publicIp != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _netConfigType->property_publicIp); ++ _netConfigType->property_publicIp = NULL; ++ } ++ ++ ++ ++ _netConfigType->is_valid_publicIp = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether publicIp is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_netConfigType_is_publicIp_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_TRUE); ++ ++ return !_netConfigType->is_valid_publicIp; ++ } ++ ++ /** ++ * Set publicIp to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_publicIp_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ return adb_netConfigType_reset_publicIp(_netConfigType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_netConfigType.h' +--- old/cluster/generated/adb_netConfigType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_netConfigType.h 2010-01-05 01:00:47 +0000 +@@ -0,0 +1,403 @@ ++ ++ ++ #ifndef ADB_NETCONFIGTYPE_H ++ #define ADB_NETCONFIGTYPE_H ++ ++ /** ++ * adb_netConfigType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_netConfigType class ++ */ ++ typedef struct adb_netConfigType adb_netConfigType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_netConfigType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_netConfigType_t object ++ */ ++ adb_netConfigType_t* AXIS2_CALL ++ adb_netConfigType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_netConfigType_t object ++ * @param _netConfigType adb_netConfigType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_free ( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for privateMacAddress. ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_netConfigType_get_privateMacAddress( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for privateMacAddress. ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @param arg_privateMacAddress axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_privateMacAddress( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_privateMacAddress); ++ ++ /** ++ * Resetter for privateMacAddress ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_reset_privateMacAddress( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for publicMacAddress. ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_netConfigType_get_publicMacAddress( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for publicMacAddress. ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @param arg_publicMacAddress axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_publicMacAddress( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_publicMacAddress); ++ ++ /** ++ * Resetter for publicMacAddress ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_reset_publicMacAddress( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for vlan. ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_netConfigType_get_vlan( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for vlan. ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @param arg_vlan int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_vlan( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ const int arg_vlan); ++ ++ /** ++ * Resetter for vlan ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_reset_vlan( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for privateIp. ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_netConfigType_get_privateIp( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for privateIp. ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @param arg_privateIp axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_privateIp( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_privateIp); ++ ++ /** ++ * Resetter for privateIp ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_reset_privateIp( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for publicIp. ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_netConfigType_get_publicIp( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for publicIp. ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @param arg_publicIp axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_publicIp( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_publicIp); ++ ++ /** ++ * Resetter for publicIp ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_reset_publicIp( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether privateMacAddress is nill ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_netConfigType_is_privateMacAddress_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether publicMacAddress is nill ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_netConfigType_is_publicMacAddress_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether vlan is nill ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_netConfigType_is_vlan_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether privateIp is nill ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_netConfigType_is_privateIp_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether publicIp is nill ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_netConfigType_is_publicIp_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_deserialize( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_netConfigType_declare_parent_namespaces( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @param netConfigType_om_node node to serialize from ++ * @param netConfigType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_netConfigType_serialize( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ axiom_node_t* netConfigType_om_node, axiom_element_t *netConfigType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_netConfigType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_netConfigType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NETCONFIGTYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_networkRule.c' +--- old/cluster/generated/adb_networkRule.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_networkRule.c 2010-01-05 01:00:47 +0000 +@@ -0,0 +1,4279 @@ ++ ++ ++ /** ++ * adb_networkRule.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_networkRule.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = networkRule ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_networkRule ++ { ++ axis2_char_t* property_type; ++ ++ ++ axis2_bool_t is_valid_type; ++ ++ ++ axutil_array_list_t* property_sourceNames; ++ ++ ++ axis2_bool_t is_valid_sourceNames; ++ ++ ++ axutil_array_list_t* property_userNames; ++ ++ ++ axis2_bool_t is_valid_userNames; ++ ++ ++ axutil_array_list_t* property_sourceNets; ++ ++ ++ axis2_bool_t is_valid_sourceNets; ++ ++ ++ axis2_char_t* property_destUserName; ++ ++ ++ axis2_bool_t is_valid_destUserName; ++ ++ ++ axis2_char_t* property_destName; ++ ++ ++ axis2_bool_t is_valid_destName; ++ ++ ++ axis2_char_t* property_protocol; ++ ++ ++ axis2_bool_t is_valid_protocol; ++ ++ ++ int property_portRangeMin; ++ ++ ++ axis2_bool_t is_valid_portRangeMin; ++ ++ ++ int property_portRangeMax; ++ ++ ++ axis2_bool_t is_valid_portRangeMax; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_type_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_sourceNames_nil_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_sourceNames_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_userNames_nil_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_userNames_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_sourceNets_nil_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_sourceNets_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_destUserName_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_destName_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_protocol_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_portRangeMin_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_portRangeMax_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_networkRule_t* AXIS2_CALL ++ adb_networkRule_create( ++ const axutil_env_t *env) ++ { ++ adb_networkRule_t *_networkRule = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _networkRule = (adb_networkRule_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_networkRule_t)); ++ ++ if(NULL == _networkRule) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_networkRule, 0, sizeof(adb_networkRule_t)); ++ ++ _networkRule->property_type = NULL; ++ _networkRule->is_valid_type = AXIS2_FALSE; ++ _networkRule->property_sourceNames = NULL; ++ _networkRule->is_valid_sourceNames = AXIS2_FALSE; ++ _networkRule->property_userNames = NULL; ++ _networkRule->is_valid_userNames = AXIS2_FALSE; ++ _networkRule->property_sourceNets = NULL; ++ _networkRule->is_valid_sourceNets = AXIS2_FALSE; ++ _networkRule->property_destUserName = NULL; ++ _networkRule->is_valid_destUserName = AXIS2_FALSE; ++ _networkRule->property_destName = NULL; ++ _networkRule->is_valid_destName = AXIS2_FALSE; ++ _networkRule->property_protocol = NULL; ++ _networkRule->is_valid_protocol = AXIS2_FALSE; ++ _networkRule->is_valid_portRangeMin = AXIS2_FALSE; ++ _networkRule->is_valid_portRangeMax = AXIS2_FALSE; ++ ++ ++ return _networkRule; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_free ( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ adb_networkRule_reset_type(_networkRule, env); ++ adb_networkRule_reset_sourceNames(_networkRule, env); ++ adb_networkRule_reset_userNames(_networkRule, env); ++ adb_networkRule_reset_sourceNets(_networkRule, env); ++ adb_networkRule_reset_destUserName(_networkRule, env); ++ adb_networkRule_reset_destName(_networkRule, env); ++ adb_networkRule_reset_protocol(_networkRule, env); ++ adb_networkRule_reset_portRangeMin(_networkRule, env); ++ adb_networkRule_reset_portRangeMax(_networkRule, env); ++ ++ ++ if(_networkRule) ++ { ++ AXIS2_FREE(env->allocator, _networkRule); ++ _networkRule = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_deserialize( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for networkRule : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building type element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "type", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_networkRule_set_type(_networkRule, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element type"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_networkRule_set_type(_networkRule, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for type "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element type missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building sourceNames array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building sourceNames element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "sourceNames", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value)); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element sourceNames"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, "")); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for sourceNames "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sourceNames (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_networkRule_set_sourceNames(_networkRule, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building userNames array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building userNames element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "userNames", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value)); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userNames"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, "")); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userNames "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "userNames (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_networkRule_set_userNames(_networkRule, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building sourceNets array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building sourceNets element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "sourceNets", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value)); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element sourceNets"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, "")); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for sourceNets "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sourceNets (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_networkRule_set_sourceNets(_networkRule, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building destUserName element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "destUserName", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_networkRule_set_destUserName(_networkRule, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element destUserName"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_networkRule_set_destUserName(_networkRule, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for destUserName "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building destName element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "destName", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_networkRule_set_destName(_networkRule, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element destName"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_networkRule_set_destName(_networkRule, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for destName "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element destName missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building protocol element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "protocol", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_networkRule_set_protocol(_networkRule, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element protocol"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_networkRule_set_protocol(_networkRule, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for protocol "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element protocol missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building portRangeMin element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "portRangeMin", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_networkRule_set_portRangeMin(_networkRule, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element portRangeMin"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for portRangeMin "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element portRangeMin missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building portRangeMax element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "portRangeMax", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_networkRule_set_portRangeMax(_networkRule, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element portRangeMax"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for portRangeMax "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element portRangeMax missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_networkRule_declare_parent_namespaces( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_networkRule_serialize( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t *text_value_4; ++ axis2_char_t *text_value_4_temp; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *text_value_6; ++ axis2_char_t *text_value_6_temp; ++ ++ axis2_char_t *text_value_7; ++ axis2_char_t *text_value_7_temp; ++ ++ axis2_char_t text_value_8[64]; ++ ++ axis2_char_t text_value_9[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_networkRule->is_valid_type) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property type"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("type"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("type"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing type element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%stype>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _networkRule->property_type; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_networkRule->is_valid_sourceNames) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("sourceNames"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("sourceNames"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing sourceNames array ++ */ ++ if (_networkRule->property_sourceNames != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%ssourceNames>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_networkRule->property_sourceNames, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_networkRule->property_sourceNames, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing sourceNames element ++ */ ++ ++ ++ ++ text_value_2 = (axis2_char_t*)element; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_networkRule->is_valid_userNames) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userNames"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userNames"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing userNames array ++ */ ++ if (_networkRule->property_userNames != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%suserNames>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_networkRule->property_userNames, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_networkRule->property_userNames, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing userNames element ++ */ ++ ++ ++ ++ text_value_3 = (axis2_char_t*)element; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_networkRule->is_valid_sourceNets) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("sourceNets"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("sourceNets"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing sourceNets array ++ */ ++ if (_networkRule->property_sourceNets != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%ssourceNets>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_networkRule->property_sourceNets, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_networkRule->property_sourceNets, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing sourceNets element ++ */ ++ ++ ++ ++ text_value_4 = (axis2_char_t*)element; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_4_temp = axutil_xml_quote_string(env, text_value_4, AXIS2_TRUE); ++ if (text_value_4_temp) ++ { ++ axutil_stream_write(stream, env, text_value_4_temp, axutil_strlen(text_value_4_temp)); ++ AXIS2_FREE(env->allocator, text_value_4_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_networkRule->is_valid_destUserName) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("destUserName"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("destUserName"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing destUserName element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sdestUserName>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _networkRule->property_destUserName; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_networkRule->is_valid_destName) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property destName"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("destName"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("destName"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing destName element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sdestName>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_6 = _networkRule->property_destName; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE); ++ if (text_value_6_temp) ++ { ++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp)); ++ AXIS2_FREE(env->allocator, text_value_6_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_networkRule->is_valid_protocol) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property protocol"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("protocol"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("protocol"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing protocol element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sprotocol>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_7 = _networkRule->property_protocol; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE); ++ if (text_value_7_temp) ++ { ++ axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp)); ++ AXIS2_FREE(env->allocator, text_value_7_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_networkRule->is_valid_portRangeMin) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property portRangeMin"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("portRangeMin"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("portRangeMin"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing portRangeMin element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sportRangeMin>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_8, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _networkRule->property_portRangeMin); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_networkRule->is_valid_portRangeMax) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property portRangeMax"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("portRangeMax"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("portRangeMax"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing portRangeMax element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sportRangeMax>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_9, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _networkRule->property_portRangeMax); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_9, axutil_strlen(text_value_9)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for type. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_networkRule_get_type( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, NULL); ++ ++ ++ return _networkRule->property_type; ++ } ++ ++ /** ++ * setter for type ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_type( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_type) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ if(_networkRule->is_valid_type && ++ arg_type == _networkRule->property_type) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_type) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "type is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_networkRule_reset_type(_networkRule, env); ++ ++ ++ if(NULL == arg_type) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _networkRule->property_type = (axis2_char_t *)axutil_strdup(env, arg_type); ++ if(NULL == _networkRule->property_type) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for type"); ++ return AXIS2_FAILURE; ++ } ++ _networkRule->is_valid_type = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for type ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_reset_type( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_networkRule->property_type != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _networkRule->property_type); ++ _networkRule->property_type = NULL; ++ } ++ ++ ++ ++ _networkRule->is_valid_type = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether type is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_type_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_TRUE); ++ ++ return !_networkRule->is_valid_type; ++ } ++ ++ /** ++ * Set type to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_type_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ return adb_networkRule_reset_type(_networkRule, env); ++ } ++ ++ ++ ++ /** ++ * getter for sourceNames. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_networkRule_get_sourceNames( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, NULL); ++ ++ ++ return _networkRule->property_sourceNames; ++ } ++ ++ /** ++ * setter for sourceNames ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_sourceNames( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_sourceNames) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ if(_networkRule->is_valid_sourceNames && ++ arg_sourceNames == _networkRule->property_sourceNames) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_sourceNames, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sourceNames has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_sourceNames, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_networkRule_reset_sourceNames(_networkRule, env); ++ ++ ++ if(NULL == arg_sourceNames) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _networkRule->property_sourceNames = arg_sourceNames; ++ if(non_nil_exists) ++ { ++ _networkRule->is_valid_sourceNames = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of sourceNames. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_networkRule_get_sourceNames_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i) ++ { ++ axis2_char_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, NULL); ++ ++ ++ if(_networkRule->property_sourceNames == NULL) ++ { ++ return (axis2_char_t*)0; ++ } ++ ret_val = (axis2_char_t*)axutil_array_list_get(_networkRule->property_sourceNames, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of sourceNames. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_sourceNames_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_sourceNames) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ if( _networkRule->is_valid_sourceNames && ++ _networkRule->property_sourceNames && ++ ++ arg_sourceNames == (axis2_char_t*)axutil_array_list_get(_networkRule->property_sourceNames, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_sourceNames) ++ { ++ if(_networkRule->property_sourceNames != NULL) ++ { ++ size = axutil_array_list_size(_networkRule->property_sourceNames, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_networkRule->property_sourceNames, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of sourceNames is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_networkRule->property_sourceNames == NULL) ++ { ++ _networkRule->property_sourceNames = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_networkRule->property_sourceNames, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _networkRule->is_valid_sourceNames = AXIS2_FALSE; ++ axutil_array_list_set(_networkRule->property_sourceNames , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_networkRule->property_sourceNames , env, i, axutil_strdup(env, arg_sourceNames)); ++ _networkRule->is_valid_sourceNames = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to sourceNames. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_add_sourceNames( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_sourceNames) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_sourceNames) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_networkRule->property_sourceNames == NULL) ++ { ++ _networkRule->property_sourceNames = axutil_array_list_create(env, 10); ++ } ++ if(_networkRule->property_sourceNames == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for sourceNames"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_networkRule->property_sourceNames , env, axutil_strdup(env, arg_sourceNames)); ++ _networkRule->is_valid_sourceNames = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the sourceNames array. ++ */ ++ int AXIS2_CALL ++ adb_networkRule_sizeof_sourceNames( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, -1); ++ if(_networkRule->property_sourceNames == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_networkRule->property_sourceNames, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_remove_sourceNames_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i) ++ { ++ return adb_networkRule_set_sourceNames_nil_at(_networkRule, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for sourceNames ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_reset_sourceNames( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ ++ ++ if (_networkRule->property_sourceNames != NULL) ++ { ++ count = axutil_array_list_size(_networkRule->property_sourceNames, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_networkRule->property_sourceNames, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_networkRule->property_sourceNames, env); ++ } ++ _networkRule->is_valid_sourceNames = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether sourceNames is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_sourceNames_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_TRUE); ++ ++ return !_networkRule->is_valid_sourceNames; ++ } ++ ++ /** ++ * Set sourceNames to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_sourceNames_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ return adb_networkRule_reset_sourceNames(_networkRule, env); ++ } ++ ++ ++ /** ++ * Check whether sourceNames is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_sourceNames_nil_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_TRUE); ++ ++ return (_networkRule->is_valid_sourceNames == AXIS2_FALSE || ++ NULL == _networkRule->property_sourceNames || ++ NULL == axutil_array_list_get(_networkRule->property_sourceNames, env, i)); ++ } ++ ++ /** ++ * Set sourceNames to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_sourceNames_nil_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ if(_networkRule->property_sourceNames == NULL || ++ _networkRule->is_valid_sourceNames == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_networkRule->property_sourceNames, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_networkRule->property_sourceNames, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of sourceNames is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_networkRule->property_sourceNames == NULL) ++ { ++ _networkRule->is_valid_sourceNames = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_networkRule->property_sourceNames, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _networkRule->is_valid_sourceNames = AXIS2_FALSE; ++ axutil_array_list_set(_networkRule->property_sourceNames , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_networkRule->property_sourceNames , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ ++ /** ++ * getter for userNames. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_networkRule_get_userNames( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, NULL); ++ ++ ++ return _networkRule->property_userNames; ++ } ++ ++ /** ++ * setter for userNames ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_userNames( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_userNames) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ if(_networkRule->is_valid_userNames && ++ arg_userNames == _networkRule->property_userNames) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_userNames, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "userNames has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_userNames, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_networkRule_reset_userNames(_networkRule, env); ++ ++ ++ if(NULL == arg_userNames) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _networkRule->property_userNames = arg_userNames; ++ if(non_nil_exists) ++ { ++ _networkRule->is_valid_userNames = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of userNames. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_networkRule_get_userNames_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i) ++ { ++ axis2_char_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, NULL); ++ ++ ++ if(_networkRule->property_userNames == NULL) ++ { ++ return (axis2_char_t*)0; ++ } ++ ret_val = (axis2_char_t*)axutil_array_list_get(_networkRule->property_userNames, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of userNames. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_userNames_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_userNames) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ if( _networkRule->is_valid_userNames && ++ _networkRule->property_userNames && ++ ++ arg_userNames == (axis2_char_t*)axutil_array_list_get(_networkRule->property_userNames, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_userNames) ++ { ++ if(_networkRule->property_userNames != NULL) ++ { ++ size = axutil_array_list_size(_networkRule->property_userNames, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_networkRule->property_userNames, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of userNames is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_networkRule->property_userNames == NULL) ++ { ++ _networkRule->property_userNames = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_networkRule->property_userNames, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _networkRule->is_valid_userNames = AXIS2_FALSE; ++ axutil_array_list_set(_networkRule->property_userNames , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_networkRule->property_userNames , env, i, axutil_strdup(env, arg_userNames)); ++ _networkRule->is_valid_userNames = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to userNames. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_add_userNames( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userNames) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_userNames) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_networkRule->property_userNames == NULL) ++ { ++ _networkRule->property_userNames = axutil_array_list_create(env, 10); ++ } ++ if(_networkRule->property_userNames == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for userNames"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_networkRule->property_userNames , env, axutil_strdup(env, arg_userNames)); ++ _networkRule->is_valid_userNames = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the userNames array. ++ */ ++ int AXIS2_CALL ++ adb_networkRule_sizeof_userNames( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, -1); ++ if(_networkRule->property_userNames == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_networkRule->property_userNames, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_remove_userNames_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i) ++ { ++ return adb_networkRule_set_userNames_nil_at(_networkRule, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for userNames ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_reset_userNames( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ ++ ++ if (_networkRule->property_userNames != NULL) ++ { ++ count = axutil_array_list_size(_networkRule->property_userNames, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_networkRule->property_userNames, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_networkRule->property_userNames, env); ++ } ++ _networkRule->is_valid_userNames = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userNames is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_userNames_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_TRUE); ++ ++ return !_networkRule->is_valid_userNames; ++ } ++ ++ /** ++ * Set userNames to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_userNames_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ return adb_networkRule_reset_userNames(_networkRule, env); ++ } ++ ++ ++ /** ++ * Check whether userNames is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_userNames_nil_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_TRUE); ++ ++ return (_networkRule->is_valid_userNames == AXIS2_FALSE || ++ NULL == _networkRule->property_userNames || ++ NULL == axutil_array_list_get(_networkRule->property_userNames, env, i)); ++ } ++ ++ /** ++ * Set userNames to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_userNames_nil_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ if(_networkRule->property_userNames == NULL || ++ _networkRule->is_valid_userNames == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_networkRule->property_userNames, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_networkRule->property_userNames, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of userNames is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_networkRule->property_userNames == NULL) ++ { ++ _networkRule->is_valid_userNames = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_networkRule->property_userNames, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _networkRule->is_valid_userNames = AXIS2_FALSE; ++ axutil_array_list_set(_networkRule->property_userNames , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_networkRule->property_userNames , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ ++ /** ++ * getter for sourceNets. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_networkRule_get_sourceNets( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, NULL); ++ ++ ++ return _networkRule->property_sourceNets; ++ } ++ ++ /** ++ * setter for sourceNets ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_sourceNets( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_sourceNets) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ if(_networkRule->is_valid_sourceNets && ++ arg_sourceNets == _networkRule->property_sourceNets) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_sourceNets, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sourceNets has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_sourceNets, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_networkRule_reset_sourceNets(_networkRule, env); ++ ++ ++ if(NULL == arg_sourceNets) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _networkRule->property_sourceNets = arg_sourceNets; ++ if(non_nil_exists) ++ { ++ _networkRule->is_valid_sourceNets = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of sourceNets. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_networkRule_get_sourceNets_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i) ++ { ++ axis2_char_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, NULL); ++ ++ ++ if(_networkRule->property_sourceNets == NULL) ++ { ++ return (axis2_char_t*)0; ++ } ++ ret_val = (axis2_char_t*)axutil_array_list_get(_networkRule->property_sourceNets, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of sourceNets. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_sourceNets_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_sourceNets) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ if( _networkRule->is_valid_sourceNets && ++ _networkRule->property_sourceNets && ++ ++ arg_sourceNets == (axis2_char_t*)axutil_array_list_get(_networkRule->property_sourceNets, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_sourceNets) ++ { ++ if(_networkRule->property_sourceNets != NULL) ++ { ++ size = axutil_array_list_size(_networkRule->property_sourceNets, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_networkRule->property_sourceNets, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of sourceNets is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_networkRule->property_sourceNets == NULL) ++ { ++ _networkRule->property_sourceNets = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_networkRule->property_sourceNets, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _networkRule->is_valid_sourceNets = AXIS2_FALSE; ++ axutil_array_list_set(_networkRule->property_sourceNets , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_networkRule->property_sourceNets , env, i, axutil_strdup(env, arg_sourceNets)); ++ _networkRule->is_valid_sourceNets = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to sourceNets. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_add_sourceNets( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_sourceNets) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_sourceNets) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_networkRule->property_sourceNets == NULL) ++ { ++ _networkRule->property_sourceNets = axutil_array_list_create(env, 10); ++ } ++ if(_networkRule->property_sourceNets == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for sourceNets"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_networkRule->property_sourceNets , env, axutil_strdup(env, arg_sourceNets)); ++ _networkRule->is_valid_sourceNets = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the sourceNets array. ++ */ ++ int AXIS2_CALL ++ adb_networkRule_sizeof_sourceNets( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, -1); ++ if(_networkRule->property_sourceNets == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_networkRule->property_sourceNets, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_remove_sourceNets_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i) ++ { ++ return adb_networkRule_set_sourceNets_nil_at(_networkRule, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for sourceNets ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_reset_sourceNets( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ ++ ++ if (_networkRule->property_sourceNets != NULL) ++ { ++ count = axutil_array_list_size(_networkRule->property_sourceNets, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_networkRule->property_sourceNets, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_networkRule->property_sourceNets, env); ++ } ++ _networkRule->is_valid_sourceNets = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether sourceNets is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_sourceNets_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_TRUE); ++ ++ return !_networkRule->is_valid_sourceNets; ++ } ++ ++ /** ++ * Set sourceNets to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_sourceNets_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ return adb_networkRule_reset_sourceNets(_networkRule, env); ++ } ++ ++ ++ /** ++ * Check whether sourceNets is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_sourceNets_nil_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_TRUE); ++ ++ return (_networkRule->is_valid_sourceNets == AXIS2_FALSE || ++ NULL == _networkRule->property_sourceNets || ++ NULL == axutil_array_list_get(_networkRule->property_sourceNets, env, i)); ++ } ++ ++ /** ++ * Set sourceNets to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_sourceNets_nil_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ if(_networkRule->property_sourceNets == NULL || ++ _networkRule->is_valid_sourceNets == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_networkRule->property_sourceNets, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_networkRule->property_sourceNets, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of sourceNets is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_networkRule->property_sourceNets == NULL) ++ { ++ _networkRule->is_valid_sourceNets = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_networkRule->property_sourceNets, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _networkRule->is_valid_sourceNets = AXIS2_FALSE; ++ axutil_array_list_set(_networkRule->property_sourceNets , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_networkRule->property_sourceNets , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ ++ /** ++ * getter for destUserName. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_networkRule_get_destUserName( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, NULL); ++ ++ ++ return _networkRule->property_destUserName; ++ } ++ ++ /** ++ * setter for destUserName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_destUserName( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_destUserName) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ if(_networkRule->is_valid_destUserName && ++ arg_destUserName == _networkRule->property_destUserName) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_networkRule_reset_destUserName(_networkRule, env); ++ ++ ++ if(NULL == arg_destUserName) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _networkRule->property_destUserName = (axis2_char_t *)axutil_strdup(env, arg_destUserName); ++ if(NULL == _networkRule->property_destUserName) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for destUserName"); ++ return AXIS2_FAILURE; ++ } ++ _networkRule->is_valid_destUserName = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for destUserName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_reset_destUserName( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_networkRule->property_destUserName != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _networkRule->property_destUserName); ++ _networkRule->property_destUserName = NULL; ++ } ++ ++ ++ ++ _networkRule->is_valid_destUserName = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether destUserName is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_destUserName_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_TRUE); ++ ++ return !_networkRule->is_valid_destUserName; ++ } ++ ++ /** ++ * Set destUserName to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_destUserName_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ return adb_networkRule_reset_destUserName(_networkRule, env); ++ } ++ ++ ++ ++ /** ++ * getter for destName. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_networkRule_get_destName( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, NULL); ++ ++ ++ return _networkRule->property_destName; ++ } ++ ++ /** ++ * setter for destName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_destName( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_destName) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ if(_networkRule->is_valid_destName && ++ arg_destName == _networkRule->property_destName) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_destName) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "destName is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_networkRule_reset_destName(_networkRule, env); ++ ++ ++ if(NULL == arg_destName) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _networkRule->property_destName = (axis2_char_t *)axutil_strdup(env, arg_destName); ++ if(NULL == _networkRule->property_destName) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for destName"); ++ return AXIS2_FAILURE; ++ } ++ _networkRule->is_valid_destName = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for destName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_reset_destName( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_networkRule->property_destName != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _networkRule->property_destName); ++ _networkRule->property_destName = NULL; ++ } ++ ++ ++ ++ _networkRule->is_valid_destName = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether destName is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_destName_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_TRUE); ++ ++ return !_networkRule->is_valid_destName; ++ } ++ ++ /** ++ * Set destName to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_destName_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ return adb_networkRule_reset_destName(_networkRule, env); ++ } ++ ++ ++ ++ /** ++ * getter for protocol. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_networkRule_get_protocol( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, NULL); ++ ++ ++ return _networkRule->property_protocol; ++ } ++ ++ /** ++ * setter for protocol ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_protocol( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_protocol) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ if(_networkRule->is_valid_protocol && ++ arg_protocol == _networkRule->property_protocol) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_protocol) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "protocol is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_networkRule_reset_protocol(_networkRule, env); ++ ++ ++ if(NULL == arg_protocol) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _networkRule->property_protocol = (axis2_char_t *)axutil_strdup(env, arg_protocol); ++ if(NULL == _networkRule->property_protocol) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for protocol"); ++ return AXIS2_FAILURE; ++ } ++ _networkRule->is_valid_protocol = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for protocol ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_reset_protocol( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_networkRule->property_protocol != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _networkRule->property_protocol); ++ _networkRule->property_protocol = NULL; ++ } ++ ++ ++ ++ _networkRule->is_valid_protocol = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether protocol is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_protocol_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_TRUE); ++ ++ return !_networkRule->is_valid_protocol; ++ } ++ ++ /** ++ * Set protocol to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_protocol_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ return adb_networkRule_reset_protocol(_networkRule, env); ++ } ++ ++ ++ ++ /** ++ * getter for portRangeMin. ++ */ ++ int AXIS2_CALL ++ adb_networkRule_get_portRangeMin( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, (int)0); ++ ++ ++ return _networkRule->property_portRangeMin; ++ } ++ ++ /** ++ * setter for portRangeMin ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_portRangeMin( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ const int arg_portRangeMin) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ if(_networkRule->is_valid_portRangeMin && ++ arg_portRangeMin == _networkRule->property_portRangeMin) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_networkRule_reset_portRangeMin(_networkRule, env); ++ ++ _networkRule->property_portRangeMin = arg_portRangeMin; ++ _networkRule->is_valid_portRangeMin = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for portRangeMin ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_reset_portRangeMin( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ ++ _networkRule->is_valid_portRangeMin = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether portRangeMin is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_portRangeMin_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_TRUE); ++ ++ return !_networkRule->is_valid_portRangeMin; ++ } ++ ++ /** ++ * Set portRangeMin to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_portRangeMin_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ return adb_networkRule_reset_portRangeMin(_networkRule, env); ++ } ++ ++ ++ ++ /** ++ * getter for portRangeMax. ++ */ ++ int AXIS2_CALL ++ adb_networkRule_get_portRangeMax( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, (int)0); ++ ++ ++ return _networkRule->property_portRangeMax; ++ } ++ ++ /** ++ * setter for portRangeMax ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_portRangeMax( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ const int arg_portRangeMax) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ if(_networkRule->is_valid_portRangeMax && ++ arg_portRangeMax == _networkRule->property_portRangeMax) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_networkRule_reset_portRangeMax(_networkRule, env); ++ ++ _networkRule->property_portRangeMax = arg_portRangeMax; ++ _networkRule->is_valid_portRangeMax = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for portRangeMax ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_reset_portRangeMax( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE); ++ ++ ++ _networkRule->is_valid_portRangeMax = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether portRangeMax is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_portRangeMax_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_TRUE); ++ ++ return !_networkRule->is_valid_portRangeMax; ++ } ++ ++ /** ++ * Set portRangeMax to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_portRangeMax_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env) ++ { ++ return adb_networkRule_reset_portRangeMax(_networkRule, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_networkRule.h' +--- old/cluster/generated/adb_networkRule.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_networkRule.h 2010-01-05 01:00:47 +0000 +@@ -0,0 +1,919 @@ ++ ++ ++ #ifndef ADB_NETWORKRULE_H ++ #define ADB_NETWORKRULE_H ++ ++ /** ++ * adb_networkRule.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_networkRule class ++ */ ++ typedef struct adb_networkRule adb_networkRule_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_networkRule_t ++ * @param env pointer to environment struct ++ * @return newly created adb_networkRule_t object ++ */ ++ adb_networkRule_t* AXIS2_CALL ++ adb_networkRule_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_networkRule_t object ++ * @param _networkRule adb_networkRule_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_free ( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for type. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_networkRule_get_type( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for type. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @param arg_type axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_type( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_type); ++ ++ /** ++ * Resetter for type ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_reset_type( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for sourceNames. Deprecated for array types, Use adb_networkRule_get_sourceNames_at instead ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return Array of axis2_char_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_networkRule_get_sourceNames( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for sourceNames.Deprecated for array types, Use adb_networkRule_set_sourceNames_at ++ * or adb_networkRule_add_sourceNames instead. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @param arg_sourceNames Array of axis2_char_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_sourceNames( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_sourceNames); ++ ++ /** ++ * Resetter for sourceNames ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_reset_sourceNames( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userNames. Deprecated for array types, Use adb_networkRule_get_userNames_at instead ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return Array of axis2_char_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_networkRule_get_userNames( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userNames.Deprecated for array types, Use adb_networkRule_set_userNames_at ++ * or adb_networkRule_add_userNames instead. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @param arg_userNames Array of axis2_char_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_userNames( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_userNames); ++ ++ /** ++ * Resetter for userNames ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_reset_userNames( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for sourceNets. Deprecated for array types, Use adb_networkRule_get_sourceNets_at instead ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return Array of axis2_char_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_networkRule_get_sourceNets( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for sourceNets.Deprecated for array types, Use adb_networkRule_set_sourceNets_at ++ * or adb_networkRule_add_sourceNets instead. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @param arg_sourceNets Array of axis2_char_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_sourceNets( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_sourceNets); ++ ++ /** ++ * Resetter for sourceNets ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_reset_sourceNets( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for destUserName. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_networkRule_get_destUserName( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for destUserName. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @param arg_destUserName axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_destUserName( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_destUserName); ++ ++ /** ++ * Resetter for destUserName ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_reset_destUserName( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for destName. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_networkRule_get_destName( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for destName. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @param arg_destName axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_destName( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_destName); ++ ++ /** ++ * Resetter for destName ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_reset_destName( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for protocol. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_networkRule_get_protocol( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for protocol. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @param arg_protocol axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_protocol( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_protocol); ++ ++ /** ++ * Resetter for protocol ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_reset_protocol( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for portRangeMin. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_networkRule_get_portRangeMin( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for portRangeMin. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @param arg_portRangeMin int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_portRangeMin( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ const int arg_portRangeMin); ++ ++ /** ++ * Resetter for portRangeMin ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_reset_portRangeMin( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for portRangeMax. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_networkRule_get_portRangeMax( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for portRangeMax. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @param arg_portRangeMax int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_portRangeMax( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ const int arg_portRangeMax); ++ ++ /** ++ * Resetter for portRangeMax ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_reset_portRangeMax( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of sourceNames. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_networkRule_get_sourceNames_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of sourceNames. (If the ith already exist, it will be replaced) ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_sourceNames element to set axis2_char_t* to the array ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_sourceNames_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_sourceNames); ++ ++ ++ /** ++ * Add to sourceNames. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @param arg_sourceNames element to add axis2_char_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_add_sourceNames( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_sourceNames); ++ ++ /** ++ * Get the size of the sourceNames array. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct. ++ * @return the size of the sourceNames array. ++ */ ++ int AXIS2_CALL ++ adb_networkRule_sizeof_sourceNames( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of sourceNames. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_remove_sourceNames_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /** ++ * Get the ith element of userNames. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_networkRule_get_userNames_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of userNames. (If the ith already exist, it will be replaced) ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_userNames element to set axis2_char_t* to the array ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_userNames_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_userNames); ++ ++ ++ /** ++ * Add to userNames. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @param arg_userNames element to add axis2_char_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_add_userNames( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userNames); ++ ++ /** ++ * Get the size of the userNames array. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct. ++ * @return the size of the userNames array. ++ */ ++ int AXIS2_CALL ++ adb_networkRule_sizeof_userNames( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of userNames. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_remove_userNames_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /** ++ * Get the ith element of sourceNets. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_networkRule_get_sourceNets_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of sourceNets. (If the ith already exist, it will be replaced) ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_sourceNets element to set axis2_char_t* to the array ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_sourceNets_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_sourceNets); ++ ++ ++ /** ++ * Add to sourceNets. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @param arg_sourceNets element to add axis2_char_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_add_sourceNets( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_sourceNets); ++ ++ /** ++ * Get the size of the sourceNets array. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct. ++ * @return the size of the sourceNets array. ++ */ ++ int AXIS2_CALL ++ adb_networkRule_sizeof_sourceNets( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of sourceNets. ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_remove_sourceNets_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether type is nill ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_type_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether sourceNames is nill ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_sourceNames_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userNames is nill ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_userNames_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether sourceNets is nill ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_sourceNets_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether destUserName is nill ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_destUserName_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether destName is nill ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_destName_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether protocol is nill ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_protocol_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether portRangeMin is nill ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_portRangeMin_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether portRangeMax is nill ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_portRangeMax_nil( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env); ++ ++ ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether sourceNames is nill at i ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_sourceNames_nil_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set sourceNames to nill at i ++ * @param _networkRule _ adb_networkRule_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_sourceNames_nil_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Check whether userNames is nill at i ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_userNames_nil_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set userNames to nill at i ++ * @param _networkRule _ adb_networkRule_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_userNames_nil_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Check whether sourceNets is nill at i ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_sourceNets_nil_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set sourceNets to nill at i ++ * @param _networkRule _ adb_networkRule_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_set_sourceNets_nil_at( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkRule_deserialize( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_networkRule_declare_parent_namespaces( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _networkRule adb_networkRule_t object ++ * @param env pointer to environment struct ++ * @param networkRule_om_node node to serialize from ++ * @param networkRule_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_networkRule_serialize( ++ adb_networkRule_t* _networkRule, ++ const axutil_env_t *env, ++ axiom_node_t* networkRule_om_node, axiom_element_t *networkRule_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_networkRule is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkRule_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NETWORKRULE_H */ ++ ++ + +=== added file 'cluster/generated/adb_networkType.c' +--- old/cluster/generated/adb_networkType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_networkType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,1835 @@ ++ ++ ++ /** ++ * adb_networkType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_networkType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = networkType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_networkType ++ { ++ int property_vlan; ++ ++ ++ axis2_bool_t is_valid_vlan; ++ ++ ++ axis2_char_t* property_netName; ++ ++ ++ axis2_bool_t is_valid_netName; ++ ++ ++ axis2_char_t* property_userName; ++ ++ ++ axis2_bool_t is_valid_userName; ++ ++ ++ axutil_array_list_t* property_activeAddrs; ++ ++ ++ axis2_bool_t is_valid_activeAddrs; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_set_vlan_nil( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_set_netName_nil( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_set_userName_nil( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_set_activeAddrs_nil_at( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_set_activeAddrs_nil( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_networkType_t* AXIS2_CALL ++ adb_networkType_create( ++ const axutil_env_t *env) ++ { ++ adb_networkType_t *_networkType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _networkType = (adb_networkType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_networkType_t)); ++ ++ if(NULL == _networkType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_networkType, 0, sizeof(adb_networkType_t)); ++ ++ _networkType->is_valid_vlan = AXIS2_FALSE; ++ _networkType->property_netName = NULL; ++ _networkType->is_valid_netName = AXIS2_FALSE; ++ _networkType->property_userName = NULL; ++ _networkType->is_valid_userName = AXIS2_FALSE; ++ _networkType->is_valid_activeAddrs = AXIS2_FALSE; ++ ++ ++ return _networkType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_free ( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE); ++ ++ adb_networkType_reset_vlan(_networkType, env); ++ adb_networkType_reset_netName(_networkType, env); ++ adb_networkType_reset_userName(_networkType, env); ++ adb_networkType_reset_activeAddrs(_networkType, env); ++ ++ ++ if(_networkType) ++ { ++ AXIS2_FREE(env->allocator, _networkType); ++ _networkType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_deserialize( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for networkType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building vlan element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "vlan", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_networkType_set_vlan(_networkType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element vlan"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for vlan "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element vlan missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building netName element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "netName", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_networkType_set_netName(_networkType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element netName"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_networkType_set_netName(_networkType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for netName "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element netName missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userName element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userName", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_networkType_set_userName(_networkType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userName"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_networkType_set_userName(_networkType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userName "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element userName missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building activeAddrs array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building activeAddrs element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "activeAddrs", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ /* we keeps ints in arrays from their pointers */ ++ element = AXIS2_MALLOC(env-> allocator, sizeof(int)); ++ (*(int*)element) = atoi(text_value); ++ axutil_array_list_add_at(arr_list, env, i, element); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element activeAddrs"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for activeAddrs "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "activeAddrs (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_networkType_set_activeAddrs(_networkType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_networkType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_networkType_declare_parent_namespaces( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_networkType_serialize( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _networkType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_networkType->is_valid_vlan) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property vlan"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("vlan"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("vlan"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing vlan element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%svlan>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_1, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _networkType->property_vlan); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_networkType->is_valid_netName) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property netName"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("netName"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("netName"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing netName element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%snetName>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _networkType->property_netName; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_networkType->is_valid_userName) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property userName"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userName"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userName"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userName element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserName>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _networkType->property_userName; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_networkType->is_valid_activeAddrs) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("activeAddrs"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("activeAddrs"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing activeAddrs array ++ */ ++ if (_networkType->property_activeAddrs != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%sactiveAddrs>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_networkType->property_activeAddrs, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_networkType->property_activeAddrs, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing activeAddrs element ++ */ ++ ++ ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, *((int*)element)); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for vlan. ++ */ ++ int AXIS2_CALL ++ adb_networkType_get_vlan( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _networkType, (int)0); ++ ++ ++ return _networkType->property_vlan; ++ } ++ ++ /** ++ * setter for vlan ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_set_vlan( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, ++ const int arg_vlan) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE); ++ ++ if(_networkType->is_valid_vlan && ++ arg_vlan == _networkType->property_vlan) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_networkType_reset_vlan(_networkType, env); ++ ++ _networkType->property_vlan = arg_vlan; ++ _networkType->is_valid_vlan = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for vlan ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_reset_vlan( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE); ++ ++ ++ _networkType->is_valid_vlan = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether vlan is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkType_is_vlan_nil( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_TRUE); ++ ++ return !_networkType->is_valid_vlan; ++ } ++ ++ /** ++ * Set vlan to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_set_vlan_nil( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env) ++ { ++ return adb_networkType_reset_vlan(_networkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for netName. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_networkType_get_netName( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _networkType, NULL); ++ ++ ++ return _networkType->property_netName; ++ } ++ ++ /** ++ * setter for netName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_set_netName( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_netName) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE); ++ ++ if(_networkType->is_valid_netName && ++ arg_netName == _networkType->property_netName) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_netName) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "netName is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_networkType_reset_netName(_networkType, env); ++ ++ ++ if(NULL == arg_netName) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _networkType->property_netName = (axis2_char_t *)axutil_strdup(env, arg_netName); ++ if(NULL == _networkType->property_netName) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for netName"); ++ return AXIS2_FAILURE; ++ } ++ _networkType->is_valid_netName = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for netName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_reset_netName( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_networkType->property_netName != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _networkType->property_netName); ++ _networkType->property_netName = NULL; ++ } ++ ++ ++ ++ _networkType->is_valid_netName = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether netName is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkType_is_netName_nil( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_TRUE); ++ ++ return !_networkType->is_valid_netName; ++ } ++ ++ /** ++ * Set netName to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_set_netName_nil( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env) ++ { ++ return adb_networkType_reset_netName(_networkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userName. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_networkType_get_userName( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _networkType, NULL); ++ ++ ++ return _networkType->property_userName; ++ } ++ ++ /** ++ * setter for userName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_set_userName( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userName) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE); ++ ++ if(_networkType->is_valid_userName && ++ arg_userName == _networkType->property_userName) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_userName) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "userName is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_networkType_reset_userName(_networkType, env); ++ ++ ++ if(NULL == arg_userName) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _networkType->property_userName = (axis2_char_t *)axutil_strdup(env, arg_userName); ++ if(NULL == _networkType->property_userName) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userName"); ++ return AXIS2_FAILURE; ++ } ++ _networkType->is_valid_userName = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_reset_userName( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_networkType->property_userName != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _networkType->property_userName); ++ _networkType->property_userName = NULL; ++ } ++ ++ ++ ++ _networkType->is_valid_userName = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userName is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkType_is_userName_nil( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_TRUE); ++ ++ return !_networkType->is_valid_userName; ++ } ++ ++ /** ++ * Set userName to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_set_userName_nil( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env) ++ { ++ return adb_networkType_reset_userName(_networkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for activeAddrs. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_networkType_get_activeAddrs( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _networkType, NULL); ++ ++ ++ return _networkType->property_activeAddrs; ++ } ++ ++ /** ++ * setter for activeAddrs ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_set_activeAddrs( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_activeAddrs) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE); ++ ++ if(_networkType->is_valid_activeAddrs && ++ arg_activeAddrs == _networkType->property_activeAddrs) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_activeAddrs, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "activeAddrs has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_activeAddrs, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_networkType_reset_activeAddrs(_networkType, env); ++ ++ ++ if(NULL == arg_activeAddrs) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _networkType->property_activeAddrs = arg_activeAddrs; ++ if(non_nil_exists) ++ { ++ _networkType->is_valid_activeAddrs = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of activeAddrs. ++ */ ++ int AXIS2_CALL ++ adb_networkType_get_activeAddrs_at( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, int i) ++ { ++ int* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _networkType, (int)0); ++ ++ ++ if(_networkType->property_activeAddrs == NULL) ++ { ++ return (int)0; ++ } ++ ret_val = (int*)axutil_array_list_get(_networkType->property_activeAddrs, env, i); ++ ++ if(ret_val) ++ { ++ return *ret_val; ++ } ++ return (int)0; ++ ++ } ++ ++ /** ++ * Set the ith element of activeAddrs. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_set_activeAddrs_at( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, int i, ++ const int arg_activeAddrs) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int* ptr_param_activeAddrs; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE); ++ ++ if( _networkType->is_valid_activeAddrs && ++ _networkType->property_activeAddrs && ++ ++ arg_activeAddrs == *((int*)axutil_array_list_get(_networkType->property_activeAddrs, env, i))) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ non_nil_exists = AXIS2_TRUE; /* no way to check for nill for each elements for primitive types */ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of activeAddrs is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_networkType->property_activeAddrs == NULL) ++ { ++ _networkType->property_activeAddrs = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_networkType->property_activeAddrs, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ ++ /* we keep primtives as pointers in arrasy, so need to free them */ ++ AXIS2_FREE(env-> allocator, element); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _networkType->is_valid_activeAddrs = AXIS2_FALSE; ++ axutil_array_list_set(_networkType->property_activeAddrs , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ptr_param_activeAddrs = (int*) ++ AXIS2_MALLOC(env->allocator, sizeof(int)); ++ if(_networkType->property_activeAddrs == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for new value of activeAddrs"); ++ return AXIS2_FAILURE; ++ ++ } ++ *ptr_param_activeAddrs = arg_activeAddrs; ++ axutil_array_list_set(_networkType->property_activeAddrs , env, i, ptr_param_activeAddrs); ++ _networkType->is_valid_activeAddrs = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to activeAddrs. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_add_activeAddrs( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, ++ const int arg_activeAddrs) ++ { ++ int* ptr_param_activeAddrs; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE); ++ ++ ++ ++ if(_networkType->property_activeAddrs == NULL) ++ { ++ _networkType->property_activeAddrs = axutil_array_list_create(env, 10); ++ } ++ if(_networkType->property_activeAddrs == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for activeAddrs"); ++ return AXIS2_FAILURE; ++ ++ } ++ ptr_param_activeAddrs = (int*) ++ AXIS2_MALLOC(env->allocator, sizeof(int)); ++ if(_networkType->property_activeAddrs == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for new value of activeAddrs"); ++ return AXIS2_FAILURE; ++ ++ } ++ *ptr_param_activeAddrs = arg_activeAddrs; ++ axutil_array_list_add(_networkType->property_activeAddrs , env, ptr_param_activeAddrs); ++ _networkType->is_valid_activeAddrs = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the activeAddrs array. ++ */ ++ int AXIS2_CALL ++ adb_networkType_sizeof_activeAddrs( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _networkType, -1); ++ if(_networkType->property_activeAddrs == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_networkType->property_activeAddrs, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_remove_activeAddrs_at( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_networkType_set_activeAddrs_nil_at(_networkType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for activeAddrs ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_reset_activeAddrs( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE); ++ ++ ++ ++ if (_networkType->property_activeAddrs != NULL) ++ { ++ count = axutil_array_list_size(_networkType->property_activeAddrs, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_networkType->property_activeAddrs, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ ++ /* we keep primtives as pointers in arrasy, so need to free them */ ++ AXIS2_FREE(env-> allocator, element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_networkType->property_activeAddrs, env); ++ } ++ _networkType->is_valid_activeAddrs = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether activeAddrs is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkType_is_activeAddrs_nil( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_TRUE); ++ ++ return !_networkType->is_valid_activeAddrs; ++ } ++ ++ /** ++ * Set activeAddrs to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_set_activeAddrs_nil( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env) ++ { ++ return adb_networkType_reset_activeAddrs(_networkType, env); ++ } ++ ++ ++ /** ++ * Check whether activeAddrs is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkType_is_activeAddrs_nil_at( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_TRUE); ++ ++ return (_networkType->is_valid_activeAddrs == AXIS2_FALSE || ++ NULL == _networkType->property_activeAddrs || ++ NULL == axutil_array_list_get(_networkType->property_activeAddrs, env, i)); ++ } ++ ++ /** ++ * Set activeAddrs to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_set_activeAddrs_nil_at( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE); ++ ++ if(_networkType->property_activeAddrs == NULL || ++ _networkType->is_valid_activeAddrs == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_networkType->property_activeAddrs, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_networkType->property_activeAddrs, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of activeAddrs is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_networkType->property_activeAddrs == NULL) ++ { ++ _networkType->is_valid_activeAddrs = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_networkType->property_activeAddrs, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ ++ /* we keep primtives as pointers in arrasy, so need to free them */ ++ AXIS2_FREE(env-> allocator, element); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _networkType->is_valid_activeAddrs = AXIS2_FALSE; ++ axutil_array_list_set(_networkType->property_activeAddrs , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_networkType->property_activeAddrs , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_networkType.h' +--- old/cluster/generated/adb_networkType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_networkType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,475 @@ ++ ++ ++ #ifndef ADB_NETWORKTYPE_H ++ #define ADB_NETWORKTYPE_H ++ ++ /** ++ * adb_networkType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_networkType class ++ */ ++ typedef struct adb_networkType adb_networkType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_networkType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_networkType_t object ++ */ ++ adb_networkType_t* AXIS2_CALL ++ adb_networkType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_networkType_t object ++ * @param _networkType adb_networkType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_free ( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for vlan. ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_networkType_get_vlan( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for vlan. ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct ++ * @param arg_vlan int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_set_vlan( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, ++ const int arg_vlan); ++ ++ /** ++ * Resetter for vlan ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_reset_vlan( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for netName. ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_networkType_get_netName( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for netName. ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct ++ * @param arg_netName axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_set_netName( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_netName); ++ ++ /** ++ * Resetter for netName ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_reset_netName( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userName. ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_networkType_get_userName( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userName. ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct ++ * @param arg_userName axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_set_userName( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userName); ++ ++ /** ++ * Resetter for userName ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_reset_userName( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for activeAddrs. Deprecated for array types, Use adb_networkType_get_activeAddrs_at instead ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct ++ * @return Array of int*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_networkType_get_activeAddrs( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for activeAddrs.Deprecated for array types, Use adb_networkType_set_activeAddrs_at ++ * or adb_networkType_add_activeAddrs instead. ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct ++ * @param arg_activeAddrs Array of int*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_set_activeAddrs( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_activeAddrs); ++ ++ /** ++ * Resetter for activeAddrs ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_reset_activeAddrs( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of activeAddrs. ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith int of the array ++ */ ++ int AXIS2_CALL ++ adb_networkType_get_activeAddrs_at( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of activeAddrs. (If the ith already exist, it will be replaced) ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_activeAddrs element to set int to the array ++ * @return ith int of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_set_activeAddrs_at( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, int i, ++ const int arg_activeAddrs); ++ ++ ++ /** ++ * Add to activeAddrs. ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct ++ * @param arg_activeAddrs element to add int to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_add_activeAddrs( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, ++ const int arg_activeAddrs); ++ ++ /** ++ * Get the size of the activeAddrs array. ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the activeAddrs array. ++ */ ++ int AXIS2_CALL ++ adb_networkType_sizeof_activeAddrs( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of activeAddrs. ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_remove_activeAddrs_at( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether vlan is nill ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkType_is_vlan_nil( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether netName is nill ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkType_is_netName_nil( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userName is nill ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkType_is_userName_nil( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether activeAddrs is nill ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkType_is_activeAddrs_nil( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env); ++ ++ ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether activeAddrs is nill at i ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkType_is_activeAddrs_nil_at( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set activeAddrs to nill at i ++ * @param _networkType _ adb_networkType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_set_activeAddrs_nil_at( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_networkType_deserialize( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_networkType_declare_parent_namespaces( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _networkType adb_networkType_t object ++ * @param env pointer to environment struct ++ * @param networkType_om_node node to serialize from ++ * @param networkType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_networkType_serialize( ++ adb_networkType_t* _networkType, ++ const axutil_env_t *env, ++ axiom_node_t* networkType_om_node, axiom_element_t *networkType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_networkType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_networkType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NETWORKTYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_rebootInstancesResponseType.c' +--- old/cluster/generated/adb_rebootInstancesResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_rebootInstancesResponseType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,1401 @@ ++ ++ ++ /** ++ * adb_rebootInstancesResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_rebootInstancesResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = rebootInstancesResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_rebootInstancesResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_set_correlationId_nil( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_set_userId_nil( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_set_return_nil( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_rebootInstancesResponseType_t* AXIS2_CALL ++ adb_rebootInstancesResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_rebootInstancesResponseType_t *_rebootInstancesResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _rebootInstancesResponseType = (adb_rebootInstancesResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_rebootInstancesResponseType_t)); ++ ++ if(NULL == _rebootInstancesResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_rebootInstancesResponseType, 0, sizeof(adb_rebootInstancesResponseType_t)); ++ ++ _rebootInstancesResponseType->property_correlationId = NULL; ++ _rebootInstancesResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _rebootInstancesResponseType->property_userId = NULL; ++ _rebootInstancesResponseType->is_valid_userId = AXIS2_FALSE; ++ _rebootInstancesResponseType->property_statusMessage = NULL; ++ _rebootInstancesResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _rebootInstancesResponseType->is_valid_return = AXIS2_FALSE; ++ ++ ++ return _rebootInstancesResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_free ( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_FAILURE); ++ ++ adb_rebootInstancesResponseType_reset_correlationId(_rebootInstancesResponseType, env); ++ adb_rebootInstancesResponseType_reset_userId(_rebootInstancesResponseType, env); ++ adb_rebootInstancesResponseType_reset_statusMessage(_rebootInstancesResponseType, env); ++ adb_rebootInstancesResponseType_reset_return(_rebootInstancesResponseType, env); ++ ++ ++ if(_rebootInstancesResponseType) ++ { ++ AXIS2_FREE(env->allocator, _rebootInstancesResponseType); ++ _rebootInstancesResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_deserialize( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for rebootInstancesResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_rebootInstancesResponseType_set_correlationId(_rebootInstancesResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_rebootInstancesResponseType_set_correlationId(_rebootInstancesResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_rebootInstancesResponseType_set_userId(_rebootInstancesResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_rebootInstancesResponseType_set_userId(_rebootInstancesResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_rebootInstancesResponseType_set_statusMessage(_rebootInstancesResponseType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_rebootInstancesResponseType_set_return(_rebootInstancesResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_rebootInstancesResponseType_set_return(_rebootInstancesResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_rebootInstancesResponseType_declare_parent_namespaces( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_rebootInstancesResponseType_serialize( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_rebootInstancesResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _rebootInstancesResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_rebootInstancesResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _rebootInstancesResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_rebootInstancesResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _rebootInstancesResponseType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_rebootInstancesResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_rebootInstancesResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_rebootInstancesResponseType_get_correlationId( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, NULL); ++ ++ ++ return _rebootInstancesResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_set_correlationId( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_rebootInstancesResponseType->is_valid_correlationId && ++ arg_correlationId == _rebootInstancesResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_rebootInstancesResponseType_reset_correlationId(_rebootInstancesResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _rebootInstancesResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _rebootInstancesResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _rebootInstancesResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_reset_correlationId( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_rebootInstancesResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _rebootInstancesResponseType->property_correlationId); ++ _rebootInstancesResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _rebootInstancesResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesResponseType_is_correlationId_nil( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_TRUE); ++ ++ return !_rebootInstancesResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_set_correlationId_nil( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_rebootInstancesResponseType_reset_correlationId(_rebootInstancesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_rebootInstancesResponseType_get_userId( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, NULL); ++ ++ ++ return _rebootInstancesResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_set_userId( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_rebootInstancesResponseType->is_valid_userId && ++ arg_userId == _rebootInstancesResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_rebootInstancesResponseType_reset_userId(_rebootInstancesResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _rebootInstancesResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _rebootInstancesResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _rebootInstancesResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_reset_userId( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_rebootInstancesResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _rebootInstancesResponseType->property_userId); ++ _rebootInstancesResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _rebootInstancesResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesResponseType_is_userId_nil( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_TRUE); ++ ++ return !_rebootInstancesResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_set_userId_nil( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_rebootInstancesResponseType_reset_userId(_rebootInstancesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_rebootInstancesResponseType_get_statusMessage( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, NULL); ++ ++ ++ return _rebootInstancesResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_set_statusMessage( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_rebootInstancesResponseType->is_valid_statusMessage && ++ arg_statusMessage == _rebootInstancesResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_rebootInstancesResponseType_reset_statusMessage(_rebootInstancesResponseType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _rebootInstancesResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _rebootInstancesResponseType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _rebootInstancesResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_reset_statusMessage( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_rebootInstancesResponseType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _rebootInstancesResponseType->property_statusMessage); ++ _rebootInstancesResponseType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _rebootInstancesResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesResponseType_is_statusMessage_nil( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_TRUE); ++ ++ return !_rebootInstancesResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_set_statusMessage_nil( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_rebootInstancesResponseType_reset_statusMessage(_rebootInstancesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesResponseType_get_return( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, (axis2_bool_t)0); ++ ++ ++ return _rebootInstancesResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_set_return( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_rebootInstancesResponseType->is_valid_return && ++ arg_return == _rebootInstancesResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_rebootInstancesResponseType_reset_return(_rebootInstancesResponseType, env); ++ ++ _rebootInstancesResponseType->property_return = arg_return; ++ _rebootInstancesResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_reset_return( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ _rebootInstancesResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesResponseType_is_return_nil( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_TRUE); ++ ++ return !_rebootInstancesResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_set_return_nil( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_rebootInstancesResponseType_reset_return(_rebootInstancesResponseType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_rebootInstancesResponseType.h' +--- old/cluster/generated/adb_rebootInstancesResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_rebootInstancesResponseType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,362 @@ ++ ++ ++ #ifndef ADB_REBOOTINSTANCESRESPONSETYPE_H ++ #define ADB_REBOOTINSTANCESRESPONSETYPE_H ++ ++ /** ++ * adb_rebootInstancesResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_rebootInstancesResponseType class ++ */ ++ typedef struct adb_rebootInstancesResponseType adb_rebootInstancesResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_rebootInstancesResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_rebootInstancesResponseType_t object ++ */ ++ adb_rebootInstancesResponseType_t* AXIS2_CALL ++ adb_rebootInstancesResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_rebootInstancesResponseType_t object ++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_free ( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_rebootInstancesResponseType_get_correlationId( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_set_correlationId( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_reset_correlationId( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_rebootInstancesResponseType_get_userId( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_set_userId( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_reset_userId( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_rebootInstancesResponseType_get_statusMessage( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_set_statusMessage( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_reset_statusMessage( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesResponseType_get_return( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_set_return( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_reset_return( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesResponseType_is_correlationId_nil( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesResponseType_is_userId_nil( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesResponseType_is_statusMessage_nil( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_set_statusMessage_nil( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesResponseType_is_return_nil( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesResponseType_deserialize( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_rebootInstancesResponseType_declare_parent_namespaces( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param rebootInstancesResponseType_om_node node to serialize from ++ * @param rebootInstancesResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_rebootInstancesResponseType_serialize( ++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* rebootInstancesResponseType_om_node, axiom_element_t *rebootInstancesResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_rebootInstancesResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_REBOOTINSTANCESRESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_rebootInstancesType.c' +--- old/cluster/generated/adb_rebootInstancesType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_rebootInstancesType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,2131 @@ ++ ++ ++ /** ++ * adb_rebootInstancesType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_rebootInstancesType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = rebootInstancesType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_rebootInstancesType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ axutil_array_list_t* property_instanceIds; ++ ++ ++ axis2_bool_t is_valid_instanceIds; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_correlationId_nil( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_userId_nil( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_return_nil( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_instanceIds_nil_at( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_instanceIds_nil( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_rebootInstancesType_t* AXIS2_CALL ++ adb_rebootInstancesType_create( ++ const axutil_env_t *env) ++ { ++ adb_rebootInstancesType_t *_rebootInstancesType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _rebootInstancesType = (adb_rebootInstancesType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_rebootInstancesType_t)); ++ ++ if(NULL == _rebootInstancesType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_rebootInstancesType, 0, sizeof(adb_rebootInstancesType_t)); ++ ++ _rebootInstancesType->property_correlationId = NULL; ++ _rebootInstancesType->is_valid_correlationId = AXIS2_FALSE; ++ _rebootInstancesType->property_userId = NULL; ++ _rebootInstancesType->is_valid_userId = AXIS2_FALSE; ++ _rebootInstancesType->property_statusMessage = NULL; ++ _rebootInstancesType->is_valid_statusMessage = AXIS2_FALSE; ++ _rebootInstancesType->is_valid_return = AXIS2_FALSE; ++ _rebootInstancesType->property_instanceIds = NULL; ++ _rebootInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ ++ ++ return _rebootInstancesType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_free ( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE); ++ ++ adb_rebootInstancesType_reset_correlationId(_rebootInstancesType, env); ++ adb_rebootInstancesType_reset_userId(_rebootInstancesType, env); ++ adb_rebootInstancesType_reset_statusMessage(_rebootInstancesType, env); ++ adb_rebootInstancesType_reset_return(_rebootInstancesType, env); ++ adb_rebootInstancesType_reset_instanceIds(_rebootInstancesType, env); ++ ++ ++ if(_rebootInstancesType) ++ { ++ AXIS2_FREE(env->allocator, _rebootInstancesType); ++ _rebootInstancesType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_deserialize( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for rebootInstancesType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_rebootInstancesType_set_correlationId(_rebootInstancesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_rebootInstancesType_set_correlationId(_rebootInstancesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_rebootInstancesType_set_userId(_rebootInstancesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_rebootInstancesType_set_userId(_rebootInstancesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_rebootInstancesType_set_statusMessage(_rebootInstancesType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_rebootInstancesType_set_return(_rebootInstancesType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_rebootInstancesType_set_return(_rebootInstancesType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building instanceIds array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building instanceIds element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "instanceIds", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value)); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceIds"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, "")); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceIds "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceIds (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_rebootInstancesType_set_instanceIds(_rebootInstancesType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_rebootInstancesType_declare_parent_namespaces( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_rebootInstancesType_serialize( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_rebootInstancesType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _rebootInstancesType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_rebootInstancesType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _rebootInstancesType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_rebootInstancesType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _rebootInstancesType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_rebootInstancesType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_rebootInstancesType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_rebootInstancesType->is_valid_instanceIds) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceIds"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceIds"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing instanceIds array ++ */ ++ if (_rebootInstancesType->property_instanceIds != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%sinstanceIds>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_rebootInstancesType->property_instanceIds, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_rebootInstancesType->property_instanceIds, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing instanceIds element ++ */ ++ ++ ++ ++ text_value_5 = (axis2_char_t*)element; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_rebootInstancesType_get_correlationId( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, NULL); ++ ++ ++ return _rebootInstancesType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_correlationId( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE); ++ ++ if(_rebootInstancesType->is_valid_correlationId && ++ arg_correlationId == _rebootInstancesType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_rebootInstancesType_reset_correlationId(_rebootInstancesType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _rebootInstancesType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _rebootInstancesType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _rebootInstancesType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_reset_correlationId( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_rebootInstancesType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _rebootInstancesType->property_correlationId); ++ _rebootInstancesType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _rebootInstancesType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesType_is_correlationId_nil( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_TRUE); ++ ++ return !_rebootInstancesType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_correlationId_nil( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_rebootInstancesType_reset_correlationId(_rebootInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_rebootInstancesType_get_userId( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, NULL); ++ ++ ++ return _rebootInstancesType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_userId( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE); ++ ++ if(_rebootInstancesType->is_valid_userId && ++ arg_userId == _rebootInstancesType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_rebootInstancesType_reset_userId(_rebootInstancesType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _rebootInstancesType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _rebootInstancesType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _rebootInstancesType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_reset_userId( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_rebootInstancesType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _rebootInstancesType->property_userId); ++ _rebootInstancesType->property_userId = NULL; ++ } ++ ++ ++ ++ _rebootInstancesType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesType_is_userId_nil( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_TRUE); ++ ++ return !_rebootInstancesType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_userId_nil( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_rebootInstancesType_reset_userId(_rebootInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_rebootInstancesType_get_statusMessage( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, NULL); ++ ++ ++ return _rebootInstancesType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_statusMessage( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE); ++ ++ if(_rebootInstancesType->is_valid_statusMessage && ++ arg_statusMessage == _rebootInstancesType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_rebootInstancesType_reset_statusMessage(_rebootInstancesType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _rebootInstancesType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _rebootInstancesType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _rebootInstancesType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_reset_statusMessage( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_rebootInstancesType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _rebootInstancesType->property_statusMessage); ++ _rebootInstancesType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _rebootInstancesType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesType_is_statusMessage_nil( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_TRUE); ++ ++ return !_rebootInstancesType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_statusMessage_nil( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_rebootInstancesType_reset_statusMessage(_rebootInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesType_get_return( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, (axis2_bool_t)0); ++ ++ ++ return _rebootInstancesType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_return( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE); ++ ++ if(_rebootInstancesType->is_valid_return && ++ arg_return == _rebootInstancesType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_rebootInstancesType_reset_return(_rebootInstancesType, env); ++ ++ _rebootInstancesType->property_return = arg_return; ++ _rebootInstancesType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_reset_return( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE); ++ ++ ++ _rebootInstancesType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesType_is_return_nil( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_TRUE); ++ ++ return !_rebootInstancesType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_return_nil( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_rebootInstancesType_reset_return(_rebootInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceIds. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_rebootInstancesType_get_instanceIds( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, NULL); ++ ++ ++ return _rebootInstancesType->property_instanceIds; ++ } ++ ++ /** ++ * setter for instanceIds ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_instanceIds( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_instanceIds) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE); ++ ++ if(_rebootInstancesType->is_valid_instanceIds && ++ arg_instanceIds == _rebootInstancesType->property_instanceIds) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_instanceIds, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceIds has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_instanceIds, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_rebootInstancesType_reset_instanceIds(_rebootInstancesType, env); ++ ++ ++ if(NULL == arg_instanceIds) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _rebootInstancesType->property_instanceIds = arg_instanceIds; ++ if(non_nil_exists) ++ { ++ _rebootInstancesType->is_valid_instanceIds = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of instanceIds. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_rebootInstancesType_get_instanceIds_at( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ axis2_char_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, NULL); ++ ++ ++ if(_rebootInstancesType->property_instanceIds == NULL) ++ { ++ return (axis2_char_t*)0; ++ } ++ ret_val = (axis2_char_t*)axutil_array_list_get(_rebootInstancesType->property_instanceIds, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of instanceIds. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_instanceIds_at( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_instanceIds) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE); ++ ++ if( _rebootInstancesType->is_valid_instanceIds && ++ _rebootInstancesType->property_instanceIds && ++ ++ arg_instanceIds == (axis2_char_t*)axutil_array_list_get(_rebootInstancesType->property_instanceIds, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instanceIds) ++ { ++ if(_rebootInstancesType->property_instanceIds != NULL) ++ { ++ size = axutil_array_list_size(_rebootInstancesType->property_instanceIds, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_rebootInstancesType->property_instanceIds, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instanceIds is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_rebootInstancesType->property_instanceIds == NULL) ++ { ++ _rebootInstancesType->property_instanceIds = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_rebootInstancesType->property_instanceIds, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _rebootInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ axutil_array_list_set(_rebootInstancesType->property_instanceIds , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_rebootInstancesType->property_instanceIds , env, i, axutil_strdup(env, arg_instanceIds)); ++ _rebootInstancesType->is_valid_instanceIds = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to instanceIds. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_add_instanceIds( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceIds) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_instanceIds) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_rebootInstancesType->property_instanceIds == NULL) ++ { ++ _rebootInstancesType->property_instanceIds = axutil_array_list_create(env, 10); ++ } ++ if(_rebootInstancesType->property_instanceIds == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for instanceIds"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_rebootInstancesType->property_instanceIds , env, axutil_strdup(env, arg_instanceIds)); ++ _rebootInstancesType->is_valid_instanceIds = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the instanceIds array. ++ */ ++ int AXIS2_CALL ++ adb_rebootInstancesType_sizeof_instanceIds( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, -1); ++ if(_rebootInstancesType->property_instanceIds == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_rebootInstancesType->property_instanceIds, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_remove_instanceIds_at( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_rebootInstancesType_set_instanceIds_nil_at(_rebootInstancesType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for instanceIds ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_reset_instanceIds( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ if (_rebootInstancesType->property_instanceIds != NULL) ++ { ++ count = axutil_array_list_size(_rebootInstancesType->property_instanceIds, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_rebootInstancesType->property_instanceIds, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_rebootInstancesType->property_instanceIds, env); ++ } ++ _rebootInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceIds is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesType_is_instanceIds_nil( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_TRUE); ++ ++ return !_rebootInstancesType->is_valid_instanceIds; ++ } ++ ++ /** ++ * Set instanceIds to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_instanceIds_nil( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_rebootInstancesType_reset_instanceIds(_rebootInstancesType, env); ++ } ++ ++ ++ /** ++ * Check whether instanceIds is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesType_is_instanceIds_nil_at( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_TRUE); ++ ++ return (_rebootInstancesType->is_valid_instanceIds == AXIS2_FALSE || ++ NULL == _rebootInstancesType->property_instanceIds || ++ NULL == axutil_array_list_get(_rebootInstancesType->property_instanceIds, env, i)); ++ } ++ ++ /** ++ * Set instanceIds to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_instanceIds_nil_at( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE); ++ ++ if(_rebootInstancesType->property_instanceIds == NULL || ++ _rebootInstancesType->is_valid_instanceIds == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_rebootInstancesType->property_instanceIds, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_rebootInstancesType->property_instanceIds, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instanceIds is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_rebootInstancesType->property_instanceIds == NULL) ++ { ++ _rebootInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_rebootInstancesType->property_instanceIds, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _rebootInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ axutil_array_list_set(_rebootInstancesType->property_instanceIds , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_rebootInstancesType->property_instanceIds , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_rebootInstancesType.h' +--- old/cluster/generated/adb_rebootInstancesType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_rebootInstancesType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,538 @@ ++ ++ ++ #ifndef ADB_REBOOTINSTANCESTYPE_H ++ #define ADB_REBOOTINSTANCESTYPE_H ++ ++ /** ++ * adb_rebootInstancesType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_rebootInstancesType class ++ */ ++ typedef struct adb_rebootInstancesType adb_rebootInstancesType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_rebootInstancesType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_rebootInstancesType_t object ++ */ ++ adb_rebootInstancesType_t* AXIS2_CALL ++ adb_rebootInstancesType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_rebootInstancesType_t object ++ * @param _rebootInstancesType adb_rebootInstancesType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_free ( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_rebootInstancesType_get_correlationId( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_correlationId( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_reset_correlationId( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_rebootInstancesType_get_userId( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_userId( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_reset_userId( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_rebootInstancesType_get_statusMessage( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_statusMessage( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_reset_statusMessage( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesType_get_return( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_return( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_reset_return( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceIds. Deprecated for array types, Use adb_rebootInstancesType_get_instanceIds_at instead ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @return Array of axis2_char_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_rebootInstancesType_get_instanceIds( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceIds.Deprecated for array types, Use adb_rebootInstancesType_set_instanceIds_at ++ * or adb_rebootInstancesType_add_instanceIds instead. ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceIds Array of axis2_char_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_instanceIds( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_instanceIds); ++ ++ /** ++ * Resetter for instanceIds ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_reset_instanceIds( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of instanceIds. ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_rebootInstancesType_get_instanceIds_at( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of instanceIds. (If the ith already exist, it will be replaced) ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_instanceIds element to set axis2_char_t* to the array ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_instanceIds_at( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_instanceIds); ++ ++ ++ /** ++ * Add to instanceIds. ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceIds element to add axis2_char_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_add_instanceIds( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceIds); ++ ++ /** ++ * Get the size of the instanceIds array. ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the instanceIds array. ++ */ ++ int AXIS2_CALL ++ adb_rebootInstancesType_sizeof_instanceIds( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of instanceIds. ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_remove_instanceIds_at( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesType_is_correlationId_nil( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesType_is_userId_nil( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesType_is_statusMessage_nil( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_statusMessage_nil( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesType_is_return_nil( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether instanceIds is nill ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesType_is_instanceIds_nil( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether instanceIds is nill at i ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesType_is_instanceIds_nil_at( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set instanceIds to nill at i ++ * @param _rebootInstancesType _ adb_rebootInstancesType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_set_instanceIds_nil_at( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_rebootInstancesType_deserialize( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_rebootInstancesType_declare_parent_namespaces( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _rebootInstancesType adb_rebootInstancesType_t object ++ * @param env pointer to environment struct ++ * @param rebootInstancesType_om_node node to serialize from ++ * @param rebootInstancesType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_rebootInstancesType_serialize( ++ adb_rebootInstancesType_t* _rebootInstancesType, ++ const axutil_env_t *env, ++ axiom_node_t* rebootInstancesType_om_node, axiom_element_t *rebootInstancesType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_rebootInstancesType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_rebootInstancesType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_REBOOTINSTANCESTYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_runInstancesResponseType.c' +--- old/cluster/generated/adb_runInstancesResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_runInstancesResponseType.c 2010-01-05 01:00:47 +0000 +@@ -0,0 +1,2076 @@ ++ ++ ++ /** ++ * adb_runInstancesResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_runInstancesResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = runInstancesResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_runInstancesResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ axutil_array_list_t* property_instances; ++ ++ ++ axis2_bool_t is_valid_instances; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_correlationId_nil( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_userId_nil( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_return_nil( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_instances_nil_at( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_instances_nil( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_runInstancesResponseType_t* AXIS2_CALL ++ adb_runInstancesResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_runInstancesResponseType_t *_runInstancesResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _runInstancesResponseType = (adb_runInstancesResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_runInstancesResponseType_t)); ++ ++ if(NULL == _runInstancesResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_runInstancesResponseType, 0, sizeof(adb_runInstancesResponseType_t)); ++ ++ _runInstancesResponseType->property_correlationId = NULL; ++ _runInstancesResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _runInstancesResponseType->property_userId = NULL; ++ _runInstancesResponseType->is_valid_userId = AXIS2_FALSE; ++ _runInstancesResponseType->property_statusMessage = NULL; ++ _runInstancesResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _runInstancesResponseType->is_valid_return = AXIS2_FALSE; ++ _runInstancesResponseType->property_instances = NULL; ++ _runInstancesResponseType->is_valid_instances = AXIS2_FALSE; ++ ++ ++ return _runInstancesResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_free ( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE); ++ ++ adb_runInstancesResponseType_reset_correlationId(_runInstancesResponseType, env); ++ adb_runInstancesResponseType_reset_userId(_runInstancesResponseType, env); ++ adb_runInstancesResponseType_reset_statusMessage(_runInstancesResponseType, env); ++ adb_runInstancesResponseType_reset_return(_runInstancesResponseType, env); ++ adb_runInstancesResponseType_reset_instances(_runInstancesResponseType, env); ++ ++ ++ if(_runInstancesResponseType) ++ { ++ AXIS2_FREE(env->allocator, _runInstancesResponseType); ++ _runInstancesResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_deserialize( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for runInstancesResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_runInstancesResponseType_set_correlationId(_runInstancesResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_runInstancesResponseType_set_correlationId(_runInstancesResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_runInstancesResponseType_set_userId(_runInstancesResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_runInstancesResponseType_set_userId(_runInstancesResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_runInstancesResponseType_set_statusMessage(_runInstancesResponseType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_runInstancesResponseType_set_return(_runInstancesResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_runInstancesResponseType_set_return(_runInstancesResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building instances array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building instances element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "instances", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ element = (void*)adb_ccInstanceType_create(env); ++ ++ status = adb_ccInstanceType_deserialize((adb_ccInstanceType_t*)element, env, ++ ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building element instances "); ++ } ++ else ++ { ++ axutil_array_list_add_at(arr_list, env, i, element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instances "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instances (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_runInstancesResponseType_set_instances(_runInstancesResponseType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_runInstancesResponseType_declare_parent_namespaces( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_runInstancesResponseType_serialize( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t text_value_5[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _runInstancesResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _runInstancesResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _runInstancesResponseType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_runInstancesResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesResponseType->is_valid_instances) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instances"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instances"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing instances array ++ */ ++ if (_runInstancesResponseType->property_instances != NULL) ++ { ++ ++ ++ sprintf(start_input_str, "<%s%sinstances", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_runInstancesResponseType->property_instances, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_runInstancesResponseType->property_instances, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing instances element ++ */ ++ ++ ++ ++ if(!adb_ccInstanceType_is_particle()) ++ { ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ } ++ ++ adb_ccInstanceType_serialize((adb_ccInstanceType_t*)element, ++ env, current_node, parent_element, ++ adb_ccInstanceType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index); ++ ++ if(!adb_ccInstanceType_is_particle()) ++ { ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ } ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesResponseType_get_correlationId( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, NULL); ++ ++ ++ return _runInstancesResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_correlationId( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_runInstancesResponseType->is_valid_correlationId && ++ arg_correlationId == _runInstancesResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_runInstancesResponseType_reset_correlationId(_runInstancesResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _runInstancesResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _runInstancesResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _runInstancesResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_reset_correlationId( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_runInstancesResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _runInstancesResponseType->property_correlationId); ++ _runInstancesResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _runInstancesResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesResponseType_is_correlationId_nil( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_TRUE); ++ ++ return !_runInstancesResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_correlationId_nil( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesResponseType_reset_correlationId(_runInstancesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesResponseType_get_userId( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, NULL); ++ ++ ++ return _runInstancesResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_userId( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_runInstancesResponseType->is_valid_userId && ++ arg_userId == _runInstancesResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_runInstancesResponseType_reset_userId(_runInstancesResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _runInstancesResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _runInstancesResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _runInstancesResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_reset_userId( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_runInstancesResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _runInstancesResponseType->property_userId); ++ _runInstancesResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _runInstancesResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesResponseType_is_userId_nil( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_TRUE); ++ ++ return !_runInstancesResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_userId_nil( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesResponseType_reset_userId(_runInstancesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesResponseType_get_statusMessage( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, NULL); ++ ++ ++ return _runInstancesResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_statusMessage( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_runInstancesResponseType->is_valid_statusMessage && ++ arg_statusMessage == _runInstancesResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_runInstancesResponseType_reset_statusMessage(_runInstancesResponseType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _runInstancesResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _runInstancesResponseType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _runInstancesResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_reset_statusMessage( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_runInstancesResponseType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _runInstancesResponseType->property_statusMessage); ++ _runInstancesResponseType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _runInstancesResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesResponseType_is_statusMessage_nil( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_TRUE); ++ ++ return !_runInstancesResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_statusMessage_nil( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesResponseType_reset_statusMessage(_runInstancesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesResponseType_get_return( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, (axis2_bool_t)0); ++ ++ ++ return _runInstancesResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_return( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_runInstancesResponseType->is_valid_return && ++ arg_return == _runInstancesResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_runInstancesResponseType_reset_return(_runInstancesResponseType, env); ++ ++ _runInstancesResponseType->property_return = arg_return; ++ _runInstancesResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_reset_return( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ _runInstancesResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesResponseType_is_return_nil( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_TRUE); ++ ++ return !_runInstancesResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_return_nil( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesResponseType_reset_return(_runInstancesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instances. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_runInstancesResponseType_get_instances( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, NULL); ++ ++ ++ return _runInstancesResponseType->property_instances; ++ } ++ ++ /** ++ * setter for instances ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_instances( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_instances) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_runInstancesResponseType->is_valid_instances && ++ arg_instances == _runInstancesResponseType->property_instances) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_instances, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instances has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_instances, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_runInstancesResponseType_reset_instances(_runInstancesResponseType, env); ++ ++ ++ if(NULL == arg_instances) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _runInstancesResponseType->property_instances = arg_instances; ++ if(non_nil_exists) ++ { ++ _runInstancesResponseType->is_valid_instances = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of instances. ++ */ ++ adb_ccInstanceType_t* AXIS2_CALL ++ adb_runInstancesResponseType_get_instances_at( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ adb_ccInstanceType_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, NULL); ++ ++ ++ if(_runInstancesResponseType->property_instances == NULL) ++ { ++ return (adb_ccInstanceType_t*)0; ++ } ++ ret_val = (adb_ccInstanceType_t*)axutil_array_list_get(_runInstancesResponseType->property_instances, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of instances. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_instances_at( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, int i, ++ adb_ccInstanceType_t* arg_instances) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE); ++ ++ if( _runInstancesResponseType->is_valid_instances && ++ _runInstancesResponseType->property_instances && ++ ++ arg_instances == (adb_ccInstanceType_t*)axutil_array_list_get(_runInstancesResponseType->property_instances, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instances) ++ { ++ if(_runInstancesResponseType->property_instances != NULL) ++ { ++ size = axutil_array_list_size(_runInstancesResponseType->property_instances, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_runInstancesResponseType->property_instances, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instances is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_runInstancesResponseType->property_instances == NULL) ++ { ++ _runInstancesResponseType->property_instances = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_runInstancesResponseType->property_instances, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ adb_ccInstanceType_free((adb_ccInstanceType_t*)element, env); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _runInstancesResponseType->is_valid_instances = AXIS2_FALSE; ++ axutil_array_list_set(_runInstancesResponseType->property_instances , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_runInstancesResponseType->property_instances , env, i, arg_instances); ++ _runInstancesResponseType->is_valid_instances = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to instances. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_add_instances( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, ++ adb_ccInstanceType_t* arg_instances) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_instances) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_runInstancesResponseType->property_instances == NULL) ++ { ++ _runInstancesResponseType->property_instances = axutil_array_list_create(env, 10); ++ } ++ if(_runInstancesResponseType->property_instances == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for instances"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_runInstancesResponseType->property_instances , env, arg_instances); ++ _runInstancesResponseType->is_valid_instances = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the instances array. ++ */ ++ int AXIS2_CALL ++ adb_runInstancesResponseType_sizeof_instances( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, -1); ++ if(_runInstancesResponseType->property_instances == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_runInstancesResponseType->property_instances, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_remove_instances_at( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_runInstancesResponseType_set_instances_nil_at(_runInstancesResponseType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for instances ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_reset_instances( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ if (_runInstancesResponseType->property_instances != NULL) ++ { ++ count = axutil_array_list_size(_runInstancesResponseType->property_instances, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_runInstancesResponseType->property_instances, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ adb_ccInstanceType_free((adb_ccInstanceType_t*)element, env); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_runInstancesResponseType->property_instances, env); ++ } ++ _runInstancesResponseType->is_valid_instances = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instances is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesResponseType_is_instances_nil( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_TRUE); ++ ++ return !_runInstancesResponseType->is_valid_instances; ++ } ++ ++ /** ++ * Set instances to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_instances_nil( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesResponseType_reset_instances(_runInstancesResponseType, env); ++ } ++ ++ ++ /** ++ * Check whether instances is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesResponseType_is_instances_nil_at( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_TRUE); ++ ++ return (_runInstancesResponseType->is_valid_instances == AXIS2_FALSE || ++ NULL == _runInstancesResponseType->property_instances || ++ NULL == axutil_array_list_get(_runInstancesResponseType->property_instances, env, i)); ++ } ++ ++ /** ++ * Set instances to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_instances_nil_at( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_runInstancesResponseType->property_instances == NULL || ++ _runInstancesResponseType->is_valid_instances == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_runInstancesResponseType->property_instances, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_runInstancesResponseType->property_instances, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instances is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_runInstancesResponseType->property_instances == NULL) ++ { ++ _runInstancesResponseType->is_valid_instances = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_runInstancesResponseType->property_instances, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ adb_ccInstanceType_free((adb_ccInstanceType_t*)element, env); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _runInstancesResponseType->is_valid_instances = AXIS2_FALSE; ++ axutil_array_list_set(_runInstancesResponseType->property_instances , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_runInstancesResponseType->property_instances , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_runInstancesResponseType.h' +--- old/cluster/generated/adb_runInstancesResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_runInstancesResponseType.h 2010-01-05 01:00:47 +0000 +@@ -0,0 +1,540 @@ ++ ++ ++ #ifndef ADB_RUNINSTANCESRESPONSETYPE_H ++ #define ADB_RUNINSTANCESRESPONSETYPE_H ++ ++ /** ++ * adb_runInstancesResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_runInstancesResponseType class ++ */ ++ typedef struct adb_runInstancesResponseType adb_runInstancesResponseType_t; ++ ++ ++ #include "adb_ccInstanceType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_runInstancesResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_runInstancesResponseType_t object ++ */ ++ adb_runInstancesResponseType_t* AXIS2_CALL ++ adb_runInstancesResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_runInstancesResponseType_t object ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_free ( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesResponseType_get_correlationId( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_correlationId( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_reset_correlationId( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesResponseType_get_userId( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_userId( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_reset_userId( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesResponseType_get_statusMessage( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_statusMessage( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_reset_statusMessage( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesResponseType_get_return( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_return( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_reset_return( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instances. Deprecated for array types, Use adb_runInstancesResponseType_get_instances_at instead ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return Array of adb_ccInstanceType_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_runInstancesResponseType_get_instances( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instances.Deprecated for array types, Use adb_runInstancesResponseType_set_instances_at ++ * or adb_runInstancesResponseType_add_instances instead. ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_instances Array of adb_ccInstanceType_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_instances( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_instances); ++ ++ /** ++ * Resetter for instances ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_reset_instances( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of instances. ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith adb_ccInstanceType_t* of the array ++ */ ++ adb_ccInstanceType_t* AXIS2_CALL ++ adb_runInstancesResponseType_get_instances_at( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of instances. (If the ith already exist, it will be replaced) ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_instances element to set adb_ccInstanceType_t* to the array ++ * @return ith adb_ccInstanceType_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_instances_at( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, int i, ++ adb_ccInstanceType_t* arg_instances); ++ ++ ++ /** ++ * Add to instances. ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_instances element to add adb_ccInstanceType_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_add_instances( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, ++ adb_ccInstanceType_t* arg_instances); ++ ++ /** ++ * Get the size of the instances array. ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the instances array. ++ */ ++ int AXIS2_CALL ++ adb_runInstancesResponseType_sizeof_instances( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of instances. ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_remove_instances_at( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesResponseType_is_correlationId_nil( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesResponseType_is_userId_nil( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesResponseType_is_statusMessage_nil( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_statusMessage_nil( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesResponseType_is_return_nil( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether instances is nill ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesResponseType_is_instances_nil( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether instances is nill at i ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesResponseType_is_instances_nil_at( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set instances to nill at i ++ * @param _runInstancesResponseType _ adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_set_instances_nil_at( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesResponseType_deserialize( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_runInstancesResponseType_declare_parent_namespaces( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param runInstancesResponseType_om_node node to serialize from ++ * @param runInstancesResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_runInstancesResponseType_serialize( ++ adb_runInstancesResponseType_t* _runInstancesResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* runInstancesResponseType_om_node, axiom_element_t *runInstancesResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_runInstancesResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_RUNINSTANCESRESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_runInstancesType.c' +--- old/cluster/generated/adb_runInstancesType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_runInstancesType.c 2010-01-05 01:00:47 +0000 +@@ -0,0 +1,8715 @@ ++ ++ ++ /** ++ * adb_runInstancesType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_runInstancesType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = runInstancesType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_runInstancesType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ axis2_char_t* property_imageId; ++ ++ ++ axis2_bool_t is_valid_imageId; ++ ++ ++ axis2_char_t* property_kernelId; ++ ++ ++ axis2_bool_t is_valid_kernelId; ++ ++ ++ axis2_char_t* property_ramdiskId; ++ ++ ++ axis2_bool_t is_valid_ramdiskId; ++ ++ ++ axis2_char_t* property_imageURL; ++ ++ ++ axis2_bool_t is_valid_imageURL; ++ ++ ++ axis2_char_t* property_kernelURL; ++ ++ ++ axis2_bool_t is_valid_kernelURL; ++ ++ ++ axis2_char_t* property_ramdiskURL; ++ ++ ++ axis2_bool_t is_valid_ramdiskURL; ++ ++ ++ adb_virtualMachineType_t* property_instanceType; ++ ++ ++ axis2_bool_t is_valid_instanceType; ++ ++ ++ axis2_char_t* property_keyName; ++ ++ ++ axis2_bool_t is_valid_keyName; ++ ++ ++ int property_maxCount; ++ ++ ++ axis2_bool_t is_valid_maxCount; ++ ++ ++ int property_minCount; ++ ++ ++ axis2_bool_t is_valid_minCount; ++ ++ ++ axis2_char_t* property_reservationId; ++ ++ ++ axis2_bool_t is_valid_reservationId; ++ ++ ++ axutil_array_list_t* property_instanceIds; ++ ++ ++ axis2_bool_t is_valid_instanceIds; ++ ++ ++ axutil_array_list_t* property_netNames; ++ ++ ++ axis2_bool_t is_valid_netNames; ++ ++ ++ axutil_array_list_t* property_macAddresses; ++ ++ ++ axis2_bool_t is_valid_macAddresses; ++ ++ ++ axutil_array_list_t* property_networkIndexList; ++ ++ ++ axis2_bool_t is_valid_networkIndexList; ++ ++ ++ int property_vlan; ++ ++ ++ axis2_bool_t is_valid_vlan; ++ ++ ++ axis2_char_t* property_userData; ++ ++ ++ axis2_bool_t is_valid_userData; ++ ++ ++ axis2_char_t* property_launchIndex; ++ ++ ++ axis2_bool_t is_valid_launchIndex; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_correlationId_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_userId_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_return_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_imageId_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_kernelId_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_ramdiskId_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_imageURL_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_kernelURL_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_ramdiskURL_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_instanceType_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_keyName_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_maxCount_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_minCount_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_reservationId_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_instanceIds_nil_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_instanceIds_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_netNames_nil_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_netNames_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_macAddresses_nil_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_macAddresses_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_networkIndexList_nil_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_networkIndexList_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_vlan_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_userData_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_launchIndex_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_runInstancesType_t* AXIS2_CALL ++ adb_runInstancesType_create( ++ const axutil_env_t *env) ++ { ++ adb_runInstancesType_t *_runInstancesType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _runInstancesType = (adb_runInstancesType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_runInstancesType_t)); ++ ++ if(NULL == _runInstancesType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_runInstancesType, 0, sizeof(adb_runInstancesType_t)); ++ ++ _runInstancesType->property_correlationId = NULL; ++ _runInstancesType->is_valid_correlationId = AXIS2_FALSE; ++ _runInstancesType->property_userId = NULL; ++ _runInstancesType->is_valid_userId = AXIS2_FALSE; ++ _runInstancesType->property_statusMessage = NULL; ++ _runInstancesType->is_valid_statusMessage = AXIS2_FALSE; ++ _runInstancesType->is_valid_return = AXIS2_FALSE; ++ _runInstancesType->property_imageId = NULL; ++ _runInstancesType->is_valid_imageId = AXIS2_FALSE; ++ _runInstancesType->property_kernelId = NULL; ++ _runInstancesType->is_valid_kernelId = AXIS2_FALSE; ++ _runInstancesType->property_ramdiskId = NULL; ++ _runInstancesType->is_valid_ramdiskId = AXIS2_FALSE; ++ _runInstancesType->property_imageURL = NULL; ++ _runInstancesType->is_valid_imageURL = AXIS2_FALSE; ++ _runInstancesType->property_kernelURL = NULL; ++ _runInstancesType->is_valid_kernelURL = AXIS2_FALSE; ++ _runInstancesType->property_ramdiskURL = NULL; ++ _runInstancesType->is_valid_ramdiskURL = AXIS2_FALSE; ++ _runInstancesType->property_instanceType = NULL; ++ _runInstancesType->is_valid_instanceType = AXIS2_FALSE; ++ _runInstancesType->property_keyName = NULL; ++ _runInstancesType->is_valid_keyName = AXIS2_FALSE; ++ _runInstancesType->is_valid_maxCount = AXIS2_FALSE; ++ _runInstancesType->is_valid_minCount = AXIS2_FALSE; ++ _runInstancesType->property_reservationId = NULL; ++ _runInstancesType->is_valid_reservationId = AXIS2_FALSE; ++ _runInstancesType->property_instanceIds = NULL; ++ _runInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ _runInstancesType->property_netNames = NULL; ++ _runInstancesType->is_valid_netNames = AXIS2_FALSE; ++ _runInstancesType->property_macAddresses = NULL; ++ _runInstancesType->is_valid_macAddresses = AXIS2_FALSE; ++ _runInstancesType->is_valid_networkIndexList = AXIS2_FALSE; ++ _runInstancesType->is_valid_vlan = AXIS2_FALSE; ++ _runInstancesType->property_userData = NULL; ++ _runInstancesType->is_valid_userData = AXIS2_FALSE; ++ _runInstancesType->property_launchIndex = NULL; ++ _runInstancesType->is_valid_launchIndex = AXIS2_FALSE; ++ ++ ++ return _runInstancesType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_free ( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ adb_runInstancesType_reset_correlationId(_runInstancesType, env); ++ adb_runInstancesType_reset_userId(_runInstancesType, env); ++ adb_runInstancesType_reset_statusMessage(_runInstancesType, env); ++ adb_runInstancesType_reset_return(_runInstancesType, env); ++ adb_runInstancesType_reset_imageId(_runInstancesType, env); ++ adb_runInstancesType_reset_kernelId(_runInstancesType, env); ++ adb_runInstancesType_reset_ramdiskId(_runInstancesType, env); ++ adb_runInstancesType_reset_imageURL(_runInstancesType, env); ++ adb_runInstancesType_reset_kernelURL(_runInstancesType, env); ++ adb_runInstancesType_reset_ramdiskURL(_runInstancesType, env); ++ adb_runInstancesType_reset_instanceType(_runInstancesType, env); ++ adb_runInstancesType_reset_keyName(_runInstancesType, env); ++ adb_runInstancesType_reset_maxCount(_runInstancesType, env); ++ adb_runInstancesType_reset_minCount(_runInstancesType, env); ++ adb_runInstancesType_reset_reservationId(_runInstancesType, env); ++ adb_runInstancesType_reset_instanceIds(_runInstancesType, env); ++ adb_runInstancesType_reset_netNames(_runInstancesType, env); ++ adb_runInstancesType_reset_macAddresses(_runInstancesType, env); ++ adb_runInstancesType_reset_networkIndexList(_runInstancesType, env); ++ adb_runInstancesType_reset_vlan(_runInstancesType, env); ++ adb_runInstancesType_reset_userData(_runInstancesType, env); ++ adb_runInstancesType_reset_launchIndex(_runInstancesType, env); ++ ++ ++ if(_runInstancesType) ++ { ++ AXIS2_FREE(env->allocator, _runInstancesType); ++ _runInstancesType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_deserialize( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for runInstancesType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_runInstancesType_set_correlationId(_runInstancesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_runInstancesType_set_correlationId(_runInstancesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_runInstancesType_set_userId(_runInstancesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_runInstancesType_set_userId(_runInstancesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_runInstancesType_set_statusMessage(_runInstancesType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_runInstancesType_set_return(_runInstancesType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_runInstancesType_set_return(_runInstancesType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building imageId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "imageId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_runInstancesType_set_imageId(_runInstancesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element imageId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_runInstancesType_set_imageId(_runInstancesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for imageId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building kernelId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "kernelId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_runInstancesType_set_kernelId(_runInstancesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element kernelId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_runInstancesType_set_kernelId(_runInstancesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for kernelId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building ramdiskId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "ramdiskId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_runInstancesType_set_ramdiskId(_runInstancesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element ramdiskId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_runInstancesType_set_ramdiskId(_runInstancesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ramdiskId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building imageURL element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "imageURL", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_runInstancesType_set_imageURL(_runInstancesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element imageURL"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_runInstancesType_set_imageURL(_runInstancesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for imageURL "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building kernelURL element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "kernelURL", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_runInstancesType_set_kernelURL(_runInstancesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element kernelURL"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_runInstancesType_set_kernelURL(_runInstancesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for kernelURL "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building ramdiskURL element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "ramdiskURL", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_runInstancesType_set_ramdiskURL(_runInstancesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element ramdiskURL"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_runInstancesType_set_ramdiskURL(_runInstancesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ramdiskURL "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceType element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceType", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_virtualMachineType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_virtualMachineType_create(env); ++ ++ status = adb_virtualMachineType_deserialize((adb_virtualMachineType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element instanceType"); ++ } ++ else ++ { ++ status = adb_runInstancesType_set_instanceType(_runInstancesType, env, ++ (adb_virtualMachineType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceType "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building keyName element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "keyName", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_runInstancesType_set_keyName(_runInstancesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element keyName"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_runInstancesType_set_keyName(_runInstancesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for keyName "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building maxCount element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "maxCount", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_runInstancesType_set_maxCount(_runInstancesType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element maxCount"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for maxCount "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element maxCount missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building minCount element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "minCount", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_runInstancesType_set_minCount(_runInstancesType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element minCount"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for minCount "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element minCount missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building reservationId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "reservationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_runInstancesType_set_reservationId(_runInstancesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element reservationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_runInstancesType_set_reservationId(_runInstancesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for reservationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element reservationId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building instanceIds array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building instanceIds element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "instanceIds", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value)); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceIds"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, "")); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceIds "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 1) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceIds (@minOccurs = '1') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_runInstancesType_set_instanceIds(_runInstancesType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building netNames array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building netNames element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "netNames", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value)); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element netNames"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, "")); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for netNames "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 1) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "netNames (@minOccurs = '1') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_runInstancesType_set_netNames(_runInstancesType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building macAddresses array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building macAddresses element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "macAddresses", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value)); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element macAddresses"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, "")); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for macAddresses "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 1) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "macAddresses (@minOccurs = '1') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_runInstancesType_set_macAddresses(_runInstancesType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building networkIndexList array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building networkIndexList element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "networkIndexList", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ /* we keeps ints in arrays from their pointers */ ++ element = AXIS2_MALLOC(env-> allocator, sizeof(int)); ++ (*(int*)element) = atoi(text_value); ++ axutil_array_list_add_at(arr_list, env, i, element); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element networkIndexList"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for networkIndexList "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "networkIndexList (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_runInstancesType_set_networkIndexList(_runInstancesType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building vlan element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "vlan", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_runInstancesType_set_vlan(_runInstancesType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element vlan"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for vlan "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element vlan missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userData element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userData", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_runInstancesType_set_userData(_runInstancesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userData"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_runInstancesType_set_userData(_runInstancesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userData "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element userData missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building launchIndex element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "launchIndex", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_runInstancesType_set_launchIndex(_runInstancesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element launchIndex"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_runInstancesType_set_launchIndex(_runInstancesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for launchIndex "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element launchIndex missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_runInstancesType_declare_parent_namespaces( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_runInstancesType_serialize( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *text_value_6; ++ axis2_char_t *text_value_6_temp; ++ ++ axis2_char_t *text_value_7; ++ axis2_char_t *text_value_7_temp; ++ ++ axis2_char_t *text_value_8; ++ axis2_char_t *text_value_8_temp; ++ ++ axis2_char_t *text_value_9; ++ axis2_char_t *text_value_9_temp; ++ ++ axis2_char_t *text_value_10; ++ axis2_char_t *text_value_10_temp; ++ ++ axis2_char_t text_value_11[64]; ++ ++ axis2_char_t *text_value_12; ++ axis2_char_t *text_value_12_temp; ++ ++ axis2_char_t text_value_13[64]; ++ ++ axis2_char_t text_value_14[64]; ++ ++ axis2_char_t *text_value_15; ++ axis2_char_t *text_value_15_temp; ++ ++ axis2_char_t *text_value_16; ++ axis2_char_t *text_value_16_temp; ++ ++ axis2_char_t *text_value_17; ++ axis2_char_t *text_value_17_temp; ++ ++ axis2_char_t *text_value_18; ++ axis2_char_t *text_value_18_temp; ++ ++ axis2_char_t text_value_19[64]; ++ ++ axis2_char_t text_value_20[64]; ++ ++ axis2_char_t *text_value_21; ++ axis2_char_t *text_value_21_temp; ++ ++ axis2_char_t *text_value_22; ++ axis2_char_t *text_value_22_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _runInstancesType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _runInstancesType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _runInstancesType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_runInstancesType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesType->is_valid_imageId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("imageId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("imageId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing imageId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%simageId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _runInstancesType->property_imageId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesType->is_valid_kernelId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("kernelId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("kernelId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing kernelId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%skernelId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_6 = _runInstancesType->property_kernelId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE); ++ if (text_value_6_temp) ++ { ++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp)); ++ AXIS2_FREE(env->allocator, text_value_6_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesType->is_valid_ramdiskId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ramdiskId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ramdiskId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ramdiskId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sramdiskId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_7 = _runInstancesType->property_ramdiskId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE); ++ if (text_value_7_temp) ++ { ++ axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp)); ++ AXIS2_FREE(env->allocator, text_value_7_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesType->is_valid_imageURL) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("imageURL"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("imageURL"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing imageURL element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%simageURL>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_8 = _runInstancesType->property_imageURL; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE); ++ if (text_value_8_temp) ++ { ++ axutil_stream_write(stream, env, text_value_8_temp, axutil_strlen(text_value_8_temp)); ++ AXIS2_FREE(env->allocator, text_value_8_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesType->is_valid_kernelURL) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("kernelURL"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("kernelURL"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing kernelURL element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%skernelURL>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_9 = _runInstancesType->property_kernelURL; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_9_temp = axutil_xml_quote_string(env, text_value_9, AXIS2_TRUE); ++ if (text_value_9_temp) ++ { ++ axutil_stream_write(stream, env, text_value_9_temp, axutil_strlen(text_value_9_temp)); ++ AXIS2_FREE(env->allocator, text_value_9_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_9, axutil_strlen(text_value_9)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesType->is_valid_ramdiskURL) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ramdiskURL"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ramdiskURL"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ramdiskURL element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sramdiskURL>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_10 = _runInstancesType->property_ramdiskURL; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_10_temp = axutil_xml_quote_string(env, text_value_10, AXIS2_TRUE); ++ if (text_value_10_temp) ++ { ++ axutil_stream_write(stream, env, text_value_10_temp, axutil_strlen(text_value_10_temp)); ++ AXIS2_FREE(env->allocator, text_value_10_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_10, axutil_strlen(text_value_10)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesType->is_valid_instanceType) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceType"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceType"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceType element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceType", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ if(!adb_virtualMachineType_is_particle()) ++ { ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ } ++ ++ adb_virtualMachineType_serialize(_runInstancesType->property_instanceType, ++ env, current_node, parent_element, ++ adb_virtualMachineType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index); ++ ++ if(!adb_virtualMachineType_is_particle()) ++ { ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesType->is_valid_keyName) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("keyName"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("keyName"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing keyName element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%skeyName>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_12 = _runInstancesType->property_keyName; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_12_temp = axutil_xml_quote_string(env, text_value_12, AXIS2_TRUE); ++ if (text_value_12_temp) ++ { ++ axutil_stream_write(stream, env, text_value_12_temp, axutil_strlen(text_value_12_temp)); ++ AXIS2_FREE(env->allocator, text_value_12_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_12, axutil_strlen(text_value_12)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesType->is_valid_maxCount) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property maxCount"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("maxCount"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("maxCount"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing maxCount element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%smaxCount>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_13, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _runInstancesType->property_maxCount); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_13, axutil_strlen(text_value_13)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesType->is_valid_minCount) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property minCount"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("minCount"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("minCount"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing minCount element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sminCount>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_14, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _runInstancesType->property_minCount); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_14, axutil_strlen(text_value_14)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesType->is_valid_reservationId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property reservationId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("reservationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("reservationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing reservationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreservationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_15 = _runInstancesType->property_reservationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_15_temp = axutil_xml_quote_string(env, text_value_15, AXIS2_TRUE); ++ if (text_value_15_temp) ++ { ++ axutil_stream_write(stream, env, text_value_15_temp, axutil_strlen(text_value_15_temp)); ++ AXIS2_FREE(env->allocator, text_value_15_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_15, axutil_strlen(text_value_15)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesType->is_valid_instanceIds) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceIds"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceIds"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceIds"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing instanceIds array ++ */ ++ if (_runInstancesType->property_instanceIds != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%sinstanceIds>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_runInstancesType->property_instanceIds, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_runInstancesType->property_instanceIds, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing instanceIds element ++ */ ++ ++ ++ ++ text_value_16 = (axis2_char_t*)element; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_16_temp = axutil_xml_quote_string(env, text_value_16, AXIS2_TRUE); ++ if (text_value_16_temp) ++ { ++ axutil_stream_write(stream, env, text_value_16_temp, axutil_strlen(text_value_16_temp)); ++ AXIS2_FREE(env->allocator, text_value_16_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_16, axutil_strlen(text_value_16)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesType->is_valid_netNames) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property netNames"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("netNames"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("netNames"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing netNames array ++ */ ++ if (_runInstancesType->property_netNames != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%snetNames>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_runInstancesType->property_netNames, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_runInstancesType->property_netNames, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing netNames element ++ */ ++ ++ ++ ++ text_value_17 = (axis2_char_t*)element; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_17_temp = axutil_xml_quote_string(env, text_value_17, AXIS2_TRUE); ++ if (text_value_17_temp) ++ { ++ axutil_stream_write(stream, env, text_value_17_temp, axutil_strlen(text_value_17_temp)); ++ AXIS2_FREE(env->allocator, text_value_17_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_17, axutil_strlen(text_value_17)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesType->is_valid_macAddresses) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property macAddresses"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("macAddresses"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("macAddresses"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing macAddresses array ++ */ ++ if (_runInstancesType->property_macAddresses != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%smacAddresses>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_runInstancesType->property_macAddresses, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_runInstancesType->property_macAddresses, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing macAddresses element ++ */ ++ ++ ++ ++ text_value_18 = (axis2_char_t*)element; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_18_temp = axutil_xml_quote_string(env, text_value_18, AXIS2_TRUE); ++ if (text_value_18_temp) ++ { ++ axutil_stream_write(stream, env, text_value_18_temp, axutil_strlen(text_value_18_temp)); ++ AXIS2_FREE(env->allocator, text_value_18_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_18, axutil_strlen(text_value_18)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesType->is_valid_networkIndexList) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("networkIndexList"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("networkIndexList"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing networkIndexList array ++ */ ++ if (_runInstancesType->property_networkIndexList != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%snetworkIndexList>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_runInstancesType->property_networkIndexList, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_runInstancesType->property_networkIndexList, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing networkIndexList element ++ */ ++ ++ ++ ++ sprintf (text_value_19, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, *((int*)element)); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_19, axutil_strlen(text_value_19)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesType->is_valid_vlan) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property vlan"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("vlan"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("vlan"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing vlan element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%svlan>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_20, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _runInstancesType->property_vlan); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_20, axutil_strlen(text_value_20)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesType->is_valid_userData) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property userData"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userData"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userData"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userData element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserData>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_21 = _runInstancesType->property_userData; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_21_temp = axutil_xml_quote_string(env, text_value_21, AXIS2_TRUE); ++ if (text_value_21_temp) ++ { ++ axutil_stream_write(stream, env, text_value_21_temp, axutil_strlen(text_value_21_temp)); ++ AXIS2_FREE(env->allocator, text_value_21_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_21, axutil_strlen(text_value_21)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_runInstancesType->is_valid_launchIndex) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property launchIndex"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("launchIndex"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("launchIndex"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing launchIndex element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%slaunchIndex>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_22 = _runInstancesType->property_launchIndex; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_22_temp = axutil_xml_quote_string(env, text_value_22, AXIS2_TRUE); ++ if (text_value_22_temp) ++ { ++ axutil_stream_write(stream, env, text_value_22_temp, axutil_strlen(text_value_22_temp)); ++ AXIS2_FREE(env->allocator, text_value_22_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_22, axutil_strlen(text_value_22)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_correlationId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL); ++ ++ ++ return _runInstancesType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_correlationId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->is_valid_correlationId && ++ arg_correlationId == _runInstancesType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_runInstancesType_reset_correlationId(_runInstancesType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _runInstancesType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _runInstancesType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _runInstancesType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_correlationId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_runInstancesType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _runInstancesType->property_correlationId); ++ _runInstancesType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _runInstancesType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_correlationId_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return !_runInstancesType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_correlationId_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesType_reset_correlationId(_runInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_userId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL); ++ ++ ++ return _runInstancesType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_userId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->is_valid_userId && ++ arg_userId == _runInstancesType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_runInstancesType_reset_userId(_runInstancesType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _runInstancesType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _runInstancesType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _runInstancesType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_userId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_runInstancesType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _runInstancesType->property_userId); ++ _runInstancesType->property_userId = NULL; ++ } ++ ++ ++ ++ _runInstancesType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_userId_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return !_runInstancesType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_userId_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesType_reset_userId(_runInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_statusMessage( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL); ++ ++ ++ return _runInstancesType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_statusMessage( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->is_valid_statusMessage && ++ arg_statusMessage == _runInstancesType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_runInstancesType_reset_statusMessage(_runInstancesType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _runInstancesType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _runInstancesType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _runInstancesType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_statusMessage( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_runInstancesType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _runInstancesType->property_statusMessage); ++ _runInstancesType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _runInstancesType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_statusMessage_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return !_runInstancesType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_statusMessage_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesType_reset_statusMessage(_runInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_get_return( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, (axis2_bool_t)0); ++ ++ ++ return _runInstancesType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_return( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->is_valid_return && ++ arg_return == _runInstancesType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_runInstancesType_reset_return(_runInstancesType, env); ++ ++ _runInstancesType->property_return = arg_return; ++ _runInstancesType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_return( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ _runInstancesType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_return_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return !_runInstancesType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_return_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesType_reset_return(_runInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for imageId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_imageId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL); ++ ++ ++ return _runInstancesType->property_imageId; ++ } ++ ++ /** ++ * setter for imageId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_imageId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_imageId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->is_valid_imageId && ++ arg_imageId == _runInstancesType->property_imageId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_runInstancesType_reset_imageId(_runInstancesType, env); ++ ++ ++ if(NULL == arg_imageId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _runInstancesType->property_imageId = (axis2_char_t *)axutil_strdup(env, arg_imageId); ++ if(NULL == _runInstancesType->property_imageId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for imageId"); ++ return AXIS2_FAILURE; ++ } ++ _runInstancesType->is_valid_imageId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for imageId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_imageId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_runInstancesType->property_imageId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _runInstancesType->property_imageId); ++ _runInstancesType->property_imageId = NULL; ++ } ++ ++ ++ ++ _runInstancesType->is_valid_imageId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether imageId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_imageId_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return !_runInstancesType->is_valid_imageId; ++ } ++ ++ /** ++ * Set imageId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_imageId_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesType_reset_imageId(_runInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for kernelId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_kernelId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL); ++ ++ ++ return _runInstancesType->property_kernelId; ++ } ++ ++ /** ++ * setter for kernelId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_kernelId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_kernelId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->is_valid_kernelId && ++ arg_kernelId == _runInstancesType->property_kernelId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_runInstancesType_reset_kernelId(_runInstancesType, env); ++ ++ ++ if(NULL == arg_kernelId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _runInstancesType->property_kernelId = (axis2_char_t *)axutil_strdup(env, arg_kernelId); ++ if(NULL == _runInstancesType->property_kernelId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for kernelId"); ++ return AXIS2_FAILURE; ++ } ++ _runInstancesType->is_valid_kernelId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for kernelId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_kernelId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_runInstancesType->property_kernelId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _runInstancesType->property_kernelId); ++ _runInstancesType->property_kernelId = NULL; ++ } ++ ++ ++ ++ _runInstancesType->is_valid_kernelId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether kernelId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_kernelId_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return !_runInstancesType->is_valid_kernelId; ++ } ++ ++ /** ++ * Set kernelId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_kernelId_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesType_reset_kernelId(_runInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for ramdiskId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_ramdiskId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL); ++ ++ ++ return _runInstancesType->property_ramdiskId; ++ } ++ ++ /** ++ * setter for ramdiskId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_ramdiskId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_ramdiskId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->is_valid_ramdiskId && ++ arg_ramdiskId == _runInstancesType->property_ramdiskId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_runInstancesType_reset_ramdiskId(_runInstancesType, env); ++ ++ ++ if(NULL == arg_ramdiskId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _runInstancesType->property_ramdiskId = (axis2_char_t *)axutil_strdup(env, arg_ramdiskId); ++ if(NULL == _runInstancesType->property_ramdiskId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for ramdiskId"); ++ return AXIS2_FAILURE; ++ } ++ _runInstancesType->is_valid_ramdiskId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ramdiskId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_ramdiskId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_runInstancesType->property_ramdiskId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _runInstancesType->property_ramdiskId); ++ _runInstancesType->property_ramdiskId = NULL; ++ } ++ ++ ++ ++ _runInstancesType->is_valid_ramdiskId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ramdiskId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_ramdiskId_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return !_runInstancesType->is_valid_ramdiskId; ++ } ++ ++ /** ++ * Set ramdiskId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_ramdiskId_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesType_reset_ramdiskId(_runInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for imageURL. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_imageURL( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL); ++ ++ ++ return _runInstancesType->property_imageURL; ++ } ++ ++ /** ++ * setter for imageURL ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_imageURL( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_imageURL) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->is_valid_imageURL && ++ arg_imageURL == _runInstancesType->property_imageURL) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_runInstancesType_reset_imageURL(_runInstancesType, env); ++ ++ ++ if(NULL == arg_imageURL) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _runInstancesType->property_imageURL = (axis2_char_t *)axutil_strdup(env, arg_imageURL); ++ if(NULL == _runInstancesType->property_imageURL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for imageURL"); ++ return AXIS2_FAILURE; ++ } ++ _runInstancesType->is_valid_imageURL = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for imageURL ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_imageURL( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_runInstancesType->property_imageURL != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _runInstancesType->property_imageURL); ++ _runInstancesType->property_imageURL = NULL; ++ } ++ ++ ++ ++ _runInstancesType->is_valid_imageURL = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether imageURL is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_imageURL_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return !_runInstancesType->is_valid_imageURL; ++ } ++ ++ /** ++ * Set imageURL to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_imageURL_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesType_reset_imageURL(_runInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for kernelURL. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_kernelURL( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL); ++ ++ ++ return _runInstancesType->property_kernelURL; ++ } ++ ++ /** ++ * setter for kernelURL ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_kernelURL( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_kernelURL) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->is_valid_kernelURL && ++ arg_kernelURL == _runInstancesType->property_kernelURL) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_runInstancesType_reset_kernelURL(_runInstancesType, env); ++ ++ ++ if(NULL == arg_kernelURL) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _runInstancesType->property_kernelURL = (axis2_char_t *)axutil_strdup(env, arg_kernelURL); ++ if(NULL == _runInstancesType->property_kernelURL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for kernelURL"); ++ return AXIS2_FAILURE; ++ } ++ _runInstancesType->is_valid_kernelURL = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for kernelURL ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_kernelURL( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_runInstancesType->property_kernelURL != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _runInstancesType->property_kernelURL); ++ _runInstancesType->property_kernelURL = NULL; ++ } ++ ++ ++ ++ _runInstancesType->is_valid_kernelURL = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether kernelURL is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_kernelURL_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return !_runInstancesType->is_valid_kernelURL; ++ } ++ ++ /** ++ * Set kernelURL to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_kernelURL_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesType_reset_kernelURL(_runInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for ramdiskURL. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_ramdiskURL( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL); ++ ++ ++ return _runInstancesType->property_ramdiskURL; ++ } ++ ++ /** ++ * setter for ramdiskURL ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_ramdiskURL( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_ramdiskURL) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->is_valid_ramdiskURL && ++ arg_ramdiskURL == _runInstancesType->property_ramdiskURL) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_runInstancesType_reset_ramdiskURL(_runInstancesType, env); ++ ++ ++ if(NULL == arg_ramdiskURL) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _runInstancesType->property_ramdiskURL = (axis2_char_t *)axutil_strdup(env, arg_ramdiskURL); ++ if(NULL == _runInstancesType->property_ramdiskURL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for ramdiskURL"); ++ return AXIS2_FAILURE; ++ } ++ _runInstancesType->is_valid_ramdiskURL = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ramdiskURL ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_ramdiskURL( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_runInstancesType->property_ramdiskURL != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _runInstancesType->property_ramdiskURL); ++ _runInstancesType->property_ramdiskURL = NULL; ++ } ++ ++ ++ ++ _runInstancesType->is_valid_ramdiskURL = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ramdiskURL is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_ramdiskURL_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return !_runInstancesType->is_valid_ramdiskURL; ++ } ++ ++ /** ++ * Set ramdiskURL to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_ramdiskURL_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesType_reset_ramdiskURL(_runInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceType. ++ */ ++ adb_virtualMachineType_t* AXIS2_CALL ++ adb_runInstancesType_get_instanceType( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL); ++ ++ ++ return _runInstancesType->property_instanceType; ++ } ++ ++ /** ++ * setter for instanceType ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_instanceType( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ adb_virtualMachineType_t* arg_instanceType) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->is_valid_instanceType && ++ arg_instanceType == _runInstancesType->property_instanceType) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_runInstancesType_reset_instanceType(_runInstancesType, env); ++ ++ ++ if(NULL == arg_instanceType) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _runInstancesType->property_instanceType = arg_instanceType; ++ _runInstancesType->is_valid_instanceType = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceType ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_instanceType( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_runInstancesType->property_instanceType != NULL) ++ { ++ ++ ++ adb_virtualMachineType_free(_runInstancesType->property_instanceType, env); ++ _runInstancesType->property_instanceType = NULL; ++ } ++ ++ ++ ++ _runInstancesType->is_valid_instanceType = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceType is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_instanceType_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return !_runInstancesType->is_valid_instanceType; ++ } ++ ++ /** ++ * Set instanceType to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_instanceType_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesType_reset_instanceType(_runInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for keyName. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_keyName( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL); ++ ++ ++ return _runInstancesType->property_keyName; ++ } ++ ++ /** ++ * setter for keyName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_keyName( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_keyName) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->is_valid_keyName && ++ arg_keyName == _runInstancesType->property_keyName) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_runInstancesType_reset_keyName(_runInstancesType, env); ++ ++ ++ if(NULL == arg_keyName) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _runInstancesType->property_keyName = (axis2_char_t *)axutil_strdup(env, arg_keyName); ++ if(NULL == _runInstancesType->property_keyName) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for keyName"); ++ return AXIS2_FAILURE; ++ } ++ _runInstancesType->is_valid_keyName = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for keyName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_keyName( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_runInstancesType->property_keyName != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _runInstancesType->property_keyName); ++ _runInstancesType->property_keyName = NULL; ++ } ++ ++ ++ ++ _runInstancesType->is_valid_keyName = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether keyName is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_keyName_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return !_runInstancesType->is_valid_keyName; ++ } ++ ++ /** ++ * Set keyName to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_keyName_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesType_reset_keyName(_runInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for maxCount. ++ */ ++ int AXIS2_CALL ++ adb_runInstancesType_get_maxCount( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, (int)0); ++ ++ ++ return _runInstancesType->property_maxCount; ++ } ++ ++ /** ++ * setter for maxCount ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_maxCount( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const int arg_maxCount) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->is_valid_maxCount && ++ arg_maxCount == _runInstancesType->property_maxCount) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_runInstancesType_reset_maxCount(_runInstancesType, env); ++ ++ _runInstancesType->property_maxCount = arg_maxCount; ++ _runInstancesType->is_valid_maxCount = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for maxCount ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_maxCount( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ _runInstancesType->is_valid_maxCount = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether maxCount is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_maxCount_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return !_runInstancesType->is_valid_maxCount; ++ } ++ ++ /** ++ * Set maxCount to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_maxCount_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesType_reset_maxCount(_runInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for minCount. ++ */ ++ int AXIS2_CALL ++ adb_runInstancesType_get_minCount( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, (int)0); ++ ++ ++ return _runInstancesType->property_minCount; ++ } ++ ++ /** ++ * setter for minCount ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_minCount( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const int arg_minCount) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->is_valid_minCount && ++ arg_minCount == _runInstancesType->property_minCount) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_runInstancesType_reset_minCount(_runInstancesType, env); ++ ++ _runInstancesType->property_minCount = arg_minCount; ++ _runInstancesType->is_valid_minCount = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for minCount ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_minCount( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ _runInstancesType->is_valid_minCount = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether minCount is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_minCount_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return !_runInstancesType->is_valid_minCount; ++ } ++ ++ /** ++ * Set minCount to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_minCount_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesType_reset_minCount(_runInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for reservationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_reservationId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL); ++ ++ ++ return _runInstancesType->property_reservationId; ++ } ++ ++ /** ++ * setter for reservationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_reservationId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_reservationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->is_valid_reservationId && ++ arg_reservationId == _runInstancesType->property_reservationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_reservationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "reservationId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_runInstancesType_reset_reservationId(_runInstancesType, env); ++ ++ ++ if(NULL == arg_reservationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _runInstancesType->property_reservationId = (axis2_char_t *)axutil_strdup(env, arg_reservationId); ++ if(NULL == _runInstancesType->property_reservationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for reservationId"); ++ return AXIS2_FAILURE; ++ } ++ _runInstancesType->is_valid_reservationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for reservationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_reservationId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_runInstancesType->property_reservationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _runInstancesType->property_reservationId); ++ _runInstancesType->property_reservationId = NULL; ++ } ++ ++ ++ ++ _runInstancesType->is_valid_reservationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether reservationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_reservationId_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return !_runInstancesType->is_valid_reservationId; ++ } ++ ++ /** ++ * Set reservationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_reservationId_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesType_reset_reservationId(_runInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceIds. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_runInstancesType_get_instanceIds( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL); ++ ++ ++ return _runInstancesType->property_instanceIds; ++ } ++ ++ /** ++ * setter for instanceIds ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_instanceIds( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_instanceIds) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->is_valid_instanceIds && ++ arg_instanceIds == _runInstancesType->property_instanceIds) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_instanceIds, env); ++ ++ if (size < 1) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceIds has less than minOccurs(1)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_instanceIds, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of instanceIds is being set to NULL, but it is not a nullable or minOccurs=0 element"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(NULL == arg_instanceIds) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceIds is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_runInstancesType_reset_instanceIds(_runInstancesType, env); ++ ++ ++ if(NULL == arg_instanceIds) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _runInstancesType->property_instanceIds = arg_instanceIds; ++ if(non_nil_exists) ++ { ++ _runInstancesType->is_valid_instanceIds = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of instanceIds. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_instanceIds_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ axis2_char_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL); ++ ++ ++ if(_runInstancesType->property_instanceIds == NULL) ++ { ++ return (axis2_char_t*)0; ++ } ++ ret_val = (axis2_char_t*)axutil_array_list_get(_runInstancesType->property_instanceIds, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of instanceIds. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_instanceIds_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_instanceIds) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if( _runInstancesType->is_valid_instanceIds && ++ _runInstancesType->property_instanceIds && ++ ++ arg_instanceIds == (axis2_char_t*)axutil_array_list_get(_runInstancesType->property_instanceIds, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instanceIds) ++ { ++ if(_runInstancesType->property_instanceIds != NULL) ++ { ++ size = axutil_array_list_size(_runInstancesType->property_instanceIds, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_runInstancesType->property_instanceIds, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 1) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if(!non_nil_exists) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of instanceIds is being set to NULL, but it is not a nullable or minOccurs=0 element"); ++ return AXIS2_FAILURE; ++ } ++ ++ if( k < 1) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instanceIds is beinng set to be smaller than the specificed number of minOccurs(1)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_runInstancesType->property_instanceIds == NULL) ++ { ++ _runInstancesType->property_instanceIds = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_runInstancesType->property_instanceIds, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ axutil_array_list_set(_runInstancesType->property_instanceIds , env, i, axutil_strdup(env, arg_instanceIds)); ++ _runInstancesType->is_valid_instanceIds = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to instanceIds. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_add_instanceIds( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceIds) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_instanceIds) ++ { ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of instanceIds is being set to NULL, but it is not a nullable or minOccurs=0 element"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ ++ if(_runInstancesType->property_instanceIds == NULL) ++ { ++ _runInstancesType->property_instanceIds = axutil_array_list_create(env, 10); ++ } ++ if(_runInstancesType->property_instanceIds == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for instanceIds"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_runInstancesType->property_instanceIds , env, axutil_strdup(env, arg_instanceIds)); ++ _runInstancesType->is_valid_instanceIds = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the instanceIds array. ++ */ ++ int AXIS2_CALL ++ adb_runInstancesType_sizeof_instanceIds( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, -1); ++ if(_runInstancesType->property_instanceIds == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_runInstancesType->property_instanceIds, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_remove_instanceIds_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_runInstancesType_set_instanceIds_nil_at(_runInstancesType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for instanceIds ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_instanceIds( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ if (_runInstancesType->property_instanceIds != NULL) ++ { ++ count = axutil_array_list_size(_runInstancesType->property_instanceIds, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_runInstancesType->property_instanceIds, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_runInstancesType->property_instanceIds, env); ++ } ++ _runInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceIds is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_instanceIds_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return !_runInstancesType->is_valid_instanceIds; ++ } ++ ++ /** ++ * Set instanceIds to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_instanceIds_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesType_reset_instanceIds(_runInstancesType, env); ++ } ++ ++ ++ /** ++ * Check whether instanceIds is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_instanceIds_nil_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return (_runInstancesType->is_valid_instanceIds == AXIS2_FALSE || ++ NULL == _runInstancesType->property_instanceIds || ++ NULL == axutil_array_list_get(_runInstancesType->property_instanceIds, env, i)); ++ } ++ ++ /** ++ * Set instanceIds to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_instanceIds_nil_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->property_instanceIds == NULL || ++ _runInstancesType->is_valid_instanceIds == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_runInstancesType->property_instanceIds, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_runInstancesType->property_instanceIds, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 1) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ if(!non_nil_exists) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of instanceIds is being set to NULL, but it is not a nullable or minOccurs=0 element"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if( k < 1) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instanceIds is beinng set to be smaller than the specificed number of minOccurs(1)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_runInstancesType->property_instanceIds == NULL) ++ { ++ _runInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_runInstancesType->property_instanceIds, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ ++ ++ axutil_array_list_set(_runInstancesType->property_instanceIds , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ ++ /** ++ * getter for netNames. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_runInstancesType_get_netNames( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL); ++ ++ ++ return _runInstancesType->property_netNames; ++ } ++ ++ /** ++ * setter for netNames ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_netNames( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_netNames) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->is_valid_netNames && ++ arg_netNames == _runInstancesType->property_netNames) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_netNames, env); ++ ++ if (size < 1) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "netNames has less than minOccurs(1)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_netNames, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of netNames is being set to NULL, but it is not a nullable or minOccurs=0 element"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(NULL == arg_netNames) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "netNames is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_runInstancesType_reset_netNames(_runInstancesType, env); ++ ++ ++ if(NULL == arg_netNames) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _runInstancesType->property_netNames = arg_netNames; ++ if(non_nil_exists) ++ { ++ _runInstancesType->is_valid_netNames = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of netNames. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_netNames_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ axis2_char_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL); ++ ++ ++ if(_runInstancesType->property_netNames == NULL) ++ { ++ return (axis2_char_t*)0; ++ } ++ ret_val = (axis2_char_t*)axutil_array_list_get(_runInstancesType->property_netNames, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of netNames. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_netNames_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_netNames) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if( _runInstancesType->is_valid_netNames && ++ _runInstancesType->property_netNames && ++ ++ arg_netNames == (axis2_char_t*)axutil_array_list_get(_runInstancesType->property_netNames, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_netNames) ++ { ++ if(_runInstancesType->property_netNames != NULL) ++ { ++ size = axutil_array_list_size(_runInstancesType->property_netNames, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_runInstancesType->property_netNames, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 1) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if(!non_nil_exists) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of netNames is being set to NULL, but it is not a nullable or minOccurs=0 element"); ++ return AXIS2_FAILURE; ++ } ++ ++ if( k < 1) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of netNames is beinng set to be smaller than the specificed number of minOccurs(1)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_runInstancesType->property_netNames == NULL) ++ { ++ _runInstancesType->property_netNames = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_runInstancesType->property_netNames, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ axutil_array_list_set(_runInstancesType->property_netNames , env, i, axutil_strdup(env, arg_netNames)); ++ _runInstancesType->is_valid_netNames = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to netNames. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_add_netNames( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_netNames) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_netNames) ++ { ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of netNames is being set to NULL, but it is not a nullable or minOccurs=0 element"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ ++ if(_runInstancesType->property_netNames == NULL) ++ { ++ _runInstancesType->property_netNames = axutil_array_list_create(env, 10); ++ } ++ if(_runInstancesType->property_netNames == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for netNames"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_runInstancesType->property_netNames , env, axutil_strdup(env, arg_netNames)); ++ _runInstancesType->is_valid_netNames = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the netNames array. ++ */ ++ int AXIS2_CALL ++ adb_runInstancesType_sizeof_netNames( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, -1); ++ if(_runInstancesType->property_netNames == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_runInstancesType->property_netNames, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_remove_netNames_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_runInstancesType_set_netNames_nil_at(_runInstancesType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for netNames ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_netNames( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ if (_runInstancesType->property_netNames != NULL) ++ { ++ count = axutil_array_list_size(_runInstancesType->property_netNames, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_runInstancesType->property_netNames, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_runInstancesType->property_netNames, env); ++ } ++ _runInstancesType->is_valid_netNames = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether netNames is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_netNames_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return !_runInstancesType->is_valid_netNames; ++ } ++ ++ /** ++ * Set netNames to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_netNames_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesType_reset_netNames(_runInstancesType, env); ++ } ++ ++ ++ /** ++ * Check whether netNames is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_netNames_nil_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return (_runInstancesType->is_valid_netNames == AXIS2_FALSE || ++ NULL == _runInstancesType->property_netNames || ++ NULL == axutil_array_list_get(_runInstancesType->property_netNames, env, i)); ++ } ++ ++ /** ++ * Set netNames to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_netNames_nil_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->property_netNames == NULL || ++ _runInstancesType->is_valid_netNames == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_runInstancesType->property_netNames, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_runInstancesType->property_netNames, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 1) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ if(!non_nil_exists) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of netNames is being set to NULL, but it is not a nullable or minOccurs=0 element"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if( k < 1) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of netNames is beinng set to be smaller than the specificed number of minOccurs(1)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_runInstancesType->property_netNames == NULL) ++ { ++ _runInstancesType->is_valid_netNames = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_runInstancesType->property_netNames, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ ++ ++ axutil_array_list_set(_runInstancesType->property_netNames , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ ++ /** ++ * getter for macAddresses. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_runInstancesType_get_macAddresses( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL); ++ ++ ++ return _runInstancesType->property_macAddresses; ++ } ++ ++ /** ++ * setter for macAddresses ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_macAddresses( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_macAddresses) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->is_valid_macAddresses && ++ arg_macAddresses == _runInstancesType->property_macAddresses) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_macAddresses, env); ++ ++ if (size < 1) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "macAddresses has less than minOccurs(1)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_macAddresses, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of macAddresses is being set to NULL, but it is not a nullable or minOccurs=0 element"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(NULL == arg_macAddresses) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "macAddresses is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_runInstancesType_reset_macAddresses(_runInstancesType, env); ++ ++ ++ if(NULL == arg_macAddresses) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _runInstancesType->property_macAddresses = arg_macAddresses; ++ if(non_nil_exists) ++ { ++ _runInstancesType->is_valid_macAddresses = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of macAddresses. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_macAddresses_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ axis2_char_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL); ++ ++ ++ if(_runInstancesType->property_macAddresses == NULL) ++ { ++ return (axis2_char_t*)0; ++ } ++ ret_val = (axis2_char_t*)axutil_array_list_get(_runInstancesType->property_macAddresses, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of macAddresses. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_macAddresses_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_macAddresses) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if( _runInstancesType->is_valid_macAddresses && ++ _runInstancesType->property_macAddresses && ++ ++ arg_macAddresses == (axis2_char_t*)axutil_array_list_get(_runInstancesType->property_macAddresses, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_macAddresses) ++ { ++ if(_runInstancesType->property_macAddresses != NULL) ++ { ++ size = axutil_array_list_size(_runInstancesType->property_macAddresses, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_runInstancesType->property_macAddresses, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 1) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if(!non_nil_exists) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of macAddresses is being set to NULL, but it is not a nullable or minOccurs=0 element"); ++ return AXIS2_FAILURE; ++ } ++ ++ if( k < 1) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of macAddresses is beinng set to be smaller than the specificed number of minOccurs(1)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_runInstancesType->property_macAddresses == NULL) ++ { ++ _runInstancesType->property_macAddresses = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_runInstancesType->property_macAddresses, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ axutil_array_list_set(_runInstancesType->property_macAddresses , env, i, axutil_strdup(env, arg_macAddresses)); ++ _runInstancesType->is_valid_macAddresses = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to macAddresses. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_add_macAddresses( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_macAddresses) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_macAddresses) ++ { ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of macAddresses is being set to NULL, but it is not a nullable or minOccurs=0 element"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ ++ if(_runInstancesType->property_macAddresses == NULL) ++ { ++ _runInstancesType->property_macAddresses = axutil_array_list_create(env, 10); ++ } ++ if(_runInstancesType->property_macAddresses == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for macAddresses"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_runInstancesType->property_macAddresses , env, axutil_strdup(env, arg_macAddresses)); ++ _runInstancesType->is_valid_macAddresses = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the macAddresses array. ++ */ ++ int AXIS2_CALL ++ adb_runInstancesType_sizeof_macAddresses( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, -1); ++ if(_runInstancesType->property_macAddresses == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_runInstancesType->property_macAddresses, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_remove_macAddresses_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_runInstancesType_set_macAddresses_nil_at(_runInstancesType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for macAddresses ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_macAddresses( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ if (_runInstancesType->property_macAddresses != NULL) ++ { ++ count = axutil_array_list_size(_runInstancesType->property_macAddresses, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_runInstancesType->property_macAddresses, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_runInstancesType->property_macAddresses, env); ++ } ++ _runInstancesType->is_valid_macAddresses = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether macAddresses is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_macAddresses_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return !_runInstancesType->is_valid_macAddresses; ++ } ++ ++ /** ++ * Set macAddresses to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_macAddresses_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesType_reset_macAddresses(_runInstancesType, env); ++ } ++ ++ ++ /** ++ * Check whether macAddresses is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_macAddresses_nil_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return (_runInstancesType->is_valid_macAddresses == AXIS2_FALSE || ++ NULL == _runInstancesType->property_macAddresses || ++ NULL == axutil_array_list_get(_runInstancesType->property_macAddresses, env, i)); ++ } ++ ++ /** ++ * Set macAddresses to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_macAddresses_nil_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->property_macAddresses == NULL || ++ _runInstancesType->is_valid_macAddresses == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_runInstancesType->property_macAddresses, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_runInstancesType->property_macAddresses, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 1) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ if(!non_nil_exists) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of macAddresses is being set to NULL, but it is not a nullable or minOccurs=0 element"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if( k < 1) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of macAddresses is beinng set to be smaller than the specificed number of minOccurs(1)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_runInstancesType->property_macAddresses == NULL) ++ { ++ _runInstancesType->is_valid_macAddresses = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_runInstancesType->property_macAddresses, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ ++ ++ axutil_array_list_set(_runInstancesType->property_macAddresses , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ ++ /** ++ * getter for networkIndexList. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_runInstancesType_get_networkIndexList( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL); ++ ++ ++ return _runInstancesType->property_networkIndexList; ++ } ++ ++ /** ++ * setter for networkIndexList ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_networkIndexList( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_networkIndexList) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->is_valid_networkIndexList && ++ arg_networkIndexList == _runInstancesType->property_networkIndexList) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_networkIndexList, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "networkIndexList has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_networkIndexList, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_runInstancesType_reset_networkIndexList(_runInstancesType, env); ++ ++ ++ if(NULL == arg_networkIndexList) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _runInstancesType->property_networkIndexList = arg_networkIndexList; ++ if(non_nil_exists) ++ { ++ _runInstancesType->is_valid_networkIndexList = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of networkIndexList. ++ */ ++ int AXIS2_CALL ++ adb_runInstancesType_get_networkIndexList_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ int* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, (int)0); ++ ++ ++ if(_runInstancesType->property_networkIndexList == NULL) ++ { ++ return (int)0; ++ } ++ ret_val = (int*)axutil_array_list_get(_runInstancesType->property_networkIndexList, env, i); ++ ++ if(ret_val) ++ { ++ return *ret_val; ++ } ++ return (int)0; ++ ++ } ++ ++ /** ++ * Set the ith element of networkIndexList. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_networkIndexList_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i, ++ const int arg_networkIndexList) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int* ptr_param_networkIndexList; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if( _runInstancesType->is_valid_networkIndexList && ++ _runInstancesType->property_networkIndexList && ++ ++ arg_networkIndexList == *((int*)axutil_array_list_get(_runInstancesType->property_networkIndexList, env, i))) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ non_nil_exists = AXIS2_TRUE; /* no way to check for nill for each elements for primitive types */ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of networkIndexList is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_runInstancesType->property_networkIndexList == NULL) ++ { ++ _runInstancesType->property_networkIndexList = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_runInstancesType->property_networkIndexList, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ ++ /* we keep primtives as pointers in arrasy, so need to free them */ ++ AXIS2_FREE(env-> allocator, element); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _runInstancesType->is_valid_networkIndexList = AXIS2_FALSE; ++ axutil_array_list_set(_runInstancesType->property_networkIndexList , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ptr_param_networkIndexList = (int*) ++ AXIS2_MALLOC(env->allocator, sizeof(int)); ++ if(_runInstancesType->property_networkIndexList == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for new value of networkIndexList"); ++ return AXIS2_FAILURE; ++ ++ } ++ *ptr_param_networkIndexList = arg_networkIndexList; ++ axutil_array_list_set(_runInstancesType->property_networkIndexList , env, i, ptr_param_networkIndexList); ++ _runInstancesType->is_valid_networkIndexList = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to networkIndexList. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_add_networkIndexList( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const int arg_networkIndexList) ++ { ++ int* ptr_param_networkIndexList; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ if(_runInstancesType->property_networkIndexList == NULL) ++ { ++ _runInstancesType->property_networkIndexList = axutil_array_list_create(env, 10); ++ } ++ if(_runInstancesType->property_networkIndexList == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for networkIndexList"); ++ return AXIS2_FAILURE; ++ ++ } ++ ptr_param_networkIndexList = (int*) ++ AXIS2_MALLOC(env->allocator, sizeof(int)); ++ if(_runInstancesType->property_networkIndexList == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for new value of networkIndexList"); ++ return AXIS2_FAILURE; ++ ++ } ++ *ptr_param_networkIndexList = arg_networkIndexList; ++ axutil_array_list_add(_runInstancesType->property_networkIndexList , env, ptr_param_networkIndexList); ++ _runInstancesType->is_valid_networkIndexList = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the networkIndexList array. ++ */ ++ int AXIS2_CALL ++ adb_runInstancesType_sizeof_networkIndexList( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, -1); ++ if(_runInstancesType->property_networkIndexList == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_runInstancesType->property_networkIndexList, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_remove_networkIndexList_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_runInstancesType_set_networkIndexList_nil_at(_runInstancesType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for networkIndexList ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_networkIndexList( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ if (_runInstancesType->property_networkIndexList != NULL) ++ { ++ count = axutil_array_list_size(_runInstancesType->property_networkIndexList, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_runInstancesType->property_networkIndexList, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ ++ /* we keep primtives as pointers in arrasy, so need to free them */ ++ AXIS2_FREE(env-> allocator, element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_runInstancesType->property_networkIndexList, env); ++ } ++ _runInstancesType->is_valid_networkIndexList = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether networkIndexList is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_networkIndexList_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return !_runInstancesType->is_valid_networkIndexList; ++ } ++ ++ /** ++ * Set networkIndexList to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_networkIndexList_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesType_reset_networkIndexList(_runInstancesType, env); ++ } ++ ++ ++ /** ++ * Check whether networkIndexList is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_networkIndexList_nil_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return (_runInstancesType->is_valid_networkIndexList == AXIS2_FALSE || ++ NULL == _runInstancesType->property_networkIndexList || ++ NULL == axutil_array_list_get(_runInstancesType->property_networkIndexList, env, i)); ++ } ++ ++ /** ++ * Set networkIndexList to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_networkIndexList_nil_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->property_networkIndexList == NULL || ++ _runInstancesType->is_valid_networkIndexList == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_runInstancesType->property_networkIndexList, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_runInstancesType->property_networkIndexList, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of networkIndexList is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_runInstancesType->property_networkIndexList == NULL) ++ { ++ _runInstancesType->is_valid_networkIndexList = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_runInstancesType->property_networkIndexList, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ ++ /* we keep primtives as pointers in arrasy, so need to free them */ ++ AXIS2_FREE(env-> allocator, element); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _runInstancesType->is_valid_networkIndexList = AXIS2_FALSE; ++ axutil_array_list_set(_runInstancesType->property_networkIndexList , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_runInstancesType->property_networkIndexList , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ ++ /** ++ * getter for vlan. ++ */ ++ int AXIS2_CALL ++ adb_runInstancesType_get_vlan( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, (int)0); ++ ++ ++ return _runInstancesType->property_vlan; ++ } ++ ++ /** ++ * setter for vlan ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_vlan( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const int arg_vlan) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->is_valid_vlan && ++ arg_vlan == _runInstancesType->property_vlan) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_runInstancesType_reset_vlan(_runInstancesType, env); ++ ++ _runInstancesType->property_vlan = arg_vlan; ++ _runInstancesType->is_valid_vlan = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for vlan ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_vlan( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ _runInstancesType->is_valid_vlan = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether vlan is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_vlan_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return !_runInstancesType->is_valid_vlan; ++ } ++ ++ /** ++ * Set vlan to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_vlan_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesType_reset_vlan(_runInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userData. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_userData( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL); ++ ++ ++ return _runInstancesType->property_userData; ++ } ++ ++ /** ++ * setter for userData ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_userData( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userData) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->is_valid_userData && ++ arg_userData == _runInstancesType->property_userData) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_userData) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "userData is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_runInstancesType_reset_userData(_runInstancesType, env); ++ ++ ++ if(NULL == arg_userData) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _runInstancesType->property_userData = (axis2_char_t *)axutil_strdup(env, arg_userData); ++ if(NULL == _runInstancesType->property_userData) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userData"); ++ return AXIS2_FAILURE; ++ } ++ _runInstancesType->is_valid_userData = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userData ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_userData( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_runInstancesType->property_userData != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _runInstancesType->property_userData); ++ _runInstancesType->property_userData = NULL; ++ } ++ ++ ++ ++ _runInstancesType->is_valid_userData = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userData is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_userData_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return !_runInstancesType->is_valid_userData; ++ } ++ ++ /** ++ * Set userData to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_userData_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesType_reset_userData(_runInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for launchIndex. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_launchIndex( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL); ++ ++ ++ return _runInstancesType->property_launchIndex; ++ } ++ ++ /** ++ * setter for launchIndex ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_launchIndex( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_launchIndex) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ if(_runInstancesType->is_valid_launchIndex && ++ arg_launchIndex == _runInstancesType->property_launchIndex) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_launchIndex) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "launchIndex is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_runInstancesType_reset_launchIndex(_runInstancesType, env); ++ ++ ++ if(NULL == arg_launchIndex) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _runInstancesType->property_launchIndex = (axis2_char_t *)axutil_strdup(env, arg_launchIndex); ++ if(NULL == _runInstancesType->property_launchIndex) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for launchIndex"); ++ return AXIS2_FAILURE; ++ } ++ _runInstancesType->is_valid_launchIndex = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for launchIndex ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_launchIndex( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_runInstancesType->property_launchIndex != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _runInstancesType->property_launchIndex); ++ _runInstancesType->property_launchIndex = NULL; ++ } ++ ++ ++ ++ _runInstancesType->is_valid_launchIndex = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether launchIndex is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_launchIndex_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE); ++ ++ return !_runInstancesType->is_valid_launchIndex; ++ } ++ ++ /** ++ * Set launchIndex to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_launchIndex_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_runInstancesType_reset_launchIndex(_runInstancesType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_runInstancesType.h' +--- old/cluster/generated/adb_runInstancesType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_runInstancesType.h 2010-01-05 01:00:47 +0000 +@@ -0,0 +1,1700 @@ ++ ++ ++ #ifndef ADB_RUNINSTANCESTYPE_H ++ #define ADB_RUNINSTANCESTYPE_H ++ ++ /** ++ * adb_runInstancesType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_runInstancesType class ++ */ ++ typedef struct adb_runInstancesType adb_runInstancesType_t; ++ ++ ++ #include "adb_virtualMachineType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_runInstancesType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_runInstancesType_t object ++ */ ++ adb_runInstancesType_t* AXIS2_CALL ++ adb_runInstancesType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_runInstancesType_t object ++ * @param _runInstancesType adb_runInstancesType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_free ( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_correlationId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_correlationId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_correlationId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_userId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_userId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_userId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_statusMessage( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_statusMessage( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_statusMessage( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_get_return( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_return( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_return( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for imageId. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_imageId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for imageId. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_imageId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_imageId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_imageId); ++ ++ /** ++ * Resetter for imageId ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_imageId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for kernelId. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_kernelId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for kernelId. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_kernelId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_kernelId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_kernelId); ++ ++ /** ++ * Resetter for kernelId ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_kernelId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for ramdiskId. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_ramdiskId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ramdiskId. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_ramdiskId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_ramdiskId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_ramdiskId); ++ ++ /** ++ * Resetter for ramdiskId ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_ramdiskId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for imageURL. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_imageURL( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for imageURL. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_imageURL axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_imageURL( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_imageURL); ++ ++ /** ++ * Resetter for imageURL ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_imageURL( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for kernelURL. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_kernelURL( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for kernelURL. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_kernelURL axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_kernelURL( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_kernelURL); ++ ++ /** ++ * Resetter for kernelURL ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_kernelURL( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for ramdiskURL. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_ramdiskURL( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ramdiskURL. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_ramdiskURL axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_ramdiskURL( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_ramdiskURL); ++ ++ /** ++ * Resetter for ramdiskURL ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_ramdiskURL( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceType. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return adb_virtualMachineType_t* ++ */ ++ adb_virtualMachineType_t* AXIS2_CALL ++ adb_runInstancesType_get_instanceType( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceType. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceType adb_virtualMachineType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_instanceType( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ adb_virtualMachineType_t* arg_instanceType); ++ ++ /** ++ * Resetter for instanceType ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_instanceType( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for keyName. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_keyName( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for keyName. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_keyName axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_keyName( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_keyName); ++ ++ /** ++ * Resetter for keyName ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_keyName( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for maxCount. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_runInstancesType_get_maxCount( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for maxCount. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_maxCount int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_maxCount( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const int arg_maxCount); ++ ++ /** ++ * Resetter for maxCount ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_maxCount( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for minCount. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_runInstancesType_get_minCount( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for minCount. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_minCount int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_minCount( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const int arg_minCount); ++ ++ /** ++ * Resetter for minCount ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_minCount( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for reservationId. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_reservationId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for reservationId. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_reservationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_reservationId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_reservationId); ++ ++ /** ++ * Resetter for reservationId ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_reservationId( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceIds. Deprecated for array types, Use adb_runInstancesType_get_instanceIds_at instead ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return Array of axis2_char_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_runInstancesType_get_instanceIds( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceIds.Deprecated for array types, Use adb_runInstancesType_set_instanceIds_at ++ * or adb_runInstancesType_add_instanceIds instead. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceIds Array of axis2_char_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_instanceIds( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_instanceIds); ++ ++ /** ++ * Resetter for instanceIds ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_instanceIds( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for netNames. Deprecated for array types, Use adb_runInstancesType_get_netNames_at instead ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return Array of axis2_char_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_runInstancesType_get_netNames( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for netNames.Deprecated for array types, Use adb_runInstancesType_set_netNames_at ++ * or adb_runInstancesType_add_netNames instead. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_netNames Array of axis2_char_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_netNames( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_netNames); ++ ++ /** ++ * Resetter for netNames ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_netNames( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for macAddresses. Deprecated for array types, Use adb_runInstancesType_get_macAddresses_at instead ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return Array of axis2_char_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_runInstancesType_get_macAddresses( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for macAddresses.Deprecated for array types, Use adb_runInstancesType_set_macAddresses_at ++ * or adb_runInstancesType_add_macAddresses instead. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_macAddresses Array of axis2_char_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_macAddresses( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_macAddresses); ++ ++ /** ++ * Resetter for macAddresses ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_macAddresses( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for networkIndexList. Deprecated for array types, Use adb_runInstancesType_get_networkIndexList_at instead ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return Array of int*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_runInstancesType_get_networkIndexList( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for networkIndexList.Deprecated for array types, Use adb_runInstancesType_set_networkIndexList_at ++ * or adb_runInstancesType_add_networkIndexList instead. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_networkIndexList Array of int*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_networkIndexList( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_networkIndexList); ++ ++ /** ++ * Resetter for networkIndexList ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_networkIndexList( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for vlan. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_runInstancesType_get_vlan( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for vlan. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_vlan int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_vlan( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const int arg_vlan); ++ ++ /** ++ * Resetter for vlan ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_vlan( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userData. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_userData( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userData. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_userData axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_userData( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userData); ++ ++ /** ++ * Resetter for userData ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_userData( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for launchIndex. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_launchIndex( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for launchIndex. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_launchIndex axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_launchIndex( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_launchIndex); ++ ++ /** ++ * Resetter for launchIndex ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_reset_launchIndex( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of instanceIds. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_instanceIds_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of instanceIds. (If the ith already exist, it will be replaced) ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_instanceIds element to set axis2_char_t* to the array ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_instanceIds_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_instanceIds); ++ ++ ++ /** ++ * Add to instanceIds. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceIds element to add axis2_char_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_add_instanceIds( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceIds); ++ ++ /** ++ * Get the size of the instanceIds array. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the instanceIds array. ++ */ ++ int AXIS2_CALL ++ adb_runInstancesType_sizeof_instanceIds( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of instanceIds. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_remove_instanceIds_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /** ++ * Get the ith element of netNames. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_netNames_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of netNames. (If the ith already exist, it will be replaced) ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_netNames element to set axis2_char_t* to the array ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_netNames_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_netNames); ++ ++ ++ /** ++ * Add to netNames. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_netNames element to add axis2_char_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_add_netNames( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_netNames); ++ ++ /** ++ * Get the size of the netNames array. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the netNames array. ++ */ ++ int AXIS2_CALL ++ adb_runInstancesType_sizeof_netNames( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of netNames. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_remove_netNames_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /** ++ * Get the ith element of macAddresses. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_runInstancesType_get_macAddresses_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of macAddresses. (If the ith already exist, it will be replaced) ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_macAddresses element to set axis2_char_t* to the array ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_macAddresses_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_macAddresses); ++ ++ ++ /** ++ * Add to macAddresses. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_macAddresses element to add axis2_char_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_add_macAddresses( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_macAddresses); ++ ++ /** ++ * Get the size of the macAddresses array. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the macAddresses array. ++ */ ++ int AXIS2_CALL ++ adb_runInstancesType_sizeof_macAddresses( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of macAddresses. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_remove_macAddresses_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /** ++ * Get the ith element of networkIndexList. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith int of the array ++ */ ++ int AXIS2_CALL ++ adb_runInstancesType_get_networkIndexList_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of networkIndexList. (If the ith already exist, it will be replaced) ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_networkIndexList element to set int to the array ++ * @return ith int of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_networkIndexList_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i, ++ const int arg_networkIndexList); ++ ++ ++ /** ++ * Add to networkIndexList. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_networkIndexList element to add int to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_add_networkIndexList( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ const int arg_networkIndexList); ++ ++ /** ++ * Get the size of the networkIndexList array. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the networkIndexList array. ++ */ ++ int AXIS2_CALL ++ adb_runInstancesType_sizeof_networkIndexList( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of networkIndexList. ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_remove_networkIndexList_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_correlationId_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_userId_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_statusMessage_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_statusMessage_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_return_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether imageId is nill ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_imageId_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether kernelId is nill ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_kernelId_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether ramdiskId is nill ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_ramdiskId_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether imageURL is nill ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_imageURL_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether kernelURL is nill ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_kernelURL_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether ramdiskURL is nill ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_ramdiskURL_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether instanceType is nill ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_instanceType_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether keyName is nill ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_keyName_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether maxCount is nill ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_maxCount_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether minCount is nill ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_minCount_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether reservationId is nill ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_reservationId_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether instanceIds is nill ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_instanceIds_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether netNames is nill ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_netNames_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether macAddresses is nill ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_macAddresses_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether networkIndexList is nill ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_networkIndexList_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether vlan is nill ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_vlan_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userData is nill ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_userData_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether launchIndex is nill ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_launchIndex_nil( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether instanceIds is nill at i ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_instanceIds_nil_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set instanceIds to nill at i ++ * @param _runInstancesType _ adb_runInstancesType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_instanceIds_nil_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Check whether netNames is nill at i ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_netNames_nil_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set netNames to nill at i ++ * @param _runInstancesType _ adb_runInstancesType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_netNames_nil_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Check whether macAddresses is nill at i ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_macAddresses_nil_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set macAddresses to nill at i ++ * @param _runInstancesType _ adb_runInstancesType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_macAddresses_nil_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Check whether networkIndexList is nill at i ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_networkIndexList_nil_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set networkIndexList to nill at i ++ * @param _runInstancesType _ adb_runInstancesType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_set_networkIndexList_nil_at( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_runInstancesType_deserialize( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_runInstancesType_declare_parent_namespaces( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _runInstancesType adb_runInstancesType_t object ++ * @param env pointer to environment struct ++ * @param runInstancesType_om_node node to serialize from ++ * @param runInstancesType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_runInstancesType_serialize( ++ adb_runInstancesType_t* _runInstancesType, ++ const axutil_env_t *env, ++ axiom_node_t* runInstancesType_om_node, axiom_element_t *runInstancesType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_runInstancesType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_runInstancesType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_RUNINSTANCESTYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_startNetworkResponseType.c' +--- old/cluster/generated/adb_startNetworkResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_startNetworkResponseType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,1401 @@ ++ ++ ++ /** ++ * adb_startNetworkResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_startNetworkResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = startNetworkResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_startNetworkResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_set_correlationId_nil( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_set_userId_nil( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_set_return_nil( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_startNetworkResponseType_t* AXIS2_CALL ++ adb_startNetworkResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_startNetworkResponseType_t *_startNetworkResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _startNetworkResponseType = (adb_startNetworkResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_startNetworkResponseType_t)); ++ ++ if(NULL == _startNetworkResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_startNetworkResponseType, 0, sizeof(adb_startNetworkResponseType_t)); ++ ++ _startNetworkResponseType->property_correlationId = NULL; ++ _startNetworkResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _startNetworkResponseType->property_userId = NULL; ++ _startNetworkResponseType->is_valid_userId = AXIS2_FALSE; ++ _startNetworkResponseType->property_statusMessage = NULL; ++ _startNetworkResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _startNetworkResponseType->is_valid_return = AXIS2_FALSE; ++ ++ ++ return _startNetworkResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_free ( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_FAILURE); ++ ++ adb_startNetworkResponseType_reset_correlationId(_startNetworkResponseType, env); ++ adb_startNetworkResponseType_reset_userId(_startNetworkResponseType, env); ++ adb_startNetworkResponseType_reset_statusMessage(_startNetworkResponseType, env); ++ adb_startNetworkResponseType_reset_return(_startNetworkResponseType, env); ++ ++ ++ if(_startNetworkResponseType) ++ { ++ AXIS2_FREE(env->allocator, _startNetworkResponseType); ++ _startNetworkResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_deserialize( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for startNetworkResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_startNetworkResponseType_set_correlationId(_startNetworkResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_startNetworkResponseType_set_correlationId(_startNetworkResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_startNetworkResponseType_set_userId(_startNetworkResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_startNetworkResponseType_set_userId(_startNetworkResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_startNetworkResponseType_set_statusMessage(_startNetworkResponseType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_startNetworkResponseType_set_return(_startNetworkResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_startNetworkResponseType_set_return(_startNetworkResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_startNetworkResponseType_declare_parent_namespaces( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_startNetworkResponseType_serialize( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_startNetworkResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _startNetworkResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_startNetworkResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _startNetworkResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_startNetworkResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _startNetworkResponseType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_startNetworkResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_startNetworkResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_startNetworkResponseType_get_correlationId( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, NULL); ++ ++ ++ return _startNetworkResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_set_correlationId( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_FAILURE); ++ ++ if(_startNetworkResponseType->is_valid_correlationId && ++ arg_correlationId == _startNetworkResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_startNetworkResponseType_reset_correlationId(_startNetworkResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _startNetworkResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _startNetworkResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _startNetworkResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_reset_correlationId( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_startNetworkResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _startNetworkResponseType->property_correlationId); ++ _startNetworkResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _startNetworkResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkResponseType_is_correlationId_nil( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_TRUE); ++ ++ return !_startNetworkResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_set_correlationId_nil( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_startNetworkResponseType_reset_correlationId(_startNetworkResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_startNetworkResponseType_get_userId( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, NULL); ++ ++ ++ return _startNetworkResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_set_userId( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_FAILURE); ++ ++ if(_startNetworkResponseType->is_valid_userId && ++ arg_userId == _startNetworkResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_startNetworkResponseType_reset_userId(_startNetworkResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _startNetworkResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _startNetworkResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _startNetworkResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_reset_userId( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_startNetworkResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _startNetworkResponseType->property_userId); ++ _startNetworkResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _startNetworkResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkResponseType_is_userId_nil( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_TRUE); ++ ++ return !_startNetworkResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_set_userId_nil( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_startNetworkResponseType_reset_userId(_startNetworkResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_startNetworkResponseType_get_statusMessage( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, NULL); ++ ++ ++ return _startNetworkResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_set_statusMessage( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_FAILURE); ++ ++ if(_startNetworkResponseType->is_valid_statusMessage && ++ arg_statusMessage == _startNetworkResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_startNetworkResponseType_reset_statusMessage(_startNetworkResponseType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _startNetworkResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _startNetworkResponseType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _startNetworkResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_reset_statusMessage( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_startNetworkResponseType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _startNetworkResponseType->property_statusMessage); ++ _startNetworkResponseType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _startNetworkResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkResponseType_is_statusMessage_nil( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_TRUE); ++ ++ return !_startNetworkResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_set_statusMessage_nil( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_startNetworkResponseType_reset_statusMessage(_startNetworkResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkResponseType_get_return( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, (axis2_bool_t)0); ++ ++ ++ return _startNetworkResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_set_return( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_FAILURE); ++ ++ if(_startNetworkResponseType->is_valid_return && ++ arg_return == _startNetworkResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_startNetworkResponseType_reset_return(_startNetworkResponseType, env); ++ ++ _startNetworkResponseType->property_return = arg_return; ++ _startNetworkResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_reset_return( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ _startNetworkResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkResponseType_is_return_nil( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_TRUE); ++ ++ return !_startNetworkResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_set_return_nil( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_startNetworkResponseType_reset_return(_startNetworkResponseType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_startNetworkResponseType.h' +--- old/cluster/generated/adb_startNetworkResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_startNetworkResponseType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,362 @@ ++ ++ ++ #ifndef ADB_STARTNETWORKRESPONSETYPE_H ++ #define ADB_STARTNETWORKRESPONSETYPE_H ++ ++ /** ++ * adb_startNetworkResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_startNetworkResponseType class ++ */ ++ typedef struct adb_startNetworkResponseType adb_startNetworkResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_startNetworkResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_startNetworkResponseType_t object ++ */ ++ adb_startNetworkResponseType_t* AXIS2_CALL ++ adb_startNetworkResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_startNetworkResponseType_t object ++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_free ( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_startNetworkResponseType_get_correlationId( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_set_correlationId( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_reset_correlationId( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_startNetworkResponseType_get_userId( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_set_userId( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_reset_userId( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_startNetworkResponseType_get_statusMessage( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_set_statusMessage( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_reset_statusMessage( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkResponseType_get_return( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_set_return( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_reset_return( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkResponseType_is_correlationId_nil( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkResponseType_is_userId_nil( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkResponseType_is_statusMessage_nil( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_set_statusMessage_nil( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkResponseType_is_return_nil( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkResponseType_deserialize( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_startNetworkResponseType_declare_parent_namespaces( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param startNetworkResponseType_om_node node to serialize from ++ * @param startNetworkResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_startNetworkResponseType_serialize( ++ adb_startNetworkResponseType_t* _startNetworkResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* startNetworkResponseType_om_node, axiom_element_t *startNetworkResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_startNetworkResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_STARTNETWORKRESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_startNetworkType.c' +--- old/cluster/generated/adb_startNetworkType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_startNetworkType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,3053 @@ ++ ++ ++ /** ++ * adb_startNetworkType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_startNetworkType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = startNetworkType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_startNetworkType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_vlan; ++ ++ ++ axis2_bool_t is_valid_vlan; ++ ++ ++ axis2_char_t* property_netName; ++ ++ ++ axis2_bool_t is_valid_netName; ++ ++ ++ axis2_char_t* property_nameserver; ++ ++ ++ axis2_bool_t is_valid_nameserver; ++ ++ ++ axutil_array_list_t* property_clusterControllers; ++ ++ ++ axis2_bool_t is_valid_clusterControllers; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_correlationId_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_userId_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_return_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_vlan_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_netName_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_nameserver_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_clusterControllers_nil_at( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_clusterControllers_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_startNetworkType_t* AXIS2_CALL ++ adb_startNetworkType_create( ++ const axutil_env_t *env) ++ { ++ adb_startNetworkType_t *_startNetworkType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _startNetworkType = (adb_startNetworkType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_startNetworkType_t)); ++ ++ if(NULL == _startNetworkType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_startNetworkType, 0, sizeof(adb_startNetworkType_t)); ++ ++ _startNetworkType->property_correlationId = NULL; ++ _startNetworkType->is_valid_correlationId = AXIS2_FALSE; ++ _startNetworkType->property_userId = NULL; ++ _startNetworkType->is_valid_userId = AXIS2_FALSE; ++ _startNetworkType->property_statusMessage = NULL; ++ _startNetworkType->is_valid_statusMessage = AXIS2_FALSE; ++ _startNetworkType->is_valid_return = AXIS2_FALSE; ++ _startNetworkType->is_valid_vlan = AXIS2_FALSE; ++ _startNetworkType->property_netName = NULL; ++ _startNetworkType->is_valid_netName = AXIS2_FALSE; ++ _startNetworkType->property_nameserver = NULL; ++ _startNetworkType->is_valid_nameserver = AXIS2_FALSE; ++ _startNetworkType->property_clusterControllers = NULL; ++ _startNetworkType->is_valid_clusterControllers = AXIS2_FALSE; ++ ++ ++ return _startNetworkType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_free ( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE); ++ ++ adb_startNetworkType_reset_correlationId(_startNetworkType, env); ++ adb_startNetworkType_reset_userId(_startNetworkType, env); ++ adb_startNetworkType_reset_statusMessage(_startNetworkType, env); ++ adb_startNetworkType_reset_return(_startNetworkType, env); ++ adb_startNetworkType_reset_vlan(_startNetworkType, env); ++ adb_startNetworkType_reset_netName(_startNetworkType, env); ++ adb_startNetworkType_reset_nameserver(_startNetworkType, env); ++ adb_startNetworkType_reset_clusterControllers(_startNetworkType, env); ++ ++ ++ if(_startNetworkType) ++ { ++ AXIS2_FREE(env->allocator, _startNetworkType); ++ _startNetworkType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_deserialize( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for startNetworkType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_startNetworkType_set_correlationId(_startNetworkType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_startNetworkType_set_correlationId(_startNetworkType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_startNetworkType_set_userId(_startNetworkType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_startNetworkType_set_userId(_startNetworkType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_startNetworkType_set_statusMessage(_startNetworkType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_startNetworkType_set_return(_startNetworkType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_startNetworkType_set_return(_startNetworkType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building vlan element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "vlan", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_startNetworkType_set_vlan(_startNetworkType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element vlan"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for vlan "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building netName element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "netName", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_startNetworkType_set_netName(_startNetworkType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element netName"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_startNetworkType_set_netName(_startNetworkType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for netName "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building nameserver element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "nameserver", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_startNetworkType_set_nameserver(_startNetworkType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element nameserver"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_startNetworkType_set_nameserver(_startNetworkType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for nameserver "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building clusterControllers array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building clusterControllers element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "clusterControllers", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value)); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element clusterControllers"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, "")); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for clusterControllers "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "clusterControllers (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_startNetworkType_set_clusterControllers(_startNetworkType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_startNetworkType_declare_parent_namespaces( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_startNetworkType_serialize( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t text_value_5[64]; ++ ++ axis2_char_t *text_value_6; ++ axis2_char_t *text_value_6_temp; ++ ++ axis2_char_t *text_value_7; ++ axis2_char_t *text_value_7_temp; ++ ++ axis2_char_t *text_value_8; ++ axis2_char_t *text_value_8_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_startNetworkType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _startNetworkType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_startNetworkType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _startNetworkType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_startNetworkType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _startNetworkType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_startNetworkType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_startNetworkType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_startNetworkType->is_valid_vlan) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("vlan"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("vlan"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing vlan element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%svlan>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_5, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _startNetworkType->property_vlan); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_startNetworkType->is_valid_netName) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("netName"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("netName"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing netName element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%snetName>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_6 = _startNetworkType->property_netName; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE); ++ if (text_value_6_temp) ++ { ++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp)); ++ AXIS2_FREE(env->allocator, text_value_6_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_startNetworkType->is_valid_nameserver) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("nameserver"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("nameserver"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing nameserver element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%snameserver>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_7 = _startNetworkType->property_nameserver; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE); ++ if (text_value_7_temp) ++ { ++ axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp)); ++ AXIS2_FREE(env->allocator, text_value_7_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_startNetworkType->is_valid_clusterControllers) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("clusterControllers"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("clusterControllers"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing clusterControllers array ++ */ ++ if (_startNetworkType->property_clusterControllers != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%sclusterControllers>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_startNetworkType->property_clusterControllers, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_startNetworkType->property_clusterControllers, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing clusterControllers element ++ */ ++ ++ ++ ++ text_value_8 = (axis2_char_t*)element; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE); ++ if (text_value_8_temp) ++ { ++ axutil_stream_write(stream, env, text_value_8_temp, axutil_strlen(text_value_8_temp)); ++ AXIS2_FREE(env->allocator, text_value_8_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_startNetworkType_get_correlationId( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, NULL); ++ ++ ++ return _startNetworkType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_correlationId( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE); ++ ++ if(_startNetworkType->is_valid_correlationId && ++ arg_correlationId == _startNetworkType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_startNetworkType_reset_correlationId(_startNetworkType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _startNetworkType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _startNetworkType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _startNetworkType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_reset_correlationId( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_startNetworkType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _startNetworkType->property_correlationId); ++ _startNetworkType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _startNetworkType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkType_is_correlationId_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_TRUE); ++ ++ return !_startNetworkType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_correlationId_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_startNetworkType_reset_correlationId(_startNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_startNetworkType_get_userId( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, NULL); ++ ++ ++ return _startNetworkType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_userId( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE); ++ ++ if(_startNetworkType->is_valid_userId && ++ arg_userId == _startNetworkType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_startNetworkType_reset_userId(_startNetworkType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _startNetworkType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _startNetworkType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _startNetworkType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_reset_userId( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_startNetworkType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _startNetworkType->property_userId); ++ _startNetworkType->property_userId = NULL; ++ } ++ ++ ++ ++ _startNetworkType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkType_is_userId_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_TRUE); ++ ++ return !_startNetworkType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_userId_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_startNetworkType_reset_userId(_startNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_startNetworkType_get_statusMessage( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, NULL); ++ ++ ++ return _startNetworkType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_statusMessage( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE); ++ ++ if(_startNetworkType->is_valid_statusMessage && ++ arg_statusMessage == _startNetworkType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_startNetworkType_reset_statusMessage(_startNetworkType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _startNetworkType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _startNetworkType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _startNetworkType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_reset_statusMessage( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_startNetworkType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _startNetworkType->property_statusMessage); ++ _startNetworkType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _startNetworkType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkType_is_statusMessage_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_TRUE); ++ ++ return !_startNetworkType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_statusMessage_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_startNetworkType_reset_statusMessage(_startNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkType_get_return( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, (axis2_bool_t)0); ++ ++ ++ return _startNetworkType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_return( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE); ++ ++ if(_startNetworkType->is_valid_return && ++ arg_return == _startNetworkType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_startNetworkType_reset_return(_startNetworkType, env); ++ ++ _startNetworkType->property_return = arg_return; ++ _startNetworkType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_reset_return( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE); ++ ++ ++ _startNetworkType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkType_is_return_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_TRUE); ++ ++ return !_startNetworkType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_return_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_startNetworkType_reset_return(_startNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for vlan. ++ */ ++ int AXIS2_CALL ++ adb_startNetworkType_get_vlan( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, (int)0); ++ ++ ++ return _startNetworkType->property_vlan; ++ } ++ ++ /** ++ * setter for vlan ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_vlan( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, ++ const int arg_vlan) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE); ++ ++ if(_startNetworkType->is_valid_vlan && ++ arg_vlan == _startNetworkType->property_vlan) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_startNetworkType_reset_vlan(_startNetworkType, env); ++ ++ _startNetworkType->property_vlan = arg_vlan; ++ _startNetworkType->is_valid_vlan = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for vlan ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_reset_vlan( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE); ++ ++ ++ _startNetworkType->is_valid_vlan = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether vlan is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkType_is_vlan_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_TRUE); ++ ++ return !_startNetworkType->is_valid_vlan; ++ } ++ ++ /** ++ * Set vlan to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_vlan_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_startNetworkType_reset_vlan(_startNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for netName. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_startNetworkType_get_netName( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, NULL); ++ ++ ++ return _startNetworkType->property_netName; ++ } ++ ++ /** ++ * setter for netName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_netName( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_netName) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE); ++ ++ if(_startNetworkType->is_valid_netName && ++ arg_netName == _startNetworkType->property_netName) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_startNetworkType_reset_netName(_startNetworkType, env); ++ ++ ++ if(NULL == arg_netName) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _startNetworkType->property_netName = (axis2_char_t *)axutil_strdup(env, arg_netName); ++ if(NULL == _startNetworkType->property_netName) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for netName"); ++ return AXIS2_FAILURE; ++ } ++ _startNetworkType->is_valid_netName = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for netName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_reset_netName( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_startNetworkType->property_netName != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _startNetworkType->property_netName); ++ _startNetworkType->property_netName = NULL; ++ } ++ ++ ++ ++ _startNetworkType->is_valid_netName = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether netName is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkType_is_netName_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_TRUE); ++ ++ return !_startNetworkType->is_valid_netName; ++ } ++ ++ /** ++ * Set netName to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_netName_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_startNetworkType_reset_netName(_startNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for nameserver. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_startNetworkType_get_nameserver( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, NULL); ++ ++ ++ return _startNetworkType->property_nameserver; ++ } ++ ++ /** ++ * setter for nameserver ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_nameserver( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_nameserver) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE); ++ ++ if(_startNetworkType->is_valid_nameserver && ++ arg_nameserver == _startNetworkType->property_nameserver) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_startNetworkType_reset_nameserver(_startNetworkType, env); ++ ++ ++ if(NULL == arg_nameserver) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _startNetworkType->property_nameserver = (axis2_char_t *)axutil_strdup(env, arg_nameserver); ++ if(NULL == _startNetworkType->property_nameserver) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for nameserver"); ++ return AXIS2_FAILURE; ++ } ++ _startNetworkType->is_valid_nameserver = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for nameserver ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_reset_nameserver( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_startNetworkType->property_nameserver != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _startNetworkType->property_nameserver); ++ _startNetworkType->property_nameserver = NULL; ++ } ++ ++ ++ ++ _startNetworkType->is_valid_nameserver = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether nameserver is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkType_is_nameserver_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_TRUE); ++ ++ return !_startNetworkType->is_valid_nameserver; ++ } ++ ++ /** ++ * Set nameserver to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_nameserver_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_startNetworkType_reset_nameserver(_startNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for clusterControllers. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_startNetworkType_get_clusterControllers( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, NULL); ++ ++ ++ return _startNetworkType->property_clusterControllers; ++ } ++ ++ /** ++ * setter for clusterControllers ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_clusterControllers( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_clusterControllers) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE); ++ ++ if(_startNetworkType->is_valid_clusterControllers && ++ arg_clusterControllers == _startNetworkType->property_clusterControllers) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_clusterControllers, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "clusterControllers has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_clusterControllers, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_startNetworkType_reset_clusterControllers(_startNetworkType, env); ++ ++ ++ if(NULL == arg_clusterControllers) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _startNetworkType->property_clusterControllers = arg_clusterControllers; ++ if(non_nil_exists) ++ { ++ _startNetworkType->is_valid_clusterControllers = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of clusterControllers. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_startNetworkType_get_clusterControllers_at( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, int i) ++ { ++ axis2_char_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, NULL); ++ ++ ++ if(_startNetworkType->property_clusterControllers == NULL) ++ { ++ return (axis2_char_t*)0; ++ } ++ ret_val = (axis2_char_t*)axutil_array_list_get(_startNetworkType->property_clusterControllers, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of clusterControllers. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_clusterControllers_at( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_clusterControllers) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE); ++ ++ if( _startNetworkType->is_valid_clusterControllers && ++ _startNetworkType->property_clusterControllers && ++ ++ arg_clusterControllers == (axis2_char_t*)axutil_array_list_get(_startNetworkType->property_clusterControllers, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_clusterControllers) ++ { ++ if(_startNetworkType->property_clusterControllers != NULL) ++ { ++ size = axutil_array_list_size(_startNetworkType->property_clusterControllers, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_startNetworkType->property_clusterControllers, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of clusterControllers is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_startNetworkType->property_clusterControllers == NULL) ++ { ++ _startNetworkType->property_clusterControllers = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_startNetworkType->property_clusterControllers, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _startNetworkType->is_valid_clusterControllers = AXIS2_FALSE; ++ axutil_array_list_set(_startNetworkType->property_clusterControllers , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_startNetworkType->property_clusterControllers , env, i, axutil_strdup(env, arg_clusterControllers)); ++ _startNetworkType->is_valid_clusterControllers = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to clusterControllers. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_add_clusterControllers( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_clusterControllers) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_clusterControllers) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_startNetworkType->property_clusterControllers == NULL) ++ { ++ _startNetworkType->property_clusterControllers = axutil_array_list_create(env, 10); ++ } ++ if(_startNetworkType->property_clusterControllers == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for clusterControllers"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_startNetworkType->property_clusterControllers , env, axutil_strdup(env, arg_clusterControllers)); ++ _startNetworkType->is_valid_clusterControllers = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the clusterControllers array. ++ */ ++ int AXIS2_CALL ++ adb_startNetworkType_sizeof_clusterControllers( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, -1); ++ if(_startNetworkType->property_clusterControllers == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_startNetworkType->property_clusterControllers, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_remove_clusterControllers_at( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_startNetworkType_set_clusterControllers_nil_at(_startNetworkType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for clusterControllers ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_reset_clusterControllers( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ if (_startNetworkType->property_clusterControllers != NULL) ++ { ++ count = axutil_array_list_size(_startNetworkType->property_clusterControllers, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_startNetworkType->property_clusterControllers, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_startNetworkType->property_clusterControllers, env); ++ } ++ _startNetworkType->is_valid_clusterControllers = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether clusterControllers is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkType_is_clusterControllers_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_TRUE); ++ ++ return !_startNetworkType->is_valid_clusterControllers; ++ } ++ ++ /** ++ * Set clusterControllers to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_clusterControllers_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_startNetworkType_reset_clusterControllers(_startNetworkType, env); ++ } ++ ++ ++ /** ++ * Check whether clusterControllers is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkType_is_clusterControllers_nil_at( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_TRUE); ++ ++ return (_startNetworkType->is_valid_clusterControllers == AXIS2_FALSE || ++ NULL == _startNetworkType->property_clusterControllers || ++ NULL == axutil_array_list_get(_startNetworkType->property_clusterControllers, env, i)); ++ } ++ ++ /** ++ * Set clusterControllers to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_clusterControllers_nil_at( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE); ++ ++ if(_startNetworkType->property_clusterControllers == NULL || ++ _startNetworkType->is_valid_clusterControllers == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_startNetworkType->property_clusterControllers, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_startNetworkType->property_clusterControllers, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of clusterControllers is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_startNetworkType->property_clusterControllers == NULL) ++ { ++ _startNetworkType->is_valid_clusterControllers = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_startNetworkType->property_clusterControllers, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _startNetworkType->is_valid_clusterControllers = AXIS2_FALSE; ++ axutil_array_list_set(_startNetworkType->property_clusterControllers , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_startNetworkType->property_clusterControllers , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_startNetworkType.h' +--- old/cluster/generated/adb_startNetworkType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_startNetworkType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,694 @@ ++ ++ ++ #ifndef ADB_STARTNETWORKTYPE_H ++ #define ADB_STARTNETWORKTYPE_H ++ ++ /** ++ * adb_startNetworkType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_startNetworkType class ++ */ ++ typedef struct adb_startNetworkType adb_startNetworkType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_startNetworkType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_startNetworkType_t object ++ */ ++ adb_startNetworkType_t* AXIS2_CALL ++ adb_startNetworkType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_startNetworkType_t object ++ * @param _startNetworkType adb_startNetworkType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_free ( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_startNetworkType_get_correlationId( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_correlationId( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_reset_correlationId( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_startNetworkType_get_userId( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_userId( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_reset_userId( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_startNetworkType_get_statusMessage( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_statusMessage( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_reset_statusMessage( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkType_get_return( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_return( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_reset_return( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for vlan. ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_startNetworkType_get_vlan( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for vlan. ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_vlan int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_vlan( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, ++ const int arg_vlan); ++ ++ /** ++ * Resetter for vlan ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_reset_vlan( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for netName. ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_startNetworkType_get_netName( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for netName. ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_netName axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_netName( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_netName); ++ ++ /** ++ * Resetter for netName ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_reset_netName( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for nameserver. ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_startNetworkType_get_nameserver( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for nameserver. ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_nameserver axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_nameserver( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_nameserver); ++ ++ /** ++ * Resetter for nameserver ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_reset_nameserver( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for clusterControllers. Deprecated for array types, Use adb_startNetworkType_get_clusterControllers_at instead ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return Array of axis2_char_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_startNetworkType_get_clusterControllers( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for clusterControllers.Deprecated for array types, Use adb_startNetworkType_set_clusterControllers_at ++ * or adb_startNetworkType_add_clusterControllers instead. ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_clusterControllers Array of axis2_char_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_clusterControllers( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_clusterControllers); ++ ++ /** ++ * Resetter for clusterControllers ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_reset_clusterControllers( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of clusterControllers. ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_startNetworkType_get_clusterControllers_at( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of clusterControllers. (If the ith already exist, it will be replaced) ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_clusterControllers element to set axis2_char_t* to the array ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_clusterControllers_at( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_clusterControllers); ++ ++ ++ /** ++ * Add to clusterControllers. ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_clusterControllers element to add axis2_char_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_add_clusterControllers( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_clusterControllers); ++ ++ /** ++ * Get the size of the clusterControllers array. ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the clusterControllers array. ++ */ ++ int AXIS2_CALL ++ adb_startNetworkType_sizeof_clusterControllers( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of clusterControllers. ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_remove_clusterControllers_at( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkType_is_correlationId_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkType_is_userId_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkType_is_statusMessage_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_statusMessage_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkType_is_return_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether vlan is nill ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkType_is_vlan_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether netName is nill ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkType_is_netName_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether nameserver is nill ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkType_is_nameserver_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether clusterControllers is nill ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkType_is_clusterControllers_nil( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether clusterControllers is nill at i ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkType_is_clusterControllers_nil_at( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set clusterControllers to nill at i ++ * @param _startNetworkType _ adb_startNetworkType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_set_clusterControllers_nil_at( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_startNetworkType_deserialize( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_startNetworkType_declare_parent_namespaces( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _startNetworkType adb_startNetworkType_t object ++ * @param env pointer to environment struct ++ * @param startNetworkType_om_node node to serialize from ++ * @param startNetworkType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_startNetworkType_serialize( ++ adb_startNetworkType_t* _startNetworkType, ++ const axutil_env_t *env, ++ axiom_node_t* startNetworkType_om_node, axiom_element_t *startNetworkType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_startNetworkType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_startNetworkType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_STARTNETWORKTYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_stopNetworkResponseType.c' +--- old/cluster/generated/adb_stopNetworkResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_stopNetworkResponseType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,1401 @@ ++ ++ ++ /** ++ * adb_stopNetworkResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_stopNetworkResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = stopNetworkResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_stopNetworkResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_set_correlationId_nil( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_set_userId_nil( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_set_return_nil( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_stopNetworkResponseType_t* AXIS2_CALL ++ adb_stopNetworkResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_stopNetworkResponseType_t *_stopNetworkResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _stopNetworkResponseType = (adb_stopNetworkResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_stopNetworkResponseType_t)); ++ ++ if(NULL == _stopNetworkResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_stopNetworkResponseType, 0, sizeof(adb_stopNetworkResponseType_t)); ++ ++ _stopNetworkResponseType->property_correlationId = NULL; ++ _stopNetworkResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _stopNetworkResponseType->property_userId = NULL; ++ _stopNetworkResponseType->is_valid_userId = AXIS2_FALSE; ++ _stopNetworkResponseType->property_statusMessage = NULL; ++ _stopNetworkResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _stopNetworkResponseType->is_valid_return = AXIS2_FALSE; ++ ++ ++ return _stopNetworkResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_free ( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_FAILURE); ++ ++ adb_stopNetworkResponseType_reset_correlationId(_stopNetworkResponseType, env); ++ adb_stopNetworkResponseType_reset_userId(_stopNetworkResponseType, env); ++ adb_stopNetworkResponseType_reset_statusMessage(_stopNetworkResponseType, env); ++ adb_stopNetworkResponseType_reset_return(_stopNetworkResponseType, env); ++ ++ ++ if(_stopNetworkResponseType) ++ { ++ AXIS2_FREE(env->allocator, _stopNetworkResponseType); ++ _stopNetworkResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_deserialize( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for stopNetworkResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_stopNetworkResponseType_set_correlationId(_stopNetworkResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_stopNetworkResponseType_set_correlationId(_stopNetworkResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_stopNetworkResponseType_set_userId(_stopNetworkResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_stopNetworkResponseType_set_userId(_stopNetworkResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_stopNetworkResponseType_set_statusMessage(_stopNetworkResponseType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_stopNetworkResponseType_set_return(_stopNetworkResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_stopNetworkResponseType_set_return(_stopNetworkResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_stopNetworkResponseType_declare_parent_namespaces( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_stopNetworkResponseType_serialize( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_stopNetworkResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _stopNetworkResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_stopNetworkResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _stopNetworkResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_stopNetworkResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _stopNetworkResponseType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_stopNetworkResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_stopNetworkResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_stopNetworkResponseType_get_correlationId( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, NULL); ++ ++ ++ return _stopNetworkResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_set_correlationId( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_FAILURE); ++ ++ if(_stopNetworkResponseType->is_valid_correlationId && ++ arg_correlationId == _stopNetworkResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_stopNetworkResponseType_reset_correlationId(_stopNetworkResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _stopNetworkResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _stopNetworkResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _stopNetworkResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_reset_correlationId( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_stopNetworkResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _stopNetworkResponseType->property_correlationId); ++ _stopNetworkResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _stopNetworkResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkResponseType_is_correlationId_nil( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_TRUE); ++ ++ return !_stopNetworkResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_set_correlationId_nil( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_stopNetworkResponseType_reset_correlationId(_stopNetworkResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_stopNetworkResponseType_get_userId( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, NULL); ++ ++ ++ return _stopNetworkResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_set_userId( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_FAILURE); ++ ++ if(_stopNetworkResponseType->is_valid_userId && ++ arg_userId == _stopNetworkResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_stopNetworkResponseType_reset_userId(_stopNetworkResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _stopNetworkResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _stopNetworkResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _stopNetworkResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_reset_userId( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_stopNetworkResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _stopNetworkResponseType->property_userId); ++ _stopNetworkResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _stopNetworkResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkResponseType_is_userId_nil( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_TRUE); ++ ++ return !_stopNetworkResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_set_userId_nil( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_stopNetworkResponseType_reset_userId(_stopNetworkResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_stopNetworkResponseType_get_statusMessage( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, NULL); ++ ++ ++ return _stopNetworkResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_set_statusMessage( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_FAILURE); ++ ++ if(_stopNetworkResponseType->is_valid_statusMessage && ++ arg_statusMessage == _stopNetworkResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_stopNetworkResponseType_reset_statusMessage(_stopNetworkResponseType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _stopNetworkResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _stopNetworkResponseType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _stopNetworkResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_reset_statusMessage( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_stopNetworkResponseType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _stopNetworkResponseType->property_statusMessage); ++ _stopNetworkResponseType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _stopNetworkResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkResponseType_is_statusMessage_nil( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_TRUE); ++ ++ return !_stopNetworkResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_set_statusMessage_nil( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_stopNetworkResponseType_reset_statusMessage(_stopNetworkResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkResponseType_get_return( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, (axis2_bool_t)0); ++ ++ ++ return _stopNetworkResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_set_return( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_FAILURE); ++ ++ if(_stopNetworkResponseType->is_valid_return && ++ arg_return == _stopNetworkResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_stopNetworkResponseType_reset_return(_stopNetworkResponseType, env); ++ ++ _stopNetworkResponseType->property_return = arg_return; ++ _stopNetworkResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_reset_return( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ _stopNetworkResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkResponseType_is_return_nil( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_TRUE); ++ ++ return !_stopNetworkResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_set_return_nil( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_stopNetworkResponseType_reset_return(_stopNetworkResponseType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_stopNetworkResponseType.h' +--- old/cluster/generated/adb_stopNetworkResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_stopNetworkResponseType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,362 @@ ++ ++ ++ #ifndef ADB_STOPNETWORKRESPONSETYPE_H ++ #define ADB_STOPNETWORKRESPONSETYPE_H ++ ++ /** ++ * adb_stopNetworkResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_stopNetworkResponseType class ++ */ ++ typedef struct adb_stopNetworkResponseType adb_stopNetworkResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_stopNetworkResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_stopNetworkResponseType_t object ++ */ ++ adb_stopNetworkResponseType_t* AXIS2_CALL ++ adb_stopNetworkResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_stopNetworkResponseType_t object ++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_free ( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_stopNetworkResponseType_get_correlationId( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_set_correlationId( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_reset_correlationId( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_stopNetworkResponseType_get_userId( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_set_userId( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_reset_userId( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_stopNetworkResponseType_get_statusMessage( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_set_statusMessage( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_reset_statusMessage( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkResponseType_get_return( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_set_return( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_reset_return( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkResponseType_is_correlationId_nil( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkResponseType_is_userId_nil( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkResponseType_is_statusMessage_nil( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_set_statusMessage_nil( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkResponseType_is_return_nil( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkResponseType_deserialize( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_stopNetworkResponseType_declare_parent_namespaces( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param stopNetworkResponseType_om_node node to serialize from ++ * @param stopNetworkResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_stopNetworkResponseType_serialize( ++ adb_stopNetworkResponseType_t* _stopNetworkResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* stopNetworkResponseType_om_node, axiom_element_t *stopNetworkResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_stopNetworkResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_STOPNETWORKRESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_stopNetworkType.c' +--- old/cluster/generated/adb_stopNetworkType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_stopNetworkType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,1986 @@ ++ ++ ++ /** ++ * adb_stopNetworkType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_stopNetworkType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = stopNetworkType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_stopNetworkType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_vlan; ++ ++ ++ axis2_bool_t is_valid_vlan; ++ ++ ++ axis2_char_t* property_netName; ++ ++ ++ axis2_bool_t is_valid_netName; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_set_correlationId_nil( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_set_userId_nil( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_set_return_nil( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_set_vlan_nil( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_set_netName_nil( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_stopNetworkType_t* AXIS2_CALL ++ adb_stopNetworkType_create( ++ const axutil_env_t *env) ++ { ++ adb_stopNetworkType_t *_stopNetworkType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _stopNetworkType = (adb_stopNetworkType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_stopNetworkType_t)); ++ ++ if(NULL == _stopNetworkType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_stopNetworkType, 0, sizeof(adb_stopNetworkType_t)); ++ ++ _stopNetworkType->property_correlationId = NULL; ++ _stopNetworkType->is_valid_correlationId = AXIS2_FALSE; ++ _stopNetworkType->property_userId = NULL; ++ _stopNetworkType->is_valid_userId = AXIS2_FALSE; ++ _stopNetworkType->property_statusMessage = NULL; ++ _stopNetworkType->is_valid_statusMessage = AXIS2_FALSE; ++ _stopNetworkType->is_valid_return = AXIS2_FALSE; ++ _stopNetworkType->is_valid_vlan = AXIS2_FALSE; ++ _stopNetworkType->property_netName = NULL; ++ _stopNetworkType->is_valid_netName = AXIS2_FALSE; ++ ++ ++ return _stopNetworkType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_free ( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE); ++ ++ adb_stopNetworkType_reset_correlationId(_stopNetworkType, env); ++ adb_stopNetworkType_reset_userId(_stopNetworkType, env); ++ adb_stopNetworkType_reset_statusMessage(_stopNetworkType, env); ++ adb_stopNetworkType_reset_return(_stopNetworkType, env); ++ adb_stopNetworkType_reset_vlan(_stopNetworkType, env); ++ adb_stopNetworkType_reset_netName(_stopNetworkType, env); ++ ++ ++ if(_stopNetworkType) ++ { ++ AXIS2_FREE(env->allocator, _stopNetworkType); ++ _stopNetworkType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_deserialize( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for stopNetworkType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_stopNetworkType_set_correlationId(_stopNetworkType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_stopNetworkType_set_correlationId(_stopNetworkType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_stopNetworkType_set_userId(_stopNetworkType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_stopNetworkType_set_userId(_stopNetworkType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_stopNetworkType_set_statusMessage(_stopNetworkType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_stopNetworkType_set_return(_stopNetworkType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_stopNetworkType_set_return(_stopNetworkType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building vlan element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "vlan", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_stopNetworkType_set_vlan(_stopNetworkType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element vlan"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for vlan "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building netName element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "netName", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_stopNetworkType_set_netName(_stopNetworkType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element netName"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_stopNetworkType_set_netName(_stopNetworkType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for netName "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_stopNetworkType_declare_parent_namespaces( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_stopNetworkType_serialize( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t text_value_5[64]; ++ ++ axis2_char_t *text_value_6; ++ axis2_char_t *text_value_6_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_stopNetworkType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _stopNetworkType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_stopNetworkType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _stopNetworkType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_stopNetworkType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _stopNetworkType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_stopNetworkType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_stopNetworkType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_stopNetworkType->is_valid_vlan) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("vlan"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("vlan"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing vlan element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%svlan>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_5, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _stopNetworkType->property_vlan); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_stopNetworkType->is_valid_netName) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("netName"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("netName"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing netName element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%snetName>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_6 = _stopNetworkType->property_netName; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE); ++ if (text_value_6_temp) ++ { ++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp)); ++ AXIS2_FREE(env->allocator, text_value_6_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_stopNetworkType_get_correlationId( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, NULL); ++ ++ ++ return _stopNetworkType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_set_correlationId( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE); ++ ++ if(_stopNetworkType->is_valid_correlationId && ++ arg_correlationId == _stopNetworkType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_stopNetworkType_reset_correlationId(_stopNetworkType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _stopNetworkType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _stopNetworkType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _stopNetworkType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_reset_correlationId( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_stopNetworkType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _stopNetworkType->property_correlationId); ++ _stopNetworkType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _stopNetworkType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkType_is_correlationId_nil( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_TRUE); ++ ++ return !_stopNetworkType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_set_correlationId_nil( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_stopNetworkType_reset_correlationId(_stopNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_stopNetworkType_get_userId( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, NULL); ++ ++ ++ return _stopNetworkType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_set_userId( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE); ++ ++ if(_stopNetworkType->is_valid_userId && ++ arg_userId == _stopNetworkType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_stopNetworkType_reset_userId(_stopNetworkType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _stopNetworkType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _stopNetworkType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _stopNetworkType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_reset_userId( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_stopNetworkType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _stopNetworkType->property_userId); ++ _stopNetworkType->property_userId = NULL; ++ } ++ ++ ++ ++ _stopNetworkType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkType_is_userId_nil( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_TRUE); ++ ++ return !_stopNetworkType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_set_userId_nil( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_stopNetworkType_reset_userId(_stopNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_stopNetworkType_get_statusMessage( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, NULL); ++ ++ ++ return _stopNetworkType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_set_statusMessage( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE); ++ ++ if(_stopNetworkType->is_valid_statusMessage && ++ arg_statusMessage == _stopNetworkType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_stopNetworkType_reset_statusMessage(_stopNetworkType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _stopNetworkType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _stopNetworkType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _stopNetworkType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_reset_statusMessage( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_stopNetworkType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _stopNetworkType->property_statusMessage); ++ _stopNetworkType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _stopNetworkType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkType_is_statusMessage_nil( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_TRUE); ++ ++ return !_stopNetworkType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_set_statusMessage_nil( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_stopNetworkType_reset_statusMessage(_stopNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkType_get_return( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, (axis2_bool_t)0); ++ ++ ++ return _stopNetworkType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_set_return( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE); ++ ++ if(_stopNetworkType->is_valid_return && ++ arg_return == _stopNetworkType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_stopNetworkType_reset_return(_stopNetworkType, env); ++ ++ _stopNetworkType->property_return = arg_return; ++ _stopNetworkType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_reset_return( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE); ++ ++ ++ _stopNetworkType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkType_is_return_nil( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_TRUE); ++ ++ return !_stopNetworkType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_set_return_nil( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_stopNetworkType_reset_return(_stopNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for vlan. ++ */ ++ int AXIS2_CALL ++ adb_stopNetworkType_get_vlan( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, (int)0); ++ ++ ++ return _stopNetworkType->property_vlan; ++ } ++ ++ /** ++ * setter for vlan ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_set_vlan( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env, ++ const int arg_vlan) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE); ++ ++ if(_stopNetworkType->is_valid_vlan && ++ arg_vlan == _stopNetworkType->property_vlan) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_stopNetworkType_reset_vlan(_stopNetworkType, env); ++ ++ _stopNetworkType->property_vlan = arg_vlan; ++ _stopNetworkType->is_valid_vlan = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for vlan ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_reset_vlan( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE); ++ ++ ++ _stopNetworkType->is_valid_vlan = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether vlan is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkType_is_vlan_nil( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_TRUE); ++ ++ return !_stopNetworkType->is_valid_vlan; ++ } ++ ++ /** ++ * Set vlan to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_set_vlan_nil( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_stopNetworkType_reset_vlan(_stopNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for netName. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_stopNetworkType_get_netName( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, NULL); ++ ++ ++ return _stopNetworkType->property_netName; ++ } ++ ++ /** ++ * setter for netName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_set_netName( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_netName) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE); ++ ++ if(_stopNetworkType->is_valid_netName && ++ arg_netName == _stopNetworkType->property_netName) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_stopNetworkType_reset_netName(_stopNetworkType, env); ++ ++ ++ if(NULL == arg_netName) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _stopNetworkType->property_netName = (axis2_char_t *)axutil_strdup(env, arg_netName); ++ if(NULL == _stopNetworkType->property_netName) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for netName"); ++ return AXIS2_FAILURE; ++ } ++ _stopNetworkType->is_valid_netName = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for netName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_reset_netName( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_stopNetworkType->property_netName != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _stopNetworkType->property_netName); ++ _stopNetworkType->property_netName = NULL; ++ } ++ ++ ++ ++ _stopNetworkType->is_valid_netName = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether netName is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkType_is_netName_nil( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_TRUE); ++ ++ return !_stopNetworkType->is_valid_netName; ++ } ++ ++ /** ++ * Set netName to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_set_netName_nil( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_stopNetworkType_reset_netName(_stopNetworkType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_stopNetworkType.h' +--- old/cluster/generated/adb_stopNetworkType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_stopNetworkType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,466 @@ ++ ++ ++ #ifndef ADB_STOPNETWORKTYPE_H ++ #define ADB_STOPNETWORKTYPE_H ++ ++ /** ++ * adb_stopNetworkType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_stopNetworkType class ++ */ ++ typedef struct adb_stopNetworkType adb_stopNetworkType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_stopNetworkType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_stopNetworkType_t object ++ */ ++ adb_stopNetworkType_t* AXIS2_CALL ++ adb_stopNetworkType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_stopNetworkType_t object ++ * @param _stopNetworkType adb_stopNetworkType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_free ( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_stopNetworkType_get_correlationId( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_set_correlationId( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_reset_correlationId( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_stopNetworkType_get_userId( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_set_userId( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_reset_userId( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_stopNetworkType_get_statusMessage( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_set_statusMessage( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_reset_statusMessage( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkType_get_return( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_set_return( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_reset_return( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for vlan. ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_stopNetworkType_get_vlan( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for vlan. ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_vlan int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_set_vlan( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env, ++ const int arg_vlan); ++ ++ /** ++ * Resetter for vlan ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_reset_vlan( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for netName. ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_stopNetworkType_get_netName( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for netName. ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_netName axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_set_netName( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_netName); ++ ++ /** ++ * Resetter for netName ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_reset_netName( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkType_is_correlationId_nil( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkType_is_userId_nil( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkType_is_statusMessage_nil( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_set_statusMessage_nil( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkType_is_return_nil( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether vlan is nill ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkType_is_vlan_nil( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether netName is nill ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkType_is_netName_nil( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_stopNetworkType_deserialize( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_stopNetworkType_declare_parent_namespaces( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _stopNetworkType adb_stopNetworkType_t object ++ * @param env pointer to environment struct ++ * @param stopNetworkType_om_node node to serialize from ++ * @param stopNetworkType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_stopNetworkType_serialize( ++ adb_stopNetworkType_t* _stopNetworkType, ++ const axutil_env_t *env, ++ axiom_node_t* stopNetworkType_om_node, axiom_element_t *stopNetworkType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_stopNetworkType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_stopNetworkType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_STOPNETWORKTYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_terminateInstancesResponseType.c' +--- old/cluster/generated/adb_terminateInstancesResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_terminateInstancesResponseType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,2076 @@ ++ ++ ++ /** ++ * adb_terminateInstancesResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_terminateInstancesResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = terminateInstancesResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_terminateInstancesResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ axutil_array_list_t* property_isTerminated; ++ ++ ++ axis2_bool_t is_valid_isTerminated; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_correlationId_nil( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_userId_nil( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_return_nil( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_isTerminated_nil_at( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_isTerminated_nil( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_terminateInstancesResponseType_t* AXIS2_CALL ++ adb_terminateInstancesResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_terminateInstancesResponseType_t *_terminateInstancesResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _terminateInstancesResponseType = (adb_terminateInstancesResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_terminateInstancesResponseType_t)); ++ ++ if(NULL == _terminateInstancesResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_terminateInstancesResponseType, 0, sizeof(adb_terminateInstancesResponseType_t)); ++ ++ _terminateInstancesResponseType->property_correlationId = NULL; ++ _terminateInstancesResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _terminateInstancesResponseType->property_userId = NULL; ++ _terminateInstancesResponseType->is_valid_userId = AXIS2_FALSE; ++ _terminateInstancesResponseType->property_statusMessage = NULL; ++ _terminateInstancesResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _terminateInstancesResponseType->is_valid_return = AXIS2_FALSE; ++ _terminateInstancesResponseType->is_valid_isTerminated = AXIS2_FALSE; ++ ++ ++ return _terminateInstancesResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_free ( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE); ++ ++ adb_terminateInstancesResponseType_reset_correlationId(_terminateInstancesResponseType, env); ++ adb_terminateInstancesResponseType_reset_userId(_terminateInstancesResponseType, env); ++ adb_terminateInstancesResponseType_reset_statusMessage(_terminateInstancesResponseType, env); ++ adb_terminateInstancesResponseType_reset_return(_terminateInstancesResponseType, env); ++ adb_terminateInstancesResponseType_reset_isTerminated(_terminateInstancesResponseType, env); ++ ++ ++ if(_terminateInstancesResponseType) ++ { ++ AXIS2_FREE(env->allocator, _terminateInstancesResponseType); ++ _terminateInstancesResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_deserialize( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for terminateInstancesResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_terminateInstancesResponseType_set_correlationId(_terminateInstancesResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_terminateInstancesResponseType_set_correlationId(_terminateInstancesResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_terminateInstancesResponseType_set_userId(_terminateInstancesResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_terminateInstancesResponseType_set_userId(_terminateInstancesResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_terminateInstancesResponseType_set_statusMessage(_terminateInstancesResponseType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_terminateInstancesResponseType_set_return(_terminateInstancesResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_terminateInstancesResponseType_set_return(_terminateInstancesResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building isTerminated array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building isTerminated element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "isTerminated", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp (text_value , "true")) ++ { ++ element = AXIS2_MALLOC(env->allocator,sizeof(axis2_bool_t)); ++ (*(axis2_bool_t*)element) = AXIS2_TRUE; ++ axutil_array_list_add_at(arr_list, env, i, (void*)element); ++ } ++ else ++ { ++ element = AXIS2_MALLOC(env->allocator,sizeof(axis2_bool_t)); ++ (*(axis2_bool_t*)element) = AXIS2_FALSE; ++ axutil_array_list_add_at(arr_list, env, i, (void*)element); ++ ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element isTerminated"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for isTerminated "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "isTerminated (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_terminateInstancesResponseType_set_isTerminated(_terminateInstancesResponseType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_terminateInstancesResponseType_declare_parent_namespaces( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_terminateInstancesResponseType_serialize( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t text_value_5[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_terminateInstancesResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _terminateInstancesResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_terminateInstancesResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _terminateInstancesResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_terminateInstancesResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _terminateInstancesResponseType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_terminateInstancesResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_terminateInstancesResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_terminateInstancesResponseType->is_valid_isTerminated) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("isTerminated"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("isTerminated"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing isTerminated array ++ */ ++ if (_terminateInstancesResponseType->property_isTerminated != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%sisTerminated>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_terminateInstancesResponseType->property_isTerminated, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_terminateInstancesResponseType->property_isTerminated, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing isTerminated element ++ */ ++ ++ ++ ++ strcpy(text_value_5, ((axis2_bool_t)element)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_terminateInstancesResponseType_get_correlationId( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, NULL); ++ ++ ++ return _terminateInstancesResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_correlationId( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_terminateInstancesResponseType->is_valid_correlationId && ++ arg_correlationId == _terminateInstancesResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_terminateInstancesResponseType_reset_correlationId(_terminateInstancesResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _terminateInstancesResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _terminateInstancesResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _terminateInstancesResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_reset_correlationId( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_terminateInstancesResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _terminateInstancesResponseType->property_correlationId); ++ _terminateInstancesResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _terminateInstancesResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesResponseType_is_correlationId_nil( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_TRUE); ++ ++ return !_terminateInstancesResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_correlationId_nil( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_terminateInstancesResponseType_reset_correlationId(_terminateInstancesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_terminateInstancesResponseType_get_userId( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, NULL); ++ ++ ++ return _terminateInstancesResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_userId( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_terminateInstancesResponseType->is_valid_userId && ++ arg_userId == _terminateInstancesResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_terminateInstancesResponseType_reset_userId(_terminateInstancesResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _terminateInstancesResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _terminateInstancesResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _terminateInstancesResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_reset_userId( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_terminateInstancesResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _terminateInstancesResponseType->property_userId); ++ _terminateInstancesResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _terminateInstancesResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesResponseType_is_userId_nil( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_TRUE); ++ ++ return !_terminateInstancesResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_userId_nil( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_terminateInstancesResponseType_reset_userId(_terminateInstancesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_terminateInstancesResponseType_get_statusMessage( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, NULL); ++ ++ ++ return _terminateInstancesResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_statusMessage( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_terminateInstancesResponseType->is_valid_statusMessage && ++ arg_statusMessage == _terminateInstancesResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_terminateInstancesResponseType_reset_statusMessage(_terminateInstancesResponseType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _terminateInstancesResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _terminateInstancesResponseType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _terminateInstancesResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_reset_statusMessage( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_terminateInstancesResponseType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _terminateInstancesResponseType->property_statusMessage); ++ _terminateInstancesResponseType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _terminateInstancesResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesResponseType_is_statusMessage_nil( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_TRUE); ++ ++ return !_terminateInstancesResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_statusMessage_nil( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_terminateInstancesResponseType_reset_statusMessage(_terminateInstancesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesResponseType_get_return( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, (axis2_bool_t)0); ++ ++ ++ return _terminateInstancesResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_return( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_terminateInstancesResponseType->is_valid_return && ++ arg_return == _terminateInstancesResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_terminateInstancesResponseType_reset_return(_terminateInstancesResponseType, env); ++ ++ _terminateInstancesResponseType->property_return = arg_return; ++ _terminateInstancesResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_reset_return( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ _terminateInstancesResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesResponseType_is_return_nil( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_TRUE); ++ ++ return !_terminateInstancesResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_return_nil( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_terminateInstancesResponseType_reset_return(_terminateInstancesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for isTerminated. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_terminateInstancesResponseType_get_isTerminated( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, NULL); ++ ++ ++ return _terminateInstancesResponseType->property_isTerminated; ++ } ++ ++ /** ++ * setter for isTerminated ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_isTerminated( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_isTerminated) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_terminateInstancesResponseType->is_valid_isTerminated && ++ arg_isTerminated == _terminateInstancesResponseType->property_isTerminated) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_isTerminated, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "isTerminated has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_isTerminated, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_terminateInstancesResponseType_reset_isTerminated(_terminateInstancesResponseType, env); ++ ++ ++ if(NULL == arg_isTerminated) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _terminateInstancesResponseType->property_isTerminated = arg_isTerminated; ++ if(non_nil_exists) ++ { ++ _terminateInstancesResponseType->is_valid_isTerminated = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of isTerminated. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesResponseType_get_isTerminated_at( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ axis2_bool_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, (axis2_bool_t)0); ++ ++ ++ if(_terminateInstancesResponseType->property_isTerminated == NULL) ++ { ++ return (axis2_bool_t)0; ++ } ++ ret_val = (axis2_bool_t*)axutil_array_list_get(_terminateInstancesResponseType->property_isTerminated, env, i); ++ ++ if(ret_val) ++ { ++ return *ret_val; ++ } ++ return (axis2_bool_t)0; ++ ++ } ++ ++ /** ++ * Set the ith element of isTerminated. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_isTerminated_at( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, int i, ++ axis2_bool_t arg_isTerminated) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ axis2_bool_t* ptr_param_isTerminated; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE); ++ ++ if( _terminateInstancesResponseType->is_valid_isTerminated && ++ _terminateInstancesResponseType->property_isTerminated && ++ ++ arg_isTerminated == *((axis2_bool_t*)axutil_array_list_get(_terminateInstancesResponseType->property_isTerminated, env, i))) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ non_nil_exists = AXIS2_TRUE; /* no way to check for nill for each elements for primitive types */ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of isTerminated is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_terminateInstancesResponseType->property_isTerminated == NULL) ++ { ++ _terminateInstancesResponseType->property_isTerminated = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_terminateInstancesResponseType->property_isTerminated, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ ++ /* we keep primtives as pointers in arrasy, so need to free them */ ++ AXIS2_FREE(env-> allocator, element); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _terminateInstancesResponseType->is_valid_isTerminated = AXIS2_FALSE; ++ axutil_array_list_set(_terminateInstancesResponseType->property_isTerminated , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ptr_param_isTerminated = (axis2_bool_t*) ++ AXIS2_MALLOC(env->allocator, sizeof(axis2_bool_t)); ++ if(_terminateInstancesResponseType->property_isTerminated == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for new value of isTerminated"); ++ return AXIS2_FAILURE; ++ ++ } ++ *ptr_param_isTerminated = arg_isTerminated; ++ axutil_array_list_set(_terminateInstancesResponseType->property_isTerminated , env, i, ptr_param_isTerminated); ++ _terminateInstancesResponseType->is_valid_isTerminated = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to isTerminated. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_add_isTerminated( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_isTerminated) ++ { ++ axis2_bool_t* ptr_param_isTerminated; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ if(_terminateInstancesResponseType->property_isTerminated == NULL) ++ { ++ _terminateInstancesResponseType->property_isTerminated = axutil_array_list_create(env, 10); ++ } ++ if(_terminateInstancesResponseType->property_isTerminated == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for isTerminated"); ++ return AXIS2_FAILURE; ++ ++ } ++ ptr_param_isTerminated = (axis2_bool_t*) ++ AXIS2_MALLOC(env->allocator, sizeof(axis2_bool_t)); ++ if(_terminateInstancesResponseType->property_isTerminated == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for new value of isTerminated"); ++ return AXIS2_FAILURE; ++ ++ } ++ *ptr_param_isTerminated = arg_isTerminated; ++ axutil_array_list_add(_terminateInstancesResponseType->property_isTerminated , env, ptr_param_isTerminated); ++ _terminateInstancesResponseType->is_valid_isTerminated = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the isTerminated array. ++ */ ++ int AXIS2_CALL ++ adb_terminateInstancesResponseType_sizeof_isTerminated( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, -1); ++ if(_terminateInstancesResponseType->property_isTerminated == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_terminateInstancesResponseType->property_isTerminated, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_remove_isTerminated_at( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_terminateInstancesResponseType_set_isTerminated_nil_at(_terminateInstancesResponseType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for isTerminated ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_reset_isTerminated( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ if (_terminateInstancesResponseType->property_isTerminated != NULL) ++ { ++ count = axutil_array_list_size(_terminateInstancesResponseType->property_isTerminated, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_terminateInstancesResponseType->property_isTerminated, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ ++ /* we keep primtives as pointers in arrasy, so need to free them */ ++ AXIS2_FREE(env-> allocator, element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_terminateInstancesResponseType->property_isTerminated, env); ++ } ++ _terminateInstancesResponseType->is_valid_isTerminated = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether isTerminated is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesResponseType_is_isTerminated_nil( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_TRUE); ++ ++ return !_terminateInstancesResponseType->is_valid_isTerminated; ++ } ++ ++ /** ++ * Set isTerminated to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_isTerminated_nil( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_terminateInstancesResponseType_reset_isTerminated(_terminateInstancesResponseType, env); ++ } ++ ++ ++ /** ++ * Check whether isTerminated is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesResponseType_is_isTerminated_nil_at( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_TRUE); ++ ++ return (_terminateInstancesResponseType->is_valid_isTerminated == AXIS2_FALSE || ++ NULL == _terminateInstancesResponseType->property_isTerminated || ++ NULL == axutil_array_list_get(_terminateInstancesResponseType->property_isTerminated, env, i)); ++ } ++ ++ /** ++ * Set isTerminated to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_isTerminated_nil_at( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_terminateInstancesResponseType->property_isTerminated == NULL || ++ _terminateInstancesResponseType->is_valid_isTerminated == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_terminateInstancesResponseType->property_isTerminated, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_terminateInstancesResponseType->property_isTerminated, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of isTerminated is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_terminateInstancesResponseType->property_isTerminated == NULL) ++ { ++ _terminateInstancesResponseType->is_valid_isTerminated = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_terminateInstancesResponseType->property_isTerminated, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ ++ /* we keep primtives as pointers in arrasy, so need to free them */ ++ AXIS2_FREE(env-> allocator, element); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _terminateInstancesResponseType->is_valid_isTerminated = AXIS2_FALSE; ++ axutil_array_list_set(_terminateInstancesResponseType->property_isTerminated , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_terminateInstancesResponseType->property_isTerminated , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_terminateInstancesResponseType.h' +--- old/cluster/generated/adb_terminateInstancesResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_terminateInstancesResponseType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,538 @@ ++ ++ ++ #ifndef ADB_TERMINATEINSTANCESRESPONSETYPE_H ++ #define ADB_TERMINATEINSTANCESRESPONSETYPE_H ++ ++ /** ++ * adb_terminateInstancesResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_terminateInstancesResponseType class ++ */ ++ typedef struct adb_terminateInstancesResponseType adb_terminateInstancesResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_terminateInstancesResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_terminateInstancesResponseType_t object ++ */ ++ adb_terminateInstancesResponseType_t* AXIS2_CALL ++ adb_terminateInstancesResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_terminateInstancesResponseType_t object ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_free ( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_terminateInstancesResponseType_get_correlationId( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_correlationId( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_reset_correlationId( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_terminateInstancesResponseType_get_userId( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_userId( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_reset_userId( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_terminateInstancesResponseType_get_statusMessage( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_statusMessage( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_reset_statusMessage( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesResponseType_get_return( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_return( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_reset_return( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for isTerminated. Deprecated for array types, Use adb_terminateInstancesResponseType_get_isTerminated_at instead ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return Array of axis2_bool_ts. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_terminateInstancesResponseType_get_isTerminated( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for isTerminated.Deprecated for array types, Use adb_terminateInstancesResponseType_set_isTerminated_at ++ * or adb_terminateInstancesResponseType_add_isTerminated instead. ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_isTerminated Array of axis2_bool_ts. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_isTerminated( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_isTerminated); ++ ++ /** ++ * Resetter for isTerminated ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_reset_isTerminated( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of isTerminated. ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith axis2_bool_t of the array ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesResponseType_get_isTerminated_at( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of isTerminated. (If the ith already exist, it will be replaced) ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_isTerminated element to set axis2_bool_t to the array ++ * @return ith axis2_bool_t of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_isTerminated_at( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, int i, ++ axis2_bool_t arg_isTerminated); ++ ++ ++ /** ++ * Add to isTerminated. ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_isTerminated element to add axis2_bool_t to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_add_isTerminated( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_isTerminated); ++ ++ /** ++ * Get the size of the isTerminated array. ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the isTerminated array. ++ */ ++ int AXIS2_CALL ++ adb_terminateInstancesResponseType_sizeof_isTerminated( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of isTerminated. ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_remove_isTerminated_at( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesResponseType_is_correlationId_nil( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesResponseType_is_userId_nil( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesResponseType_is_statusMessage_nil( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_statusMessage_nil( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesResponseType_is_return_nil( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether isTerminated is nill ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesResponseType_is_isTerminated_nil( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether isTerminated is nill at i ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesResponseType_is_isTerminated_nil_at( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set isTerminated to nill at i ++ * @param _terminateInstancesResponseType _ adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_set_isTerminated_nil_at( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesResponseType_deserialize( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_terminateInstancesResponseType_declare_parent_namespaces( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param terminateInstancesResponseType_om_node node to serialize from ++ * @param terminateInstancesResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_terminateInstancesResponseType_serialize( ++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* terminateInstancesResponseType_om_node, axiom_element_t *terminateInstancesResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_terminateInstancesResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_TERMINATEINSTANCESRESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_terminateInstancesType.c' +--- old/cluster/generated/adb_terminateInstancesType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_terminateInstancesType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,2061 @@ ++ ++ ++ /** ++ * adb_terminateInstancesType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_terminateInstancesType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = terminateInstancesType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_terminateInstancesType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ axutil_array_list_t* property_instanceIds; ++ ++ ++ axis2_bool_t is_valid_instanceIds; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_set_correlationId_nil( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_set_userId_nil( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_set_return_nil( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_terminateInstancesType_t* AXIS2_CALL ++ adb_terminateInstancesType_create( ++ const axutil_env_t *env) ++ { ++ adb_terminateInstancesType_t *_terminateInstancesType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _terminateInstancesType = (adb_terminateInstancesType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_terminateInstancesType_t)); ++ ++ if(NULL == _terminateInstancesType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_terminateInstancesType, 0, sizeof(adb_terminateInstancesType_t)); ++ ++ _terminateInstancesType->property_correlationId = NULL; ++ _terminateInstancesType->is_valid_correlationId = AXIS2_FALSE; ++ _terminateInstancesType->property_userId = NULL; ++ _terminateInstancesType->is_valid_userId = AXIS2_FALSE; ++ _terminateInstancesType->property_statusMessage = NULL; ++ _terminateInstancesType->is_valid_statusMessage = AXIS2_FALSE; ++ _terminateInstancesType->is_valid_return = AXIS2_FALSE; ++ _terminateInstancesType->property_instanceIds = NULL; ++ _terminateInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ ++ ++ return _terminateInstancesType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_free ( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE); ++ ++ adb_terminateInstancesType_reset_correlationId(_terminateInstancesType, env); ++ adb_terminateInstancesType_reset_userId(_terminateInstancesType, env); ++ adb_terminateInstancesType_reset_statusMessage(_terminateInstancesType, env); ++ adb_terminateInstancesType_reset_return(_terminateInstancesType, env); ++ adb_terminateInstancesType_reset_instanceIds(_terminateInstancesType, env); ++ ++ ++ if(_terminateInstancesType) ++ { ++ AXIS2_FREE(env->allocator, _terminateInstancesType); ++ _terminateInstancesType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_deserialize( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for terminateInstancesType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_terminateInstancesType_set_correlationId(_terminateInstancesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_terminateInstancesType_set_correlationId(_terminateInstancesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_terminateInstancesType_set_userId(_terminateInstancesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_terminateInstancesType_set_userId(_terminateInstancesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_terminateInstancesType_set_statusMessage(_terminateInstancesType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_terminateInstancesType_set_return(_terminateInstancesType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_terminateInstancesType_set_return(_terminateInstancesType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building instanceIds array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building instanceIds element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "instanceIds", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceIds "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceIds (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_terminateInstancesType_set_instanceIds(_terminateInstancesType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_terminateInstancesType_declare_parent_namespaces( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_terminateInstancesType_serialize( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_terminateInstancesType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _terminateInstancesType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_terminateInstancesType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _terminateInstancesType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_terminateInstancesType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _terminateInstancesType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_terminateInstancesType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_terminateInstancesType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_terminateInstancesType->is_valid_instanceIds) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceIds"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceIds"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing instanceIds array ++ */ ++ if (_terminateInstancesType->property_instanceIds != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%sinstanceIds>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_terminateInstancesType->property_instanceIds, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_terminateInstancesType->property_instanceIds, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing instanceIds element ++ */ ++ ++ ++ ++ text_value_5 = (axis2_char_t*)element; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_terminateInstancesType_get_correlationId( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, NULL); ++ ++ ++ return _terminateInstancesType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_set_correlationId( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE); ++ ++ if(_terminateInstancesType->is_valid_correlationId && ++ arg_correlationId == _terminateInstancesType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_terminateInstancesType_reset_correlationId(_terminateInstancesType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _terminateInstancesType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _terminateInstancesType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _terminateInstancesType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_reset_correlationId( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_terminateInstancesType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _terminateInstancesType->property_correlationId); ++ _terminateInstancesType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _terminateInstancesType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesType_is_correlationId_nil( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_TRUE); ++ ++ return !_terminateInstancesType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_set_correlationId_nil( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_terminateInstancesType_reset_correlationId(_terminateInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_terminateInstancesType_get_userId( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, NULL); ++ ++ ++ return _terminateInstancesType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_set_userId( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE); ++ ++ if(_terminateInstancesType->is_valid_userId && ++ arg_userId == _terminateInstancesType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_terminateInstancesType_reset_userId(_terminateInstancesType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _terminateInstancesType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _terminateInstancesType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _terminateInstancesType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_reset_userId( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_terminateInstancesType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _terminateInstancesType->property_userId); ++ _terminateInstancesType->property_userId = NULL; ++ } ++ ++ ++ ++ _terminateInstancesType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesType_is_userId_nil( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_TRUE); ++ ++ return !_terminateInstancesType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_set_userId_nil( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_terminateInstancesType_reset_userId(_terminateInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_terminateInstancesType_get_statusMessage( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, NULL); ++ ++ ++ return _terminateInstancesType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_set_statusMessage( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE); ++ ++ if(_terminateInstancesType->is_valid_statusMessage && ++ arg_statusMessage == _terminateInstancesType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_terminateInstancesType_reset_statusMessage(_terminateInstancesType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _terminateInstancesType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _terminateInstancesType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _terminateInstancesType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_reset_statusMessage( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_terminateInstancesType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _terminateInstancesType->property_statusMessage); ++ _terminateInstancesType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _terminateInstancesType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesType_is_statusMessage_nil( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_TRUE); ++ ++ return !_terminateInstancesType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_set_statusMessage_nil( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_terminateInstancesType_reset_statusMessage(_terminateInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesType_get_return( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, (axis2_bool_t)0); ++ ++ ++ return _terminateInstancesType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_set_return( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE); ++ ++ if(_terminateInstancesType->is_valid_return && ++ arg_return == _terminateInstancesType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_terminateInstancesType_reset_return(_terminateInstancesType, env); ++ ++ _terminateInstancesType->property_return = arg_return; ++ _terminateInstancesType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_reset_return( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE); ++ ++ ++ _terminateInstancesType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesType_is_return_nil( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_TRUE); ++ ++ return !_terminateInstancesType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_set_return_nil( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_terminateInstancesType_reset_return(_terminateInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceIds. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_terminateInstancesType_get_instanceIds( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, NULL); ++ ++ ++ return _terminateInstancesType->property_instanceIds; ++ } ++ ++ /** ++ * setter for instanceIds ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_set_instanceIds( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_instanceIds) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE); ++ ++ if(_terminateInstancesType->is_valid_instanceIds && ++ arg_instanceIds == _terminateInstancesType->property_instanceIds) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_instanceIds, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceIds has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_instanceIds, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_terminateInstancesType_reset_instanceIds(_terminateInstancesType, env); ++ ++ ++ if(NULL == arg_instanceIds) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _terminateInstancesType->property_instanceIds = arg_instanceIds; ++ if(non_nil_exists) ++ { ++ _terminateInstancesType->is_valid_instanceIds = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of instanceIds. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_terminateInstancesType_get_instanceIds_at( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ axis2_char_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, NULL); ++ ++ ++ if(_terminateInstancesType->property_instanceIds == NULL) ++ { ++ return (axis2_char_t*)0; ++ } ++ ret_val = (axis2_char_t*)axutil_array_list_get(_terminateInstancesType->property_instanceIds, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of instanceIds. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_set_instanceIds_at( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_instanceIds) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE); ++ ++ if( _terminateInstancesType->is_valid_instanceIds && ++ _terminateInstancesType->property_instanceIds && ++ ++ arg_instanceIds == (axis2_char_t*)axutil_array_list_get(_terminateInstancesType->property_instanceIds, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instanceIds) ++ { ++ if(_terminateInstancesType->property_instanceIds != NULL) ++ { ++ size = axutil_array_list_size(_terminateInstancesType->property_instanceIds, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_terminateInstancesType->property_instanceIds, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instanceIds is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_terminateInstancesType->property_instanceIds == NULL) ++ { ++ _terminateInstancesType->property_instanceIds = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_terminateInstancesType->property_instanceIds, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _terminateInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ axutil_array_list_set(_terminateInstancesType->property_instanceIds , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_terminateInstancesType->property_instanceIds , env, i, axutil_strdup(env, arg_instanceIds)); ++ _terminateInstancesType->is_valid_instanceIds = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to instanceIds. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_add_instanceIds( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceIds) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_instanceIds) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_terminateInstancesType->property_instanceIds == NULL) ++ { ++ _terminateInstancesType->property_instanceIds = axutil_array_list_create(env, 10); ++ } ++ if(_terminateInstancesType->property_instanceIds == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for instanceIds"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_terminateInstancesType->property_instanceIds , env, axutil_strdup(env, arg_instanceIds)); ++ _terminateInstancesType->is_valid_instanceIds = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the instanceIds array. ++ */ ++ int AXIS2_CALL ++ adb_terminateInstancesType_sizeof_instanceIds( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, -1); ++ if(_terminateInstancesType->property_instanceIds == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_terminateInstancesType->property_instanceIds, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_remove_instanceIds_at( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_terminateInstancesType_set_instanceIds_nil_at(_terminateInstancesType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for instanceIds ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_reset_instanceIds( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ if (_terminateInstancesType->property_instanceIds != NULL) ++ { ++ count = axutil_array_list_size(_terminateInstancesType->property_instanceIds, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_terminateInstancesType->property_instanceIds, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_terminateInstancesType->property_instanceIds, env); ++ } ++ _terminateInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceIds is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesType_is_instanceIds_nil( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_TRUE); ++ ++ return !_terminateInstancesType->is_valid_instanceIds; ++ } ++ ++ /** ++ * Set instanceIds to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_set_instanceIds_nil( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_terminateInstancesType_reset_instanceIds(_terminateInstancesType, env); ++ } ++ ++ ++ /** ++ * Check whether instanceIds is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesType_is_instanceIds_nil_at( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_TRUE); ++ ++ return (_terminateInstancesType->is_valid_instanceIds == AXIS2_FALSE || ++ NULL == _terminateInstancesType->property_instanceIds || ++ NULL == axutil_array_list_get(_terminateInstancesType->property_instanceIds, env, i)); ++ } ++ ++ /** ++ * Set instanceIds to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_set_instanceIds_nil_at( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE); ++ ++ if(_terminateInstancesType->property_instanceIds == NULL || ++ _terminateInstancesType->is_valid_instanceIds == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_terminateInstancesType->property_instanceIds, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_terminateInstancesType->property_instanceIds, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instanceIds is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_terminateInstancesType->property_instanceIds == NULL) ++ { ++ _terminateInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_terminateInstancesType->property_instanceIds, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _terminateInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ axutil_array_list_set(_terminateInstancesType->property_instanceIds , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_terminateInstancesType->property_instanceIds , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_terminateInstancesType.h' +--- old/cluster/generated/adb_terminateInstancesType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_terminateInstancesType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,549 @@ ++ ++ ++ #ifndef ADB_TERMINATEINSTANCESTYPE_H ++ #define ADB_TERMINATEINSTANCESTYPE_H ++ ++ /** ++ * adb_terminateInstancesType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_terminateInstancesType class ++ */ ++ typedef struct adb_terminateInstancesType adb_terminateInstancesType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_terminateInstancesType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_terminateInstancesType_t object ++ */ ++ adb_terminateInstancesType_t* AXIS2_CALL ++ adb_terminateInstancesType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_terminateInstancesType_t object ++ * @param _terminateInstancesType adb_terminateInstancesType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_free ( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_terminateInstancesType_get_correlationId( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_set_correlationId( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_reset_correlationId( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_terminateInstancesType_get_userId( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_set_userId( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_reset_userId( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_terminateInstancesType_get_statusMessage( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_set_statusMessage( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_reset_statusMessage( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesType_get_return( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_set_return( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_reset_return( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceIds. Deprecated for array types, Use adb_terminateInstancesType_get_instanceIds_at instead ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @return Array of axis2_char_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_terminateInstancesType_get_instanceIds( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceIds.Deprecated for array types, Use adb_terminateInstancesType_set_instanceIds_at ++ * or adb_terminateInstancesType_add_instanceIds instead. ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceIds Array of axis2_char_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_set_instanceIds( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_instanceIds); ++ ++ /** ++ * Resetter for instanceIds ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_reset_instanceIds( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of instanceIds. ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_terminateInstancesType_get_instanceIds_at( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of instanceIds. (If the ith already exist, it will be replaced) ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_instanceIds element to set axis2_char_t* to the array ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_set_instanceIds_at( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_instanceIds); ++ ++ ++ /** ++ * Add to instanceIds. ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceIds element to add axis2_char_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_add_instanceIds( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceIds); ++ ++ /** ++ * Get the size of the instanceIds array. ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the instanceIds array. ++ */ ++ int AXIS2_CALL ++ adb_terminateInstancesType_sizeof_instanceIds( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of instanceIds. ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_remove_instanceIds_at( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesType_is_correlationId_nil( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesType_is_userId_nil( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesType_is_statusMessage_nil( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_set_statusMessage_nil( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesType_is_return_nil( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether instanceIds is nill ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesType_is_instanceIds_nil( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set instanceIds to nill (currently the same as reset) ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_set_instanceIds_nil( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env); ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether instanceIds is nill at i ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesType_is_instanceIds_nil_at( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set instanceIds to nill at i ++ * @param _terminateInstancesType _ adb_terminateInstancesType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_set_instanceIds_nil_at( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_terminateInstancesType_deserialize( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_terminateInstancesType_declare_parent_namespaces( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _terminateInstancesType adb_terminateInstancesType_t object ++ * @param env pointer to environment struct ++ * @param terminateInstancesType_om_node node to serialize from ++ * @param terminateInstancesType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_terminateInstancesType_serialize( ++ adb_terminateInstancesType_t* _terminateInstancesType, ++ const axutil_env_t *env, ++ axiom_node_t* terminateInstancesType_om_node, axiom_element_t *terminateInstancesType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_terminateInstancesType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_terminateInstancesType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_TERMINATEINSTANCESTYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_unassignAddressResponseType.c' +--- old/cluster/generated/adb_unassignAddressResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_unassignAddressResponseType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,1401 @@ ++ ++ ++ /** ++ * adb_unassignAddressResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_unassignAddressResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = unassignAddressResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_unassignAddressResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_set_correlationId_nil( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_set_userId_nil( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_set_return_nil( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_unassignAddressResponseType_t* AXIS2_CALL ++ adb_unassignAddressResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_unassignAddressResponseType_t *_unassignAddressResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _unassignAddressResponseType = (adb_unassignAddressResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_unassignAddressResponseType_t)); ++ ++ if(NULL == _unassignAddressResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_unassignAddressResponseType, 0, sizeof(adb_unassignAddressResponseType_t)); ++ ++ _unassignAddressResponseType->property_correlationId = NULL; ++ _unassignAddressResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _unassignAddressResponseType->property_userId = NULL; ++ _unassignAddressResponseType->is_valid_userId = AXIS2_FALSE; ++ _unassignAddressResponseType->property_statusMessage = NULL; ++ _unassignAddressResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _unassignAddressResponseType->is_valid_return = AXIS2_FALSE; ++ ++ ++ return _unassignAddressResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_free ( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_FAILURE); ++ ++ adb_unassignAddressResponseType_reset_correlationId(_unassignAddressResponseType, env); ++ adb_unassignAddressResponseType_reset_userId(_unassignAddressResponseType, env); ++ adb_unassignAddressResponseType_reset_statusMessage(_unassignAddressResponseType, env); ++ adb_unassignAddressResponseType_reset_return(_unassignAddressResponseType, env); ++ ++ ++ if(_unassignAddressResponseType) ++ { ++ AXIS2_FREE(env->allocator, _unassignAddressResponseType); ++ _unassignAddressResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_deserialize( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for unassignAddressResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_unassignAddressResponseType_set_correlationId(_unassignAddressResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_unassignAddressResponseType_set_correlationId(_unassignAddressResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_unassignAddressResponseType_set_userId(_unassignAddressResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_unassignAddressResponseType_set_userId(_unassignAddressResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_unassignAddressResponseType_set_statusMessage(_unassignAddressResponseType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_unassignAddressResponseType_set_return(_unassignAddressResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_unassignAddressResponseType_set_return(_unassignAddressResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_unassignAddressResponseType_declare_parent_namespaces( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_unassignAddressResponseType_serialize( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_unassignAddressResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _unassignAddressResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_unassignAddressResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _unassignAddressResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_unassignAddressResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _unassignAddressResponseType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_unassignAddressResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_unassignAddressResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_unassignAddressResponseType_get_correlationId( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, NULL); ++ ++ ++ return _unassignAddressResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_set_correlationId( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_FAILURE); ++ ++ if(_unassignAddressResponseType->is_valid_correlationId && ++ arg_correlationId == _unassignAddressResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_unassignAddressResponseType_reset_correlationId(_unassignAddressResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _unassignAddressResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _unassignAddressResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _unassignAddressResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_reset_correlationId( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_unassignAddressResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _unassignAddressResponseType->property_correlationId); ++ _unassignAddressResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _unassignAddressResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressResponseType_is_correlationId_nil( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_TRUE); ++ ++ return !_unassignAddressResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_set_correlationId_nil( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_unassignAddressResponseType_reset_correlationId(_unassignAddressResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_unassignAddressResponseType_get_userId( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, NULL); ++ ++ ++ return _unassignAddressResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_set_userId( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_FAILURE); ++ ++ if(_unassignAddressResponseType->is_valid_userId && ++ arg_userId == _unassignAddressResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_unassignAddressResponseType_reset_userId(_unassignAddressResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _unassignAddressResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _unassignAddressResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _unassignAddressResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_reset_userId( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_unassignAddressResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _unassignAddressResponseType->property_userId); ++ _unassignAddressResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _unassignAddressResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressResponseType_is_userId_nil( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_TRUE); ++ ++ return !_unassignAddressResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_set_userId_nil( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_unassignAddressResponseType_reset_userId(_unassignAddressResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_unassignAddressResponseType_get_statusMessage( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, NULL); ++ ++ ++ return _unassignAddressResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_set_statusMessage( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_FAILURE); ++ ++ if(_unassignAddressResponseType->is_valid_statusMessage && ++ arg_statusMessage == _unassignAddressResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_unassignAddressResponseType_reset_statusMessage(_unassignAddressResponseType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _unassignAddressResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _unassignAddressResponseType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _unassignAddressResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_reset_statusMessage( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_unassignAddressResponseType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _unassignAddressResponseType->property_statusMessage); ++ _unassignAddressResponseType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _unassignAddressResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressResponseType_is_statusMessage_nil( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_TRUE); ++ ++ return !_unassignAddressResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_set_statusMessage_nil( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_unassignAddressResponseType_reset_statusMessage(_unassignAddressResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressResponseType_get_return( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, (axis2_bool_t)0); ++ ++ ++ return _unassignAddressResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_set_return( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_FAILURE); ++ ++ if(_unassignAddressResponseType->is_valid_return && ++ arg_return == _unassignAddressResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_unassignAddressResponseType_reset_return(_unassignAddressResponseType, env); ++ ++ _unassignAddressResponseType->property_return = arg_return; ++ _unassignAddressResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_reset_return( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_FAILURE); ++ ++ ++ _unassignAddressResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressResponseType_is_return_nil( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_TRUE); ++ ++ return !_unassignAddressResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_set_return_nil( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_unassignAddressResponseType_reset_return(_unassignAddressResponseType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_unassignAddressResponseType.h' +--- old/cluster/generated/adb_unassignAddressResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_unassignAddressResponseType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,362 @@ ++ ++ ++ #ifndef ADB_UNASSIGNADDRESSRESPONSETYPE_H ++ #define ADB_UNASSIGNADDRESSRESPONSETYPE_H ++ ++ /** ++ * adb_unassignAddressResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_unassignAddressResponseType class ++ */ ++ typedef struct adb_unassignAddressResponseType adb_unassignAddressResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_unassignAddressResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_unassignAddressResponseType_t object ++ */ ++ adb_unassignAddressResponseType_t* AXIS2_CALL ++ adb_unassignAddressResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_unassignAddressResponseType_t object ++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_free ( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_unassignAddressResponseType_get_correlationId( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_set_correlationId( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_reset_correlationId( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_unassignAddressResponseType_get_userId( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_set_userId( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_reset_userId( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_unassignAddressResponseType_get_statusMessage( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_set_statusMessage( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_reset_statusMessage( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressResponseType_get_return( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_set_return( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_reset_return( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressResponseType_is_correlationId_nil( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressResponseType_is_userId_nil( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressResponseType_is_statusMessage_nil( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_set_statusMessage_nil( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressResponseType_is_return_nil( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressResponseType_deserialize( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_unassignAddressResponseType_declare_parent_namespaces( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object ++ * @param env pointer to environment struct ++ * @param unassignAddressResponseType_om_node node to serialize from ++ * @param unassignAddressResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_unassignAddressResponseType_serialize( ++ adb_unassignAddressResponseType_t* _unassignAddressResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* unassignAddressResponseType_om_node, axiom_element_t *unassignAddressResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_unassignAddressResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_UNASSIGNADDRESSRESPONSETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_unassignAddressType.c' +--- old/cluster/generated/adb_unassignAddressType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_unassignAddressType.c 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,2111 @@ ++ ++ ++ /** ++ * adb_unassignAddressType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_unassignAddressType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = unassignAddressType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_unassignAddressType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ axis2_char_t* property_source; ++ ++ ++ axis2_bool_t is_valid_source; ++ ++ ++ axis2_char_t* property_dest; ++ ++ ++ axis2_bool_t is_valid_dest; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_set_correlationId_nil( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_set_userId_nil( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_set_return_nil( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_set_source_nil( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_set_dest_nil( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_unassignAddressType_t* AXIS2_CALL ++ adb_unassignAddressType_create( ++ const axutil_env_t *env) ++ { ++ adb_unassignAddressType_t *_unassignAddressType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _unassignAddressType = (adb_unassignAddressType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_unassignAddressType_t)); ++ ++ if(NULL == _unassignAddressType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_unassignAddressType, 0, sizeof(adb_unassignAddressType_t)); ++ ++ _unassignAddressType->property_correlationId = NULL; ++ _unassignAddressType->is_valid_correlationId = AXIS2_FALSE; ++ _unassignAddressType->property_userId = NULL; ++ _unassignAddressType->is_valid_userId = AXIS2_FALSE; ++ _unassignAddressType->property_statusMessage = NULL; ++ _unassignAddressType->is_valid_statusMessage = AXIS2_FALSE; ++ _unassignAddressType->is_valid_return = AXIS2_FALSE; ++ _unassignAddressType->property_source = NULL; ++ _unassignAddressType->is_valid_source = AXIS2_FALSE; ++ _unassignAddressType->property_dest = NULL; ++ _unassignAddressType->is_valid_dest = AXIS2_FALSE; ++ ++ ++ return _unassignAddressType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_free ( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE); ++ ++ adb_unassignAddressType_reset_correlationId(_unassignAddressType, env); ++ adb_unassignAddressType_reset_userId(_unassignAddressType, env); ++ adb_unassignAddressType_reset_statusMessage(_unassignAddressType, env); ++ adb_unassignAddressType_reset_return(_unassignAddressType, env); ++ adb_unassignAddressType_reset_source(_unassignAddressType, env); ++ adb_unassignAddressType_reset_dest(_unassignAddressType, env); ++ ++ ++ if(_unassignAddressType) ++ { ++ AXIS2_FREE(env->allocator, _unassignAddressType); ++ _unassignAddressType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_deserialize( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for unassignAddressType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_unassignAddressType_set_correlationId(_unassignAddressType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_unassignAddressType_set_correlationId(_unassignAddressType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_unassignAddressType_set_userId(_unassignAddressType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_unassignAddressType_set_userId(_unassignAddressType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_unassignAddressType_set_statusMessage(_unassignAddressType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_unassignAddressType_set_return(_unassignAddressType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_unassignAddressType_set_return(_unassignAddressType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building source element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "source", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_unassignAddressType_set_source(_unassignAddressType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element source"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_unassignAddressType_set_source(_unassignAddressType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for source "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element source missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building dest element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "dest", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_unassignAddressType_set_dest(_unassignAddressType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element dest"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_unassignAddressType_set_dest(_unassignAddressType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for dest "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element dest missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_unassignAddressType_declare_parent_namespaces( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_unassignAddressType_serialize( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *text_value_6; ++ axis2_char_t *text_value_6_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_unassignAddressType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _unassignAddressType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_unassignAddressType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _unassignAddressType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_unassignAddressType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _unassignAddressType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_unassignAddressType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_unassignAddressType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_unassignAddressType->is_valid_source) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property source"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("source"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("source"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing source element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%ssource>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _unassignAddressType->property_source; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_unassignAddressType->is_valid_dest) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property dest"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("dest"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("dest"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing dest element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sdest>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_6 = _unassignAddressType->property_dest; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE); ++ if (text_value_6_temp) ++ { ++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp)); ++ AXIS2_FREE(env->allocator, text_value_6_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_unassignAddressType_get_correlationId( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, NULL); ++ ++ ++ return _unassignAddressType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_set_correlationId( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE); ++ ++ if(_unassignAddressType->is_valid_correlationId && ++ arg_correlationId == _unassignAddressType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_unassignAddressType_reset_correlationId(_unassignAddressType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _unassignAddressType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _unassignAddressType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _unassignAddressType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_reset_correlationId( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_unassignAddressType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _unassignAddressType->property_correlationId); ++ _unassignAddressType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _unassignAddressType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressType_is_correlationId_nil( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_TRUE); ++ ++ return !_unassignAddressType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_set_correlationId_nil( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ return adb_unassignAddressType_reset_correlationId(_unassignAddressType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_unassignAddressType_get_userId( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, NULL); ++ ++ ++ return _unassignAddressType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_set_userId( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE); ++ ++ if(_unassignAddressType->is_valid_userId && ++ arg_userId == _unassignAddressType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_unassignAddressType_reset_userId(_unassignAddressType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _unassignAddressType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _unassignAddressType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _unassignAddressType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_reset_userId( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_unassignAddressType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _unassignAddressType->property_userId); ++ _unassignAddressType->property_userId = NULL; ++ } ++ ++ ++ ++ _unassignAddressType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressType_is_userId_nil( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_TRUE); ++ ++ return !_unassignAddressType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_set_userId_nil( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ return adb_unassignAddressType_reset_userId(_unassignAddressType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_unassignAddressType_get_statusMessage( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, NULL); ++ ++ ++ return _unassignAddressType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_set_statusMessage( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE); ++ ++ if(_unassignAddressType->is_valid_statusMessage && ++ arg_statusMessage == _unassignAddressType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_unassignAddressType_reset_statusMessage(_unassignAddressType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _unassignAddressType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _unassignAddressType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _unassignAddressType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_reset_statusMessage( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_unassignAddressType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _unassignAddressType->property_statusMessage); ++ _unassignAddressType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _unassignAddressType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressType_is_statusMessage_nil( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_TRUE); ++ ++ return !_unassignAddressType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_set_statusMessage_nil( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ return adb_unassignAddressType_reset_statusMessage(_unassignAddressType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressType_get_return( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, (axis2_bool_t)0); ++ ++ ++ return _unassignAddressType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_set_return( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE); ++ ++ if(_unassignAddressType->is_valid_return && ++ arg_return == _unassignAddressType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_unassignAddressType_reset_return(_unassignAddressType, env); ++ ++ _unassignAddressType->property_return = arg_return; ++ _unassignAddressType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_reset_return( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE); ++ ++ ++ _unassignAddressType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressType_is_return_nil( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_TRUE); ++ ++ return !_unassignAddressType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_set_return_nil( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ return adb_unassignAddressType_reset_return(_unassignAddressType, env); ++ } ++ ++ ++ ++ /** ++ * getter for source. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_unassignAddressType_get_source( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, NULL); ++ ++ ++ return _unassignAddressType->property_source; ++ } ++ ++ /** ++ * setter for source ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_set_source( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_source) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE); ++ ++ if(_unassignAddressType->is_valid_source && ++ arg_source == _unassignAddressType->property_source) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_source) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "source is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_unassignAddressType_reset_source(_unassignAddressType, env); ++ ++ ++ if(NULL == arg_source) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _unassignAddressType->property_source = (axis2_char_t *)axutil_strdup(env, arg_source); ++ if(NULL == _unassignAddressType->property_source) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for source"); ++ return AXIS2_FAILURE; ++ } ++ _unassignAddressType->is_valid_source = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for source ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_reset_source( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_unassignAddressType->property_source != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _unassignAddressType->property_source); ++ _unassignAddressType->property_source = NULL; ++ } ++ ++ ++ ++ _unassignAddressType->is_valid_source = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether source is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressType_is_source_nil( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_TRUE); ++ ++ return !_unassignAddressType->is_valid_source; ++ } ++ ++ /** ++ * Set source to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_set_source_nil( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ return adb_unassignAddressType_reset_source(_unassignAddressType, env); ++ } ++ ++ ++ ++ /** ++ * getter for dest. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_unassignAddressType_get_dest( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, NULL); ++ ++ ++ return _unassignAddressType->property_dest; ++ } ++ ++ /** ++ * setter for dest ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_set_dest( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_dest) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE); ++ ++ if(_unassignAddressType->is_valid_dest && ++ arg_dest == _unassignAddressType->property_dest) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_dest) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "dest is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_unassignAddressType_reset_dest(_unassignAddressType, env); ++ ++ ++ if(NULL == arg_dest) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _unassignAddressType->property_dest = (axis2_char_t *)axutil_strdup(env, arg_dest); ++ if(NULL == _unassignAddressType->property_dest) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for dest"); ++ return AXIS2_FAILURE; ++ } ++ _unassignAddressType->is_valid_dest = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for dest ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_reset_dest( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_unassignAddressType->property_dest != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _unassignAddressType->property_dest); ++ _unassignAddressType->property_dest = NULL; ++ } ++ ++ ++ ++ _unassignAddressType->is_valid_dest = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether dest is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressType_is_dest_nil( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_TRUE); ++ ++ return !_unassignAddressType->is_valid_dest; ++ } ++ ++ /** ++ * Set dest to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_set_dest_nil( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env) ++ { ++ return adb_unassignAddressType_reset_dest(_unassignAddressType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_unassignAddressType.h' +--- old/cluster/generated/adb_unassignAddressType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_unassignAddressType.h 2010-01-05 01:00:48 +0000 +@@ -0,0 +1,466 @@ ++ ++ ++ #ifndef ADB_UNASSIGNADDRESSTYPE_H ++ #define ADB_UNASSIGNADDRESSTYPE_H ++ ++ /** ++ * adb_unassignAddressType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_unassignAddressType class ++ */ ++ typedef struct adb_unassignAddressType adb_unassignAddressType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_unassignAddressType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_unassignAddressType_t object ++ */ ++ adb_unassignAddressType_t* AXIS2_CALL ++ adb_unassignAddressType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_unassignAddressType_t object ++ * @param _unassignAddressType adb_unassignAddressType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_free ( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_unassignAddressType_get_correlationId( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_set_correlationId( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_reset_correlationId( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_unassignAddressType_get_userId( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_set_userId( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_reset_userId( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_unassignAddressType_get_statusMessage( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_set_statusMessage( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_reset_statusMessage( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressType_get_return( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_set_return( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_reset_return( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for source. ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_unassignAddressType_get_source( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for source. ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @param arg_source axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_set_source( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_source); ++ ++ /** ++ * Resetter for source ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_reset_source( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for dest. ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_unassignAddressType_get_dest( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for dest. ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @param arg_dest axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_set_dest( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_dest); ++ ++ /** ++ * Resetter for dest ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_reset_dest( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressType_is_correlationId_nil( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressType_is_userId_nil( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressType_is_statusMessage_nil( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_set_statusMessage_nil( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressType_is_return_nil( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether source is nill ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressType_is_source_nil( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether dest is nill ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressType_is_dest_nil( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_unassignAddressType_deserialize( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_unassignAddressType_declare_parent_namespaces( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _unassignAddressType adb_unassignAddressType_t object ++ * @param env pointer to environment struct ++ * @param unassignAddressType_om_node node to serialize from ++ * @param unassignAddressType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_unassignAddressType_serialize( ++ adb_unassignAddressType_t* _unassignAddressType, ++ const axutil_env_t *env, ++ axiom_node_t* unassignAddressType_om_node, axiom_element_t *unassignAddressType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_unassignAddressType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_unassignAddressType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_UNASSIGNADDRESSTYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_virtualMachineType.c' +--- old/cluster/generated/adb_virtualMachineType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_virtualMachineType.c 2010-01-05 01:00:47 +0000 +@@ -0,0 +1,1280 @@ ++ ++ ++ /** ++ * adb_virtualMachineType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_virtualMachineType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = virtualMachineType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_virtualMachineType ++ { ++ axis2_char_t* property_name; ++ ++ ++ axis2_bool_t is_valid_name; ++ ++ ++ int property_memory; ++ ++ ++ axis2_bool_t is_valid_memory; ++ ++ ++ int property_cores; ++ ++ ++ axis2_bool_t is_valid_cores; ++ ++ ++ int property_disk; ++ ++ ++ axis2_bool_t is_valid_disk; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_name_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_memory_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_cores_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_disk_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_virtualMachineType_t* AXIS2_CALL ++ adb_virtualMachineType_create( ++ const axutil_env_t *env) ++ { ++ adb_virtualMachineType_t *_virtualMachineType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _virtualMachineType = (adb_virtualMachineType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_virtualMachineType_t)); ++ ++ if(NULL == _virtualMachineType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_virtualMachineType, 0, sizeof(adb_virtualMachineType_t)); ++ ++ _virtualMachineType->property_name = NULL; ++ _virtualMachineType->is_valid_name = AXIS2_FALSE; ++ _virtualMachineType->is_valid_memory = AXIS2_FALSE; ++ _virtualMachineType->is_valid_cores = AXIS2_FALSE; ++ _virtualMachineType->is_valid_disk = AXIS2_FALSE; ++ ++ ++ return _virtualMachineType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_free ( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE); ++ ++ adb_virtualMachineType_reset_name(_virtualMachineType, env); ++ adb_virtualMachineType_reset_memory(_virtualMachineType, env); ++ adb_virtualMachineType_reset_cores(_virtualMachineType, env); ++ adb_virtualMachineType_reset_disk(_virtualMachineType, env); ++ ++ ++ if(_virtualMachineType) ++ { ++ AXIS2_FREE(env->allocator, _virtualMachineType); ++ _virtualMachineType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_deserialize( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for virtualMachineType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building name element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "name", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_virtualMachineType_set_name(_virtualMachineType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element name"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_virtualMachineType_set_name(_virtualMachineType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for name "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building memory element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "memory", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_virtualMachineType_set_memory(_virtualMachineType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element memory"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for memory "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building cores element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "cores", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_virtualMachineType_set_cores(_virtualMachineType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element cores"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for cores "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building disk element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "disk", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_virtualMachineType_set_disk(_virtualMachineType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element disk"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for disk "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_virtualMachineType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_virtualMachineType_declare_parent_namespaces( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_virtualMachineType_serialize( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t text_value_2[64]; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_virtualMachineType->is_valid_name) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("name"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("name"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing name element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sname>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _virtualMachineType->property_name; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_virtualMachineType->is_valid_memory) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("memory"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("memory"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing memory element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%smemory>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_2, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _virtualMachineType->property_memory); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_virtualMachineType->is_valid_cores) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("cores"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("cores"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing cores element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scores>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_3, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _virtualMachineType->property_cores); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_virtualMachineType->is_valid_disk) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("disk"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("disk"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing disk element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sdisk>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _virtualMachineType->property_disk); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for name. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_virtualMachineType_get_name( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, NULL); ++ ++ ++ return _virtualMachineType->property_name; ++ } ++ ++ /** ++ * setter for name ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_name( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_name) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE); ++ ++ if(_virtualMachineType->is_valid_name && ++ arg_name == _virtualMachineType->property_name) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_virtualMachineType_reset_name(_virtualMachineType, env); ++ ++ ++ if(NULL == arg_name) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _virtualMachineType->property_name = (axis2_char_t *)axutil_strdup(env, arg_name); ++ if(NULL == _virtualMachineType->property_name) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for name"); ++ return AXIS2_FAILURE; ++ } ++ _virtualMachineType->is_valid_name = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for name ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_reset_name( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_virtualMachineType->property_name != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _virtualMachineType->property_name); ++ _virtualMachineType->property_name = NULL; ++ } ++ ++ ++ ++ _virtualMachineType->is_valid_name = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether name is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_virtualMachineType_is_name_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_TRUE); ++ ++ return !_virtualMachineType->is_valid_name; ++ } ++ ++ /** ++ * Set name to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_name_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ return adb_virtualMachineType_reset_name(_virtualMachineType, env); ++ } ++ ++ ++ ++ /** ++ * getter for memory. ++ */ ++ int AXIS2_CALL ++ adb_virtualMachineType_get_memory( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, (int)0); ++ ++ ++ return _virtualMachineType->property_memory; ++ } ++ ++ /** ++ * setter for memory ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_memory( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, ++ const int arg_memory) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE); ++ ++ if(_virtualMachineType->is_valid_memory && ++ arg_memory == _virtualMachineType->property_memory) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_virtualMachineType_reset_memory(_virtualMachineType, env); ++ ++ _virtualMachineType->property_memory = arg_memory; ++ _virtualMachineType->is_valid_memory = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for memory ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_reset_memory( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE); ++ ++ ++ _virtualMachineType->is_valid_memory = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether memory is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_virtualMachineType_is_memory_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_TRUE); ++ ++ return !_virtualMachineType->is_valid_memory; ++ } ++ ++ /** ++ * Set memory to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_memory_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ return adb_virtualMachineType_reset_memory(_virtualMachineType, env); ++ } ++ ++ ++ ++ /** ++ * getter for cores. ++ */ ++ int AXIS2_CALL ++ adb_virtualMachineType_get_cores( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, (int)0); ++ ++ ++ return _virtualMachineType->property_cores; ++ } ++ ++ /** ++ * setter for cores ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_cores( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, ++ const int arg_cores) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE); ++ ++ if(_virtualMachineType->is_valid_cores && ++ arg_cores == _virtualMachineType->property_cores) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_virtualMachineType_reset_cores(_virtualMachineType, env); ++ ++ _virtualMachineType->property_cores = arg_cores; ++ _virtualMachineType->is_valid_cores = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for cores ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_reset_cores( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE); ++ ++ ++ _virtualMachineType->is_valid_cores = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether cores is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_virtualMachineType_is_cores_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_TRUE); ++ ++ return !_virtualMachineType->is_valid_cores; ++ } ++ ++ /** ++ * Set cores to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_cores_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ return adb_virtualMachineType_reset_cores(_virtualMachineType, env); ++ } ++ ++ ++ ++ /** ++ * getter for disk. ++ */ ++ int AXIS2_CALL ++ adb_virtualMachineType_get_disk( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, (int)0); ++ ++ ++ return _virtualMachineType->property_disk; ++ } ++ ++ /** ++ * setter for disk ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_disk( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, ++ const int arg_disk) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE); ++ ++ if(_virtualMachineType->is_valid_disk && ++ arg_disk == _virtualMachineType->property_disk) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_virtualMachineType_reset_disk(_virtualMachineType, env); ++ ++ _virtualMachineType->property_disk = arg_disk; ++ _virtualMachineType->is_valid_disk = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for disk ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_reset_disk( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE); ++ ++ ++ _virtualMachineType->is_valid_disk = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether disk is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_virtualMachineType_is_disk_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_TRUE); ++ ++ return !_virtualMachineType->is_valid_disk; ++ } ++ ++ /** ++ * Set disk to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_disk_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ return adb_virtualMachineType_reset_disk(_virtualMachineType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_virtualMachineType.h' +--- old/cluster/generated/adb_virtualMachineType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_virtualMachineType.h 2010-01-05 01:00:47 +0000 +@@ -0,0 +1,351 @@ ++ ++ ++ #ifndef ADB_VIRTUALMACHINETYPE_H ++ #define ADB_VIRTUALMACHINETYPE_H ++ ++ /** ++ * adb_virtualMachineType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_virtualMachineType class ++ */ ++ typedef struct adb_virtualMachineType adb_virtualMachineType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_virtualMachineType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_virtualMachineType_t object ++ */ ++ adb_virtualMachineType_t* AXIS2_CALL ++ adb_virtualMachineType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_virtualMachineType_t object ++ * @param _virtualMachineType adb_virtualMachineType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_free ( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for name. ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_virtualMachineType_get_name( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for name. ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @param arg_name axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_name( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_name); ++ ++ /** ++ * Resetter for name ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_reset_name( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for memory. ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_virtualMachineType_get_memory( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for memory. ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @param arg_memory int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_memory( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, ++ const int arg_memory); ++ ++ /** ++ * Resetter for memory ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_reset_memory( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for cores. ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_virtualMachineType_get_cores( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for cores. ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @param arg_cores int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_cores( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, ++ const int arg_cores); ++ ++ /** ++ * Resetter for cores ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_reset_cores( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for disk. ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_virtualMachineType_get_disk( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for disk. ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @param arg_disk int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_disk( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, ++ const int arg_disk); ++ ++ /** ++ * Resetter for disk ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_reset_disk( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether name is nill ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_virtualMachineType_is_name_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether memory is nill ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_virtualMachineType_is_memory_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether cores is nill ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_virtualMachineType_is_cores_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether disk is nill ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_virtualMachineType_is_disk_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_deserialize( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_virtualMachineType_declare_parent_namespaces( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @param virtualMachineType_om_node node to serialize from ++ * @param virtualMachineType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_virtualMachineType_serialize( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, ++ axiom_node_t* virtualMachineType_om_node, axiom_element_t *virtualMachineType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_virtualMachineType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_virtualMachineType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_VIRTUALMACHINETYPE_H */ ++ ++ + +=== added file 'cluster/generated/adb_volumeType.c' +--- old/cluster/generated/adb_volumeType.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_volumeType.c 2010-01-05 01:00:47 +0000 +@@ -0,0 +1,1547 @@ ++ ++ ++ /** ++ * adb_volumeType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_volumeType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = volumeType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_volumeType ++ { ++ axis2_char_t* property_volumeId; ++ ++ ++ axis2_bool_t is_valid_volumeId; ++ ++ ++ axis2_char_t* property_remoteDev; ++ ++ ++ axis2_bool_t is_valid_remoteDev; ++ ++ ++ axis2_char_t* property_localDev; ++ ++ ++ axis2_bool_t is_valid_localDev; ++ ++ ++ axis2_char_t* property_state; ++ ++ ++ axis2_bool_t is_valid_state; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_volumeId_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_remoteDev_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_localDev_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_state_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_volumeType_t* AXIS2_CALL ++ adb_volumeType_create( ++ const axutil_env_t *env) ++ { ++ adb_volumeType_t *_volumeType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _volumeType = (adb_volumeType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_volumeType_t)); ++ ++ if(NULL == _volumeType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_volumeType, 0, sizeof(adb_volumeType_t)); ++ ++ _volumeType->property_volumeId = NULL; ++ _volumeType->is_valid_volumeId = AXIS2_FALSE; ++ _volumeType->property_remoteDev = NULL; ++ _volumeType->is_valid_remoteDev = AXIS2_FALSE; ++ _volumeType->property_localDev = NULL; ++ _volumeType->is_valid_localDev = AXIS2_FALSE; ++ _volumeType->property_state = NULL; ++ _volumeType->is_valid_state = AXIS2_FALSE; ++ ++ ++ return _volumeType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_free ( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE); ++ ++ adb_volumeType_reset_volumeId(_volumeType, env); ++ adb_volumeType_reset_remoteDev(_volumeType, env); ++ adb_volumeType_reset_localDev(_volumeType, env); ++ adb_volumeType_reset_state(_volumeType, env); ++ ++ ++ if(_volumeType) ++ { ++ AXIS2_FREE(env->allocator, _volumeType); ++ _volumeType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_deserialize( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for volumeType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building volumeId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "volumeId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_volumeType_set_volumeId(_volumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element volumeId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_volumeType_set_volumeId(_volumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for volumeId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building remoteDev element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "remoteDev", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_volumeType_set_remoteDev(_volumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element remoteDev"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_volumeType_set_remoteDev(_volumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for remoteDev "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building localDev element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "localDev", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_volumeType_set_localDev(_volumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element localDev"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_volumeType_set_localDev(_volumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for localDev "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building state element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "state", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_volumeType_set_state(_volumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element state"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_volumeType_set_state(_volumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for state "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_volumeType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_volumeType_declare_parent_namespaces( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_volumeType_serialize( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t *text_value_4; ++ axis2_char_t *text_value_4_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_volumeType->is_valid_volumeId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("volumeId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("volumeId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing volumeId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%svolumeId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _volumeType->property_volumeId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_volumeType->is_valid_remoteDev) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("remoteDev"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("remoteDev"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing remoteDev element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sremoteDev>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _volumeType->property_remoteDev; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_volumeType->is_valid_localDev) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("localDev"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("localDev"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing localDev element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%slocalDev>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _volumeType->property_localDev; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_volumeType->is_valid_state) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("state"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("state"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing state element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstate>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_4 = _volumeType->property_state; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_4_temp = axutil_xml_quote_string(env, text_value_4, AXIS2_TRUE); ++ if (text_value_4_temp) ++ { ++ axutil_stream_write(stream, env, text_value_4_temp, axutil_strlen(text_value_4_temp)); ++ AXIS2_FREE(env->allocator, text_value_4_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for volumeId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_volumeType_get_volumeId( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, NULL); ++ ++ ++ return _volumeType->property_volumeId; ++ } ++ ++ /** ++ * setter for volumeId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_volumeId( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_volumeId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE); ++ ++ if(_volumeType->is_valid_volumeId && ++ arg_volumeId == _volumeType->property_volumeId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_volumeType_reset_volumeId(_volumeType, env); ++ ++ ++ if(NULL == arg_volumeId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _volumeType->property_volumeId = (axis2_char_t *)axutil_strdup(env, arg_volumeId); ++ if(NULL == _volumeType->property_volumeId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for volumeId"); ++ return AXIS2_FAILURE; ++ } ++ _volumeType->is_valid_volumeId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for volumeId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_reset_volumeId( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_volumeType->property_volumeId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _volumeType->property_volumeId); ++ _volumeType->property_volumeId = NULL; ++ } ++ ++ ++ ++ _volumeType->is_valid_volumeId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether volumeId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_volumeType_is_volumeId_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_TRUE); ++ ++ return !_volumeType->is_valid_volumeId; ++ } ++ ++ /** ++ * Set volumeId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_volumeId_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ return adb_volumeType_reset_volumeId(_volumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for remoteDev. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_volumeType_get_remoteDev( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, NULL); ++ ++ ++ return _volumeType->property_remoteDev; ++ } ++ ++ /** ++ * setter for remoteDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_remoteDev( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_remoteDev) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE); ++ ++ if(_volumeType->is_valid_remoteDev && ++ arg_remoteDev == _volumeType->property_remoteDev) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_volumeType_reset_remoteDev(_volumeType, env); ++ ++ ++ if(NULL == arg_remoteDev) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _volumeType->property_remoteDev = (axis2_char_t *)axutil_strdup(env, arg_remoteDev); ++ if(NULL == _volumeType->property_remoteDev) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for remoteDev"); ++ return AXIS2_FAILURE; ++ } ++ _volumeType->is_valid_remoteDev = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for remoteDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_reset_remoteDev( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_volumeType->property_remoteDev != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _volumeType->property_remoteDev); ++ _volumeType->property_remoteDev = NULL; ++ } ++ ++ ++ ++ _volumeType->is_valid_remoteDev = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether remoteDev is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_volumeType_is_remoteDev_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_TRUE); ++ ++ return !_volumeType->is_valid_remoteDev; ++ } ++ ++ /** ++ * Set remoteDev to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_remoteDev_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ return adb_volumeType_reset_remoteDev(_volumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for localDev. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_volumeType_get_localDev( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, NULL); ++ ++ ++ return _volumeType->property_localDev; ++ } ++ ++ /** ++ * setter for localDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_localDev( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_localDev) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE); ++ ++ if(_volumeType->is_valid_localDev && ++ arg_localDev == _volumeType->property_localDev) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_volumeType_reset_localDev(_volumeType, env); ++ ++ ++ if(NULL == arg_localDev) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _volumeType->property_localDev = (axis2_char_t *)axutil_strdup(env, arg_localDev); ++ if(NULL == _volumeType->property_localDev) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for localDev"); ++ return AXIS2_FAILURE; ++ } ++ _volumeType->is_valid_localDev = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for localDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_reset_localDev( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_volumeType->property_localDev != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _volumeType->property_localDev); ++ _volumeType->property_localDev = NULL; ++ } ++ ++ ++ ++ _volumeType->is_valid_localDev = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether localDev is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_volumeType_is_localDev_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_TRUE); ++ ++ return !_volumeType->is_valid_localDev; ++ } ++ ++ /** ++ * Set localDev to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_localDev_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ return adb_volumeType_reset_localDev(_volumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for state. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_volumeType_get_state( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, NULL); ++ ++ ++ return _volumeType->property_state; ++ } ++ ++ /** ++ * setter for state ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_state( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_state) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE); ++ ++ if(_volumeType->is_valid_state && ++ arg_state == _volumeType->property_state) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_volumeType_reset_state(_volumeType, env); ++ ++ ++ if(NULL == arg_state) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _volumeType->property_state = (axis2_char_t *)axutil_strdup(env, arg_state); ++ if(NULL == _volumeType->property_state) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for state"); ++ return AXIS2_FAILURE; ++ } ++ _volumeType->is_valid_state = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for state ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_reset_state( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_volumeType->property_state != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _volumeType->property_state); ++ _volumeType->property_state = NULL; ++ } ++ ++ ++ ++ _volumeType->is_valid_state = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether state is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_volumeType_is_state_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_TRUE); ++ ++ return !_volumeType->is_valid_state; ++ } ++ ++ /** ++ * Set state to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_state_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ return adb_volumeType_reset_state(_volumeType, env); ++ } ++ ++ ++ + +=== added file 'cluster/generated/adb_volumeType.h' +--- old/cluster/generated/adb_volumeType.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/adb_volumeType.h 2010-01-05 01:00:47 +0000 +@@ -0,0 +1,351 @@ ++ ++ ++ #ifndef ADB_VOLUMETYPE_H ++ #define ADB_VOLUMETYPE_H ++ ++ /** ++ * adb_volumeType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_volumeType class ++ */ ++ typedef struct adb_volumeType adb_volumeType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_volumeType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_volumeType_t object ++ */ ++ adb_volumeType_t* AXIS2_CALL ++ adb_volumeType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_volumeType_t object ++ * @param _volumeType adb_volumeType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_free ( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for volumeId. ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_volumeType_get_volumeId( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for volumeId. ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_volumeId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_volumeId( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_volumeId); ++ ++ /** ++ * Resetter for volumeId ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_reset_volumeId( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for remoteDev. ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_volumeType_get_remoteDev( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for remoteDev. ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_remoteDev axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_remoteDev( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_remoteDev); ++ ++ /** ++ * Resetter for remoteDev ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_reset_remoteDev( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for localDev. ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_volumeType_get_localDev( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for localDev. ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_localDev axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_localDev( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_localDev); ++ ++ /** ++ * Resetter for localDev ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_reset_localDev( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for state. ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_volumeType_get_state( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for state. ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_state axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_state( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_state); ++ ++ /** ++ * Resetter for state ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_reset_state( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether volumeId is nill ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_volumeType_is_volumeId_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether remoteDev is nill ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_volumeType_is_remoteDev_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether localDev is nill ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_volumeType_is_localDev_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether state is nill ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_volumeType_is_state_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_deserialize( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_volumeType_declare_parent_namespaces( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @param volumeType_om_node node to serialize from ++ * @param volumeType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_volumeType_serialize( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, ++ axiom_node_t* volumeType_om_node, axiom_element_t *volumeType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_volumeType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_volumeType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_VOLUMETYPE_H */ ++ ++ + +=== added file 'cluster/generated/axis2_skel_EucalyptusCC.c' +--- old/cluster/generated/axis2_skel_EucalyptusCC.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/axis2_skel_EucalyptusCC.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,241 @@ ++ ++ ++ /** ++ * axis2_skel_EucalyptusCC.c ++ * ++ * This file was auto-generated from WSDL for "EucalyptusCC|http://eucalyptus.ucsb.edu/" service ++ * by the Apache Axis2/C version: 1.4 Built on : Apr 26, 2008 (06:24:30 EDT) ++ * axis2_skel_EucalyptusCC Axis2/C skeleton for the axisService ++ */ ++ ++#include "axis2_skel_EucalyptusCC.h" ++#include ++ ++ ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "DescribeInstances|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param describeInstances ++ * ++ * @return adb_DescribeInstancesResponse_t** @param describeInstances ++ */ ++ adb_DescribeInstancesResponse_t* axis2_skel_EucalyptusCC_DescribeInstances (const axutil_env_t *env , ++ adb_DescribeInstances_t* describeInstances ) ++ { return (DescribeInstancesMarshal(describeInstances, env)); } ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "ConfigureNetwork|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param configureNetwork ++ * ++ * @return adb_ConfigureNetworkResponse_t** @param configureNetwork ++ */ ++ adb_ConfigureNetworkResponse_t* axis2_skel_EucalyptusCC_ConfigureNetwork (const axutil_env_t *env , ++ adb_ConfigureNetwork_t* configureNetwork ) ++ { return (ConfigureNetworkMarshal(configureNetwork, env)); } ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "DescribeResources|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param describeResources ++ * ++ * @return adb_DescribeResourcesResponse_t** @param describeResources ++ */ ++ adb_DescribeResourcesResponse_t* axis2_skel_EucalyptusCC_DescribeResources (const axutil_env_t *env , ++ adb_DescribeResources_t* describeResources ) ++ { return (DescribeResourcesMarshal(describeResources, env)); } ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "StartNetwork|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param startNetwork ++ * ++ * @return adb_StartNetworkResponse_t** @param startNetwork ++ */ ++ adb_StartNetworkResponse_t* axis2_skel_EucalyptusCC_StartNetwork (const axutil_env_t *env , ++ adb_StartNetwork_t* startNetwork ) ++ { return (StartNetworkMarshal(startNetwork, env)); } ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "StopNetwork|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param stopNetwork ++ * ++ * @return adb_StopNetworkResponse_t** @param stopNetwork ++ */ ++ adb_StopNetworkResponse_t* axis2_skel_EucalyptusCC_StopNetwork (const axutil_env_t *env , ++ adb_StopNetwork_t* stopNetwork ) ++ { return (StopNetworkMarshal(stopNetwork, env)); } ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "DescribeNetworks|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param describeNetworks ++ * ++ * @return adb_DescribeNetworksResponse_t** @param describeNetworks ++ */ ++ adb_DescribeNetworksResponse_t* axis2_skel_EucalyptusCC_DescribeNetworks (const axutil_env_t *env , ++ adb_DescribeNetworks_t* describeNetworks ) ++ { return (DescribeNetworksMarshal(describeNetworks, env)); } ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "AssignAddress|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param assignAddress ++ * ++ * @return adb_AssignAddressResponse_t** @param assignAddress ++ */ ++ adb_AssignAddressResponse_t* axis2_skel_EucalyptusCC_AssignAddress (const axutil_env_t *env , ++ adb_AssignAddress_t* assignAddress ) ++ { return (AssignAddressMarshal(assignAddress, env)); } ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "DescribePublicAddresses|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param describePublicAddresses ++ * ++ * @return adb_DescribePublicAddressesResponse_t** @param describePublicAddresses ++ */ ++ adb_DescribePublicAddressesResponse_t* axis2_skel_EucalyptusCC_DescribePublicAddresses (const axutil_env_t *env , ++ adb_DescribePublicAddresses_t* describePublicAddresses ) ++ { return (DescribePublicAddressesMarshal(describePublicAddresses, env)); } ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "RebootInstances|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param rebootInstances ++ * ++ * @return adb_RebootInstancesResponse_t** @param rebootInstances ++ */ ++ adb_RebootInstancesResponse_t* axis2_skel_EucalyptusCC_RebootInstances (const axutil_env_t *env , ++ adb_RebootInstances_t* rebootInstances ) ++ { return (RebootInstancesMarshal(rebootInstances, env)); } ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "GetConsoleOutput|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param getConsoleOutput ++ * ++ * @return adb_GetConsoleOutputResponse_t** @param getConsoleOutput ++ */ ++ adb_GetConsoleOutputResponse_t* axis2_skel_EucalyptusCC_GetConsoleOutput (const axutil_env_t *env , ++ adb_GetConsoleOutput_t* getConsoleOutput ) ++ { return (GetConsoleOutputMarshal(getConsoleOutput, env)); } ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "UnassignAddress|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param unassignAddress ++ * ++ * @return adb_UnassignAddressResponse_t** @param unassignAddress ++ */ ++ adb_UnassignAddressResponse_t* axis2_skel_EucalyptusCC_UnassignAddress (const axutil_env_t *env , ++ adb_UnassignAddress_t* unassignAddress ) ++ { return (UnassignAddressMarshal(unassignAddress, env)); } ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "TerminateInstances|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param terminateInstances ++ * ++ * @return adb_TerminateInstancesResponse_t** @param terminateInstances ++ */ ++ adb_TerminateInstancesResponse_t* axis2_skel_EucalyptusCC_TerminateInstances (const axutil_env_t *env , ++ adb_TerminateInstances_t* terminateInstances ) ++ { return (TerminateInstancesMarshal(terminateInstances, env)); } ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "DetachVolume|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param detachVolume ++ * ++ * @return adb_DetachVolumeResponse_t** @param detachVolume ++ */ ++ adb_DetachVolumeResponse_t* axis2_skel_EucalyptusCC_DetachVolume (const axutil_env_t *env , ++ adb_DetachVolume_t* detachVolume ) ++ { return (DetachVolumeMarshal(detachVolume, env)); } ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "AttachVolume|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param attachVolume ++ * ++ * @return adb_AttachVolumeResponse_t** @param attachVolume ++ */ ++ adb_AttachVolumeResponse_t* axis2_skel_EucalyptusCC_AttachVolume (const axutil_env_t *env , ++ adb_AttachVolume_t* attachVolume ) ++ { return (AttachVolumeMarshal(attachVolume, env)); } ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "RunInstances|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param runInstances ++ * ++ * @return adb_RunInstancesResponse_t** @param runInstances ++ */ ++ adb_RunInstancesResponse_t* axis2_skel_EucalyptusCC_RunInstances (const axutil_env_t *env , ++ adb_RunInstances_t* runInstances ) ++ { return (RunInstancesMarshal(runInstances, env)); } ++ ++ + +=== added file 'cluster/generated/axis2_skel_EucalyptusCC.h' +--- old/cluster/generated/axis2_skel_EucalyptusCC.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/axis2_skel_EucalyptusCC.h 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,303 @@ ++ ++ ++ /** ++ * axis2_skel_EucalyptusCC.h ++ * ++ * This file was auto-generated from WSDL for "EucalyptusCC|http://eucalyptus.ucsb.edu/" service ++ * by the Apache Axis2/C version: 1.4 Built on : Apr 26, 2008 (06:24:30 EDT) ++ * axis2_skel_EucalyptusCC Axis2/C skeleton for the axisService- Header file ++ */ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ ++ ++ #include "adb_DescribeInstances.h" ++ ++ #include "adb_DescribeInstancesResponse.h" ++ ++ #include "adb_ConfigureNetwork.h" ++ ++ #include "adb_ConfigureNetworkResponse.h" ++ ++ #include "adb_DescribeResources.h" ++ ++ #include "adb_DescribeResourcesResponse.h" ++ ++ #include "adb_StartNetwork.h" ++ ++ #include "adb_StartNetworkResponse.h" ++ ++ #include "adb_StopNetwork.h" ++ ++ #include "adb_StopNetworkResponse.h" ++ ++ #include "adb_DescribeNetworks.h" ++ ++ #include "adb_DescribeNetworksResponse.h" ++ ++ #include "adb_AssignAddress.h" ++ ++ #include "adb_AssignAddressResponse.h" ++ ++ #include "adb_DescribePublicAddresses.h" ++ ++ #include "adb_DescribePublicAddressesResponse.h" ++ ++ #include "adb_RebootInstances.h" ++ ++ #include "adb_RebootInstancesResponse.h" ++ ++ #include "adb_GetConsoleOutput.h" ++ ++ #include "adb_GetConsoleOutputResponse.h" ++ ++ #include "adb_UnassignAddress.h" ++ ++ #include "adb_UnassignAddressResponse.h" ++ ++ #include "adb_TerminateInstances.h" ++ ++ #include "adb_TerminateInstancesResponse.h" ++ ++ #include "adb_DetachVolume.h" ++ ++ #include "adb_DetachVolumeResponse.h" ++ ++ #include "adb_AttachVolume.h" ++ ++ #include "adb_AttachVolumeResponse.h" ++ ++ #include "adb_RunInstances.h" ++ ++ #include "adb_RunInstancesResponse.h" ++ ++ ++ #ifdef __cplusplus ++ extern "C" { ++ #endif ++ ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "DescribeInstances|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param describeInstances ++ * ++ * @return adb_DescribeInstancesResponse_t** @param describeInstances ++ */ ++ adb_DescribeInstancesResponse_t* axis2_skel_EucalyptusCC_DescribeInstances (const axutil_env_t *env , ++ adb_DescribeInstances_t* describeInstances ); ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "ConfigureNetwork|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param configureNetwork ++ * ++ * @return adb_ConfigureNetworkResponse_t** @param configureNetwork ++ */ ++ adb_ConfigureNetworkResponse_t* axis2_skel_EucalyptusCC_ConfigureNetwork (const axutil_env_t *env , ++ adb_ConfigureNetwork_t* configureNetwork ); ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "DescribeResources|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param describeResources ++ * ++ * @return adb_DescribeResourcesResponse_t** @param describeResources ++ */ ++ adb_DescribeResourcesResponse_t* axis2_skel_EucalyptusCC_DescribeResources (const axutil_env_t *env , ++ adb_DescribeResources_t* describeResources ); ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "StartNetwork|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param startNetwork ++ * ++ * @return adb_StartNetworkResponse_t** @param startNetwork ++ */ ++ adb_StartNetworkResponse_t* axis2_skel_EucalyptusCC_StartNetwork (const axutil_env_t *env , ++ adb_StartNetwork_t* startNetwork ); ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "StopNetwork|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param stopNetwork ++ * ++ * @return adb_StopNetworkResponse_t** @param stopNetwork ++ */ ++ adb_StopNetworkResponse_t* axis2_skel_EucalyptusCC_StopNetwork (const axutil_env_t *env , ++ adb_StopNetwork_t* stopNetwork ); ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "DescribeNetworks|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param describeNetworks ++ * ++ * @return adb_DescribeNetworksResponse_t** @param describeNetworks ++ */ ++ adb_DescribeNetworksResponse_t* axis2_skel_EucalyptusCC_DescribeNetworks (const axutil_env_t *env , ++ adb_DescribeNetworks_t* describeNetworks ); ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "AssignAddress|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param assignAddress ++ * ++ * @return adb_AssignAddressResponse_t** @param assignAddress ++ */ ++ adb_AssignAddressResponse_t* axis2_skel_EucalyptusCC_AssignAddress (const axutil_env_t *env , ++ adb_AssignAddress_t* assignAddress ); ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "DescribePublicAddresses|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param describePublicAddresses ++ * ++ * @return adb_DescribePublicAddressesResponse_t** @param describePublicAddresses ++ */ ++ adb_DescribePublicAddressesResponse_t* axis2_skel_EucalyptusCC_DescribePublicAddresses (const axutil_env_t *env , ++ adb_DescribePublicAddresses_t* describePublicAddresses ); ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "RebootInstances|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param rebootInstances ++ * ++ * @return adb_RebootInstancesResponse_t** @param rebootInstances ++ */ ++ adb_RebootInstancesResponse_t* axis2_skel_EucalyptusCC_RebootInstances (const axutil_env_t *env , ++ adb_RebootInstances_t* rebootInstances ); ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "GetConsoleOutput|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param getConsoleOutput ++ * ++ * @return adb_GetConsoleOutputResponse_t** @param getConsoleOutput ++ */ ++ adb_GetConsoleOutputResponse_t* axis2_skel_EucalyptusCC_GetConsoleOutput (const axutil_env_t *env , ++ adb_GetConsoleOutput_t* getConsoleOutput ); ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "UnassignAddress|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param unassignAddress ++ * ++ * @return adb_UnassignAddressResponse_t** @param unassignAddress ++ */ ++ adb_UnassignAddressResponse_t* axis2_skel_EucalyptusCC_UnassignAddress (const axutil_env_t *env , ++ adb_UnassignAddress_t* unassignAddress ); ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "TerminateInstances|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param terminateInstances ++ * ++ * @return adb_TerminateInstancesResponse_t** @param terminateInstances ++ */ ++ adb_TerminateInstancesResponse_t* axis2_skel_EucalyptusCC_TerminateInstances (const axutil_env_t *env , ++ adb_TerminateInstances_t* terminateInstances ); ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "DetachVolume|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param detachVolume ++ * ++ * @return adb_DetachVolumeResponse_t** @param detachVolume ++ */ ++ adb_DetachVolumeResponse_t* axis2_skel_EucalyptusCC_DetachVolume (const axutil_env_t *env , ++ adb_DetachVolume_t* detachVolume ); ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "AttachVolume|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param attachVolume ++ * ++ * @return adb_AttachVolumeResponse_t** @param attachVolume ++ */ ++ adb_AttachVolumeResponse_t* axis2_skel_EucalyptusCC_AttachVolume (const axutil_env_t *env , ++ adb_AttachVolume_t* attachVolume ); ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "RunInstances|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param runInstances ++ * ++ * @return adb_RunInstancesResponse_t** @param runInstances ++ */ ++ adb_RunInstancesResponse_t* axis2_skel_EucalyptusCC_RunInstances (const axutil_env_t *env , ++ adb_RunInstances_t* runInstances ); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ + +=== added file 'cluster/generated/axis2_stub_EucalyptusCC.c' +--- old/cluster/generated/axis2_stub_EucalyptusCC.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/axis2_stub_EucalyptusCC.c 2010-01-05 01:00:41 +0000 +@@ -0,0 +1,4506 @@ ++ ++ ++ /** ++ * axis2_stub_EucalyptusCC.c ++ * ++ * This file was auto-generated from WSDL for "EucalyptusCC|http://eucalyptus.ucsb.edu/" service ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:24:30 EDT) ++ */ ++ ++ #include "axis2_stub_EucalyptusCC.h" ++ #include ++ ++ /** ++ * axis2_stub_EucalyptusCC C implementation ++ */ ++ ++ axis2_stub_t* ++ axis2_stub_create_EucalyptusCC(const axutil_env_t *env, ++ axis2_char_t *client_home, ++ axis2_char_t *endpoint_uri) ++ { ++ axis2_stub_t *stub = NULL; ++ axis2_endpoint_ref_t *endpoint_ref = NULL; ++ AXIS2_FUNC_PARAM_CHECK (client_home, env, NULL) ++ ++ if (NULL == endpoint_uri) ++ { ++ endpoint_uri = axis2_stub_get_endpoint_uri_of_EucalyptusCC(env); ++ } ++ ++ endpoint_ref = axis2_endpoint_ref_create(env, endpoint_uri); ++ ++ stub = axis2_stub_create_with_endpoint_ref_and_client_home (env, endpoint_ref, client_home); ++ ++ if (NULL == stub) ++ { ++ if(NULL != endpoint_ref) ++ { ++ axis2_endpoint_ref_free(endpoint_ref, env); ++ } ++ return NULL; ++ } ++ ++ ++ axis2_stub_populate_services_for_EucalyptusCC(stub, env); ++ return stub; ++ } ++ ++ ++ void ++ axis2_stub_populate_services_for_EucalyptusCC(axis2_stub_t *stub, const axutil_env_t *env) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axutil_qname_t *svc_qname = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axis2_svc_t *svc = NULL; ++ axis2_op_t *op = NULL; ++ axis2_op_t *annon_op = NULL; ++ axis2_msg_t *msg_out = NULL; ++ axis2_msg_t *msg_in = NULL; ++ axis2_msg_t *msg_out_fault = NULL; ++ axis2_msg_t *msg_in_fault = NULL; ++ ++ ++ /* Modifying the Service */ ++ svc_client = axis2_stub_get_svc_client (stub, env ); ++ svc = (axis2_svc_t*)axis2_svc_client_get_svc( svc_client, env ); ++ ++ annon_op = axis2_svc_get_op_with_name(svc, env, AXIS2_ANON_OUT_IN_OP); ++ msg_out = axis2_op_get_msg(annon_op, env, AXIS2_MSG_OUT); ++ msg_in = axis2_op_get_msg(annon_op, env, AXIS2_MSG_IN); ++ msg_out_fault = axis2_op_get_msg(annon_op, env, AXIS2_MSG_OUT_FAULT); ++ msg_in_fault = axis2_op_get_msg(annon_op, env, AXIS2_MSG_IN_FAULT); ++ ++ svc_qname = axutil_qname_create(env,"EucalyptusCC" ,NULL, NULL); ++ axis2_svc_set_qname (svc, env, svc_qname); ++ ++ /* creating the operations*/ ++ ++ ++ op_qname = axutil_qname_create(env, ++ "DescribeInstances" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "ConfigureNetwork" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "DescribeResources" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "StartNetwork" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "StopNetwork" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "DescribeNetworks" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "AssignAddress" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "DescribePublicAddresses" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "RebootInstances" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "GetConsoleOutput" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "UnassignAddress" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "TerminateInstances" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "DetachVolume" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "AttachVolume" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "RunInstances" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ } ++ ++ /** ++ *return end point picked from wsdl ++ */ ++ axis2_char_t* ++ axis2_stub_get_endpoint_uri_of_EucalyptusCC( const axutil_env_t *env ) ++ { ++ axis2_char_t *endpoint_uri = NULL; ++ /* set the address from here */ ++ ++ endpoint_uri = "http://cc:9090/axis2/services/EucalyptusCC"; ++ ++ return endpoint_uri; ++ } ++ ++ ++ ++ /** ++ * auto generated method signature ++ * for "DescribeInstances|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _describeInstances ++ * ++ * @return adb_DescribeInstancesResponse_t* ++ */ ++ adb_DescribeInstancesResponse_t* ++ axis2_stub_op_EucalyptusCC_DescribeInstances( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_DescribeInstances_t* _describeInstances) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_DescribeInstancesResponse_t* ret_val = NULL; ++ ++ payload = adb_DescribeInstances_serialize(_describeInstances, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#DescribeInstances"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#DescribeInstances"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_DescribeInstancesResponse_create(env); ++ ++ if(adb_DescribeInstancesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_DescribeInstancesResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the DescribeInstancesResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "ConfigureNetwork|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _configureNetwork ++ * ++ * @return adb_ConfigureNetworkResponse_t* ++ */ ++ adb_ConfigureNetworkResponse_t* ++ axis2_stub_op_EucalyptusCC_ConfigureNetwork( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ConfigureNetwork_t* _configureNetwork) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_ConfigureNetworkResponse_t* ret_val = NULL; ++ ++ payload = adb_ConfigureNetwork_serialize(_configureNetwork, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#ConfigureNetwork"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#ConfigureNetwork"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_ConfigureNetworkResponse_create(env); ++ ++ if(adb_ConfigureNetworkResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_ConfigureNetworkResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ConfigureNetworkResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "DescribeResources|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _describeResources ++ * ++ * @return adb_DescribeResourcesResponse_t* ++ */ ++ adb_DescribeResourcesResponse_t* ++ axis2_stub_op_EucalyptusCC_DescribeResources( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_DescribeResources_t* _describeResources) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_DescribeResourcesResponse_t* ret_val = NULL; ++ ++ payload = adb_DescribeResources_serialize(_describeResources, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#DescribeResources"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#DescribeResources"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_DescribeResourcesResponse_create(env); ++ ++ if(adb_DescribeResourcesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_DescribeResourcesResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the DescribeResourcesResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "StartNetwork|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _startNetwork ++ * ++ * @return adb_StartNetworkResponse_t* ++ */ ++ adb_StartNetworkResponse_t* ++ axis2_stub_op_EucalyptusCC_StartNetwork( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_StartNetwork_t* _startNetwork) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_StartNetworkResponse_t* ret_val = NULL; ++ ++ payload = adb_StartNetwork_serialize(_startNetwork, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#StartNetwork"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#StartNetwork"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_StartNetworkResponse_create(env); ++ ++ if(adb_StartNetworkResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_StartNetworkResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the StartNetworkResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "StopNetwork|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _stopNetwork ++ * ++ * @return adb_StopNetworkResponse_t* ++ */ ++ adb_StopNetworkResponse_t* ++ axis2_stub_op_EucalyptusCC_StopNetwork( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_StopNetwork_t* _stopNetwork) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_StopNetworkResponse_t* ret_val = NULL; ++ ++ payload = adb_StopNetwork_serialize(_stopNetwork, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#StopNetwork"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#StopNetwork"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_StopNetworkResponse_create(env); ++ ++ if(adb_StopNetworkResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_StopNetworkResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the StopNetworkResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "DescribeNetworks|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _describeNetworks ++ * ++ * @return adb_DescribeNetworksResponse_t* ++ */ ++ adb_DescribeNetworksResponse_t* ++ axis2_stub_op_EucalyptusCC_DescribeNetworks( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_DescribeNetworks_t* _describeNetworks) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_DescribeNetworksResponse_t* ret_val = NULL; ++ ++ payload = adb_DescribeNetworks_serialize(_describeNetworks, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#DescribeNetworks"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#DescribeNetworks"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_DescribeNetworksResponse_create(env); ++ ++ if(adb_DescribeNetworksResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_DescribeNetworksResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the DescribeNetworksResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "AssignAddress|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _assignAddress ++ * ++ * @return adb_AssignAddressResponse_t* ++ */ ++ adb_AssignAddressResponse_t* ++ axis2_stub_op_EucalyptusCC_AssignAddress( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_AssignAddress_t* _assignAddress) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_AssignAddressResponse_t* ret_val = NULL; ++ ++ payload = adb_AssignAddress_serialize(_assignAddress, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#AssignAddress"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#AssignAddress"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_AssignAddressResponse_create(env); ++ ++ if(adb_AssignAddressResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_AssignAddressResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the AssignAddressResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "DescribePublicAddresses|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _describePublicAddresses ++ * ++ * @return adb_DescribePublicAddressesResponse_t* ++ */ ++ adb_DescribePublicAddressesResponse_t* ++ axis2_stub_op_EucalyptusCC_DescribePublicAddresses( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_DescribePublicAddresses_t* _describePublicAddresses) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_DescribePublicAddressesResponse_t* ret_val = NULL; ++ ++ payload = adb_DescribePublicAddresses_serialize(_describePublicAddresses, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#DescribePublicAddresses"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#DescribePublicAddresses"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_DescribePublicAddressesResponse_create(env); ++ ++ if(adb_DescribePublicAddressesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_DescribePublicAddressesResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the DescribePublicAddressesResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "RebootInstances|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _rebootInstances ++ * ++ * @return adb_RebootInstancesResponse_t* ++ */ ++ adb_RebootInstancesResponse_t* ++ axis2_stub_op_EucalyptusCC_RebootInstances( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_RebootInstances_t* _rebootInstances) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_RebootInstancesResponse_t* ret_val = NULL; ++ ++ payload = adb_RebootInstances_serialize(_rebootInstances, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#RebootInstances"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#RebootInstances"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_RebootInstancesResponse_create(env); ++ ++ if(adb_RebootInstancesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_RebootInstancesResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the RebootInstancesResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "GetConsoleOutput|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _getConsoleOutput ++ * ++ * @return adb_GetConsoleOutputResponse_t* ++ */ ++ adb_GetConsoleOutputResponse_t* ++ axis2_stub_op_EucalyptusCC_GetConsoleOutput( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_GetConsoleOutput_t* _getConsoleOutput) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_GetConsoleOutputResponse_t* ret_val = NULL; ++ ++ payload = adb_GetConsoleOutput_serialize(_getConsoleOutput, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#GetConsoleOutput"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#GetConsoleOutput"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_GetConsoleOutputResponse_create(env); ++ ++ if(adb_GetConsoleOutputResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_GetConsoleOutputResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the GetConsoleOutputResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "UnassignAddress|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _unassignAddress ++ * ++ * @return adb_UnassignAddressResponse_t* ++ */ ++ adb_UnassignAddressResponse_t* ++ axis2_stub_op_EucalyptusCC_UnassignAddress( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_UnassignAddress_t* _unassignAddress) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_UnassignAddressResponse_t* ret_val = NULL; ++ ++ payload = adb_UnassignAddress_serialize(_unassignAddress, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#UnassignAddress"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#UnassignAddress"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_UnassignAddressResponse_create(env); ++ ++ if(adb_UnassignAddressResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_UnassignAddressResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the UnassignAddressResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "TerminateInstances|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _terminateInstances ++ * ++ * @return adb_TerminateInstancesResponse_t* ++ */ ++ adb_TerminateInstancesResponse_t* ++ axis2_stub_op_EucalyptusCC_TerminateInstances( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_TerminateInstances_t* _terminateInstances) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_TerminateInstancesResponse_t* ret_val = NULL; ++ ++ payload = adb_TerminateInstances_serialize(_terminateInstances, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#TerminateInstances"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#TerminateInstances"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_TerminateInstancesResponse_create(env); ++ ++ if(adb_TerminateInstancesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_TerminateInstancesResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the TerminateInstancesResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "DetachVolume|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _detachVolume ++ * ++ * @return adb_DetachVolumeResponse_t* ++ */ ++ adb_DetachVolumeResponse_t* ++ axis2_stub_op_EucalyptusCC_DetachVolume( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_DetachVolume_t* _detachVolume) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_DetachVolumeResponse_t* ret_val = NULL; ++ ++ payload = adb_DetachVolume_serialize(_detachVolume, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#DetachVolume"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#DetachVolume"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_DetachVolumeResponse_create(env); ++ ++ if(adb_DetachVolumeResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_DetachVolumeResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the DetachVolumeResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "AttachVolume|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _attachVolume ++ * ++ * @return adb_AttachVolumeResponse_t* ++ */ ++ adb_AttachVolumeResponse_t* ++ axis2_stub_op_EucalyptusCC_AttachVolume( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_AttachVolume_t* _attachVolume) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_AttachVolumeResponse_t* ret_val = NULL; ++ ++ payload = adb_AttachVolume_serialize(_attachVolume, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#AttachVolume"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#AttachVolume"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_AttachVolumeResponse_create(env); ++ ++ if(adb_AttachVolumeResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_AttachVolumeResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the AttachVolumeResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "RunInstances|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _runInstances ++ * ++ * @return adb_RunInstancesResponse_t* ++ */ ++ adb_RunInstancesResponse_t* ++ axis2_stub_op_EucalyptusCC_RunInstances( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_RunInstances_t* _runInstances) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_RunInstancesResponse_t* ret_val = NULL; ++ ++ payload = adb_RunInstances_serialize(_runInstances, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#RunInstances"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#RunInstances"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_RunInstancesResponse_create(env); ++ ++ if(adb_RunInstancesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_RunInstancesResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the RunInstancesResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ ++ struct axis2_stub_EucalyptusCC_DescribeInstances_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribeInstancesResponse_t* _describeInstancesResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_DescribeInstances(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusCC_DescribeInstances_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_DescribeInstances_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_DescribeInstances(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribeInstancesResponse_t* _describeInstancesResponse, void *data); ++ struct axis2_stub_EucalyptusCC_DescribeInstances_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_DescribeInstancesResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_DescribeInstances_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_DescribeInstancesResponse_create(env); ++ ++ if(adb_DescribeInstancesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_DescribeInstancesResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "DescribeInstances|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _describeInstances ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusCC_DescribeInstances( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_DescribeInstances_t* _describeInstances, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribeInstancesResponse_t* _describeInstancesResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusCC_DescribeInstances_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_DescribeInstances_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusCC_DescribeInstances_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_DescribeInstances_serialize(_describeInstances, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#DescribeInstances"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#DescribeInstances"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_DescribeInstances); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_DescribeInstances); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusCC_ConfigureNetwork_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ConfigureNetworkResponse_t* _configureNetworkResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_ConfigureNetwork(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusCC_ConfigureNetwork_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_ConfigureNetwork_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_ConfigureNetwork(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ConfigureNetworkResponse_t* _configureNetworkResponse, void *data); ++ struct axis2_stub_EucalyptusCC_ConfigureNetwork_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_ConfigureNetworkResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_ConfigureNetwork_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_ConfigureNetworkResponse_create(env); ++ ++ if(adb_ConfigureNetworkResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_ConfigureNetworkResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "ConfigureNetwork|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _configureNetwork ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusCC_ConfigureNetwork( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ConfigureNetwork_t* _configureNetwork, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ConfigureNetworkResponse_t* _configureNetworkResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusCC_ConfigureNetwork_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_ConfigureNetwork_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusCC_ConfigureNetwork_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_ConfigureNetwork_serialize(_configureNetwork, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#ConfigureNetwork"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#ConfigureNetwork"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_ConfigureNetwork); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_ConfigureNetwork); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusCC_DescribeResources_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribeResourcesResponse_t* _describeResourcesResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_DescribeResources(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusCC_DescribeResources_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_DescribeResources_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_DescribeResources(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribeResourcesResponse_t* _describeResourcesResponse, void *data); ++ struct axis2_stub_EucalyptusCC_DescribeResources_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_DescribeResourcesResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_DescribeResources_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_DescribeResourcesResponse_create(env); ++ ++ if(adb_DescribeResourcesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_DescribeResourcesResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "DescribeResources|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _describeResources ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusCC_DescribeResources( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_DescribeResources_t* _describeResources, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribeResourcesResponse_t* _describeResourcesResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusCC_DescribeResources_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_DescribeResources_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusCC_DescribeResources_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_DescribeResources_serialize(_describeResources, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#DescribeResources"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#DescribeResources"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_DescribeResources); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_DescribeResources); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusCC_StartNetwork_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_StartNetworkResponse_t* _startNetworkResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_StartNetwork(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusCC_StartNetwork_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_StartNetwork_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_StartNetwork(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_StartNetworkResponse_t* _startNetworkResponse, void *data); ++ struct axis2_stub_EucalyptusCC_StartNetwork_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_StartNetworkResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_StartNetwork_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_StartNetworkResponse_create(env); ++ ++ if(adb_StartNetworkResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_StartNetworkResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "StartNetwork|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _startNetwork ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusCC_StartNetwork( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_StartNetwork_t* _startNetwork, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_StartNetworkResponse_t* _startNetworkResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusCC_StartNetwork_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_StartNetwork_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusCC_StartNetwork_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_StartNetwork_serialize(_startNetwork, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#StartNetwork"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#StartNetwork"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_StartNetwork); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_StartNetwork); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusCC_StopNetwork_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_StopNetworkResponse_t* _stopNetworkResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_StopNetwork(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusCC_StopNetwork_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_StopNetwork_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_StopNetwork(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_StopNetworkResponse_t* _stopNetworkResponse, void *data); ++ struct axis2_stub_EucalyptusCC_StopNetwork_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_StopNetworkResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_StopNetwork_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_StopNetworkResponse_create(env); ++ ++ if(adb_StopNetworkResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_StopNetworkResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "StopNetwork|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _stopNetwork ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusCC_StopNetwork( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_StopNetwork_t* _stopNetwork, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_StopNetworkResponse_t* _stopNetworkResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusCC_StopNetwork_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_StopNetwork_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusCC_StopNetwork_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_StopNetwork_serialize(_stopNetwork, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#StopNetwork"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#StopNetwork"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_StopNetwork); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_StopNetwork); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusCC_DescribeNetworks_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribeNetworksResponse_t* _describeNetworksResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_DescribeNetworks(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusCC_DescribeNetworks_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_DescribeNetworks_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_DescribeNetworks(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribeNetworksResponse_t* _describeNetworksResponse, void *data); ++ struct axis2_stub_EucalyptusCC_DescribeNetworks_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_DescribeNetworksResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_DescribeNetworks_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_DescribeNetworksResponse_create(env); ++ ++ if(adb_DescribeNetworksResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_DescribeNetworksResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "DescribeNetworks|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _describeNetworks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusCC_DescribeNetworks( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_DescribeNetworks_t* _describeNetworks, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribeNetworksResponse_t* _describeNetworksResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusCC_DescribeNetworks_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_DescribeNetworks_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusCC_DescribeNetworks_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_DescribeNetworks_serialize(_describeNetworks, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#DescribeNetworks"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#DescribeNetworks"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_DescribeNetworks); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_DescribeNetworks); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusCC_AssignAddress_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_AssignAddressResponse_t* _assignAddressResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_AssignAddress(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusCC_AssignAddress_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_AssignAddress_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_AssignAddress(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_AssignAddressResponse_t* _assignAddressResponse, void *data); ++ struct axis2_stub_EucalyptusCC_AssignAddress_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_AssignAddressResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_AssignAddress_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_AssignAddressResponse_create(env); ++ ++ if(adb_AssignAddressResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_AssignAddressResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "AssignAddress|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _assignAddress ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusCC_AssignAddress( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_AssignAddress_t* _assignAddress, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_AssignAddressResponse_t* _assignAddressResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusCC_AssignAddress_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_AssignAddress_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusCC_AssignAddress_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_AssignAddress_serialize(_assignAddress, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#AssignAddress"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#AssignAddress"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_AssignAddress); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_AssignAddress); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusCC_DescribePublicAddresses_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribePublicAddressesResponse_t* _describePublicAddressesResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_DescribePublicAddresses(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusCC_DescribePublicAddresses_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_DescribePublicAddresses_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_DescribePublicAddresses(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribePublicAddressesResponse_t* _describePublicAddressesResponse, void *data); ++ struct axis2_stub_EucalyptusCC_DescribePublicAddresses_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_DescribePublicAddressesResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_DescribePublicAddresses_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_DescribePublicAddressesResponse_create(env); ++ ++ if(adb_DescribePublicAddressesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_DescribePublicAddressesResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "DescribePublicAddresses|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _describePublicAddresses ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusCC_DescribePublicAddresses( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_DescribePublicAddresses_t* _describePublicAddresses, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribePublicAddressesResponse_t* _describePublicAddressesResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusCC_DescribePublicAddresses_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_DescribePublicAddresses_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusCC_DescribePublicAddresses_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_DescribePublicAddresses_serialize(_describePublicAddresses, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#DescribePublicAddresses"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#DescribePublicAddresses"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_DescribePublicAddresses); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_DescribePublicAddresses); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusCC_RebootInstances_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_RebootInstancesResponse_t* _rebootInstancesResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_RebootInstances(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusCC_RebootInstances_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_RebootInstances_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_RebootInstances(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_RebootInstancesResponse_t* _rebootInstancesResponse, void *data); ++ struct axis2_stub_EucalyptusCC_RebootInstances_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_RebootInstancesResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_RebootInstances_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_RebootInstancesResponse_create(env); ++ ++ if(adb_RebootInstancesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_RebootInstancesResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "RebootInstances|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _rebootInstances ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusCC_RebootInstances( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_RebootInstances_t* _rebootInstances, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_RebootInstancesResponse_t* _rebootInstancesResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusCC_RebootInstances_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_RebootInstances_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusCC_RebootInstances_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_RebootInstances_serialize(_rebootInstances, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#RebootInstances"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#RebootInstances"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_RebootInstances); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_RebootInstances); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusCC_GetConsoleOutput_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_GetConsoleOutputResponse_t* _getConsoleOutputResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_GetConsoleOutput(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusCC_GetConsoleOutput_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_GetConsoleOutput_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_GetConsoleOutput(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_GetConsoleOutputResponse_t* _getConsoleOutputResponse, void *data); ++ struct axis2_stub_EucalyptusCC_GetConsoleOutput_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_GetConsoleOutputResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_GetConsoleOutput_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_GetConsoleOutputResponse_create(env); ++ ++ if(adb_GetConsoleOutputResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_GetConsoleOutputResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "GetConsoleOutput|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _getConsoleOutput ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusCC_GetConsoleOutput( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_GetConsoleOutput_t* _getConsoleOutput, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_GetConsoleOutputResponse_t* _getConsoleOutputResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusCC_GetConsoleOutput_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_GetConsoleOutput_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusCC_GetConsoleOutput_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_GetConsoleOutput_serialize(_getConsoleOutput, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#GetConsoleOutput"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#GetConsoleOutput"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_GetConsoleOutput); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_GetConsoleOutput); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusCC_UnassignAddress_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_UnassignAddressResponse_t* _unassignAddressResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_UnassignAddress(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusCC_UnassignAddress_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_UnassignAddress_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_UnassignAddress(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_UnassignAddressResponse_t* _unassignAddressResponse, void *data); ++ struct axis2_stub_EucalyptusCC_UnassignAddress_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_UnassignAddressResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_UnassignAddress_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_UnassignAddressResponse_create(env); ++ ++ if(adb_UnassignAddressResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_UnassignAddressResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "UnassignAddress|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _unassignAddress ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusCC_UnassignAddress( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_UnassignAddress_t* _unassignAddress, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_UnassignAddressResponse_t* _unassignAddressResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusCC_UnassignAddress_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_UnassignAddress_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusCC_UnassignAddress_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_UnassignAddress_serialize(_unassignAddress, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#UnassignAddress"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#UnassignAddress"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_UnassignAddress); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_UnassignAddress); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusCC_TerminateInstances_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_TerminateInstancesResponse_t* _terminateInstancesResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_TerminateInstances(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusCC_TerminateInstances_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_TerminateInstances_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_TerminateInstances(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_TerminateInstancesResponse_t* _terminateInstancesResponse, void *data); ++ struct axis2_stub_EucalyptusCC_TerminateInstances_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_TerminateInstancesResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_TerminateInstances_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_TerminateInstancesResponse_create(env); ++ ++ if(adb_TerminateInstancesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_TerminateInstancesResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "TerminateInstances|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _terminateInstances ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusCC_TerminateInstances( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_TerminateInstances_t* _terminateInstances, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_TerminateInstancesResponse_t* _terminateInstancesResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusCC_TerminateInstances_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_TerminateInstances_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusCC_TerminateInstances_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_TerminateInstances_serialize(_terminateInstances, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#TerminateInstances"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#TerminateInstances"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_TerminateInstances); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_TerminateInstances); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusCC_DetachVolume_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DetachVolumeResponse_t* _detachVolumeResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_DetachVolume(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusCC_DetachVolume_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_DetachVolume_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_DetachVolume(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DetachVolumeResponse_t* _detachVolumeResponse, void *data); ++ struct axis2_stub_EucalyptusCC_DetachVolume_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_DetachVolumeResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_DetachVolume_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_DetachVolumeResponse_create(env); ++ ++ if(adb_DetachVolumeResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_DetachVolumeResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "DetachVolume|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _detachVolume ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusCC_DetachVolume( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_DetachVolume_t* _detachVolume, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DetachVolumeResponse_t* _detachVolumeResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusCC_DetachVolume_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_DetachVolume_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusCC_DetachVolume_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_DetachVolume_serialize(_detachVolume, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#DetachVolume"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#DetachVolume"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_DetachVolume); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_DetachVolume); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusCC_AttachVolume_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_AttachVolumeResponse_t* _attachVolumeResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_AttachVolume(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusCC_AttachVolume_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_AttachVolume_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_AttachVolume(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_AttachVolumeResponse_t* _attachVolumeResponse, void *data); ++ struct axis2_stub_EucalyptusCC_AttachVolume_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_AttachVolumeResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_AttachVolume_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_AttachVolumeResponse_create(env); ++ ++ if(adb_AttachVolumeResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_AttachVolumeResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "AttachVolume|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _attachVolume ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusCC_AttachVolume( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_AttachVolume_t* _attachVolume, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_AttachVolumeResponse_t* _attachVolumeResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusCC_AttachVolume_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_AttachVolume_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusCC_AttachVolume_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_AttachVolume_serialize(_attachVolume, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#AttachVolume"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#AttachVolume"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_AttachVolume); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_AttachVolume); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusCC_RunInstances_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_RunInstancesResponse_t* _runInstancesResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_RunInstances(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusCC_RunInstances_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_RunInstances_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_RunInstances(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_RunInstancesResponse_t* _runInstancesResponse, void *data); ++ struct axis2_stub_EucalyptusCC_RunInstances_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_RunInstancesResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_RunInstances_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_RunInstancesResponse_create(env); ++ ++ if(adb_RunInstancesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_RunInstancesResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "RunInstances|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _runInstances ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusCC_RunInstances( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_RunInstances_t* _runInstances, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_RunInstancesResponse_t* _runInstancesResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusCC_RunInstances_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusCC_RunInstances_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusCC_RunInstances_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_RunInstances_serialize(_runInstances, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusCC#RunInstances"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusCC#RunInstances"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_RunInstances); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_RunInstances); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ ++ /** ++ * function to free any soap input headers ++ */ ++ ++ ++ ++ /** ++ * function to free any soap output headers ++ */ ++ ++ + +=== added file 'cluster/generated/axis2_stub_EucalyptusCC.h' +--- old/cluster/generated/axis2_stub_EucalyptusCC.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/axis2_stub_EucalyptusCC.h 2010-01-05 01:00:41 +0000 +@@ -0,0 +1,685 @@ ++ ++ ++ /** ++ * axis2_stub_EucalyptusCC.h ++ * ++ * This file was auto-generated from WSDL for "EucalyptusCC|http://eucalyptus.ucsb.edu/" service ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:24:30 EDT) ++ */ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ ++ #include "adb_DescribeInstances.h" ++ ++ #include "adb_DescribeInstancesResponse.h" ++ ++ #include "adb_ConfigureNetwork.h" ++ ++ #include "adb_ConfigureNetworkResponse.h" ++ ++ #include "adb_DescribeResources.h" ++ ++ #include "adb_DescribeResourcesResponse.h" ++ ++ #include "adb_StartNetwork.h" ++ ++ #include "adb_StartNetworkResponse.h" ++ ++ #include "adb_StopNetwork.h" ++ ++ #include "adb_StopNetworkResponse.h" ++ ++ #include "adb_DescribeNetworks.h" ++ ++ #include "adb_DescribeNetworksResponse.h" ++ ++ #include "adb_AssignAddress.h" ++ ++ #include "adb_AssignAddressResponse.h" ++ ++ #include "adb_DescribePublicAddresses.h" ++ ++ #include "adb_DescribePublicAddressesResponse.h" ++ ++ #include "adb_RebootInstances.h" ++ ++ #include "adb_RebootInstancesResponse.h" ++ ++ #include "adb_GetConsoleOutput.h" ++ ++ #include "adb_GetConsoleOutputResponse.h" ++ ++ #include "adb_UnassignAddress.h" ++ ++ #include "adb_UnassignAddressResponse.h" ++ ++ #include "adb_TerminateInstances.h" ++ ++ #include "adb_TerminateInstancesResponse.h" ++ ++ #include "adb_DetachVolume.h" ++ ++ #include "adb_DetachVolumeResponse.h" ++ ++ #include "adb_AttachVolume.h" ++ ++ #include "adb_AttachVolumeResponse.h" ++ ++ #include "adb_RunInstances.h" ++ ++ #include "adb_RunInstancesResponse.h" ++ ++ ++ #ifdef __cplusplus ++ extern "C" { ++ #endif ++ ++ /***************** function prototypes - for header file *************/ ++ /** ++ * axis2_stub_create_EucalyptusCC ++ * Create and return the stub with services populated ++ * @param env Environment ( mandatory) ++ * @param client_home Axis2/C home ( mandatory ) ++ * @param endpoint_uri Service endpoint uri( optional ) - if NULL default picked from WSDL used ++ * @return Newly created stub object ++ */ ++ axis2_stub_t* ++ axis2_stub_create_EucalyptusCC(const axutil_env_t *env, ++ axis2_char_t *client_home, ++ axis2_char_t *endpoint_uri); ++ /** ++ * axis2_stub_populate_services_for_EucalyptusCC ++ * populate the svc in stub with the service and operations ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ */ ++ void axis2_stub_populate_services_for_EucalyptusCC( axis2_stub_t *stub, const axutil_env_t *env); ++ /** ++ * axis2_stub_get_endpoint_uri_of_EucalyptusCC ++ * Return the endpoint URI picked from WSDL ++ * @param env environment ( mandatory) ++ * @return The endpoint picked from WSDL ++ */ ++ axis2_char_t * ++ axis2_stub_get_endpoint_uri_of_EucalyptusCC(const axutil_env_t *env); ++ ++ ++ /** ++ * Auto generated function declaration ++ * for "DescribeInstances|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _describeInstances ++ * ++ * @return adb_DescribeInstancesResponse_t* ++ */ ++ ++ ++ adb_DescribeInstancesResponse_t* ++ axis2_stub_op_EucalyptusCC_DescribeInstances( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_DescribeInstances_t* _describeInstances); ++ ++ /** ++ * Auto generated function declaration ++ * for "ConfigureNetwork|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _configureNetwork ++ * ++ * @return adb_ConfigureNetworkResponse_t* ++ */ ++ ++ ++ adb_ConfigureNetworkResponse_t* ++ axis2_stub_op_EucalyptusCC_ConfigureNetwork( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ConfigureNetwork_t* _configureNetwork); ++ ++ /** ++ * Auto generated function declaration ++ * for "DescribeResources|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _describeResources ++ * ++ * @return adb_DescribeResourcesResponse_t* ++ */ ++ ++ ++ adb_DescribeResourcesResponse_t* ++ axis2_stub_op_EucalyptusCC_DescribeResources( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_DescribeResources_t* _describeResources); ++ ++ /** ++ * Auto generated function declaration ++ * for "StartNetwork|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _startNetwork ++ * ++ * @return adb_StartNetworkResponse_t* ++ */ ++ ++ ++ adb_StartNetworkResponse_t* ++ axis2_stub_op_EucalyptusCC_StartNetwork( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_StartNetwork_t* _startNetwork); ++ ++ /** ++ * Auto generated function declaration ++ * for "StopNetwork|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _stopNetwork ++ * ++ * @return adb_StopNetworkResponse_t* ++ */ ++ ++ ++ adb_StopNetworkResponse_t* ++ axis2_stub_op_EucalyptusCC_StopNetwork( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_StopNetwork_t* _stopNetwork); ++ ++ /** ++ * Auto generated function declaration ++ * for "DescribeNetworks|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _describeNetworks ++ * ++ * @return adb_DescribeNetworksResponse_t* ++ */ ++ ++ ++ adb_DescribeNetworksResponse_t* ++ axis2_stub_op_EucalyptusCC_DescribeNetworks( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_DescribeNetworks_t* _describeNetworks); ++ ++ /** ++ * Auto generated function declaration ++ * for "AssignAddress|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _assignAddress ++ * ++ * @return adb_AssignAddressResponse_t* ++ */ ++ ++ ++ adb_AssignAddressResponse_t* ++ axis2_stub_op_EucalyptusCC_AssignAddress( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_AssignAddress_t* _assignAddress); ++ ++ /** ++ * Auto generated function declaration ++ * for "DescribePublicAddresses|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _describePublicAddresses ++ * ++ * @return adb_DescribePublicAddressesResponse_t* ++ */ ++ ++ ++ adb_DescribePublicAddressesResponse_t* ++ axis2_stub_op_EucalyptusCC_DescribePublicAddresses( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_DescribePublicAddresses_t* _describePublicAddresses); ++ ++ /** ++ * Auto generated function declaration ++ * for "RebootInstances|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _rebootInstances ++ * ++ * @return adb_RebootInstancesResponse_t* ++ */ ++ ++ ++ adb_RebootInstancesResponse_t* ++ axis2_stub_op_EucalyptusCC_RebootInstances( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_RebootInstances_t* _rebootInstances); ++ ++ /** ++ * Auto generated function declaration ++ * for "GetConsoleOutput|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _getConsoleOutput ++ * ++ * @return adb_GetConsoleOutputResponse_t* ++ */ ++ ++ ++ adb_GetConsoleOutputResponse_t* ++ axis2_stub_op_EucalyptusCC_GetConsoleOutput( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_GetConsoleOutput_t* _getConsoleOutput); ++ ++ /** ++ * Auto generated function declaration ++ * for "UnassignAddress|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _unassignAddress ++ * ++ * @return adb_UnassignAddressResponse_t* ++ */ ++ ++ ++ adb_UnassignAddressResponse_t* ++ axis2_stub_op_EucalyptusCC_UnassignAddress( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_UnassignAddress_t* _unassignAddress); ++ ++ /** ++ * Auto generated function declaration ++ * for "TerminateInstances|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _terminateInstances ++ * ++ * @return adb_TerminateInstancesResponse_t* ++ */ ++ ++ ++ adb_TerminateInstancesResponse_t* ++ axis2_stub_op_EucalyptusCC_TerminateInstances( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_TerminateInstances_t* _terminateInstances); ++ ++ /** ++ * Auto generated function declaration ++ * for "DetachVolume|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _detachVolume ++ * ++ * @return adb_DetachVolumeResponse_t* ++ */ ++ ++ ++ adb_DetachVolumeResponse_t* ++ axis2_stub_op_EucalyptusCC_DetachVolume( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_DetachVolume_t* _detachVolume); ++ ++ /** ++ * Auto generated function declaration ++ * for "AttachVolume|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _attachVolume ++ * ++ * @return adb_AttachVolumeResponse_t* ++ */ ++ ++ ++ adb_AttachVolumeResponse_t* ++ axis2_stub_op_EucalyptusCC_AttachVolume( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_AttachVolume_t* _attachVolume); ++ ++ /** ++ * Auto generated function declaration ++ * for "RunInstances|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _runInstances ++ * ++ * @return adb_RunInstancesResponse_t* ++ */ ++ ++ ++ adb_RunInstancesResponse_t* ++ axis2_stub_op_EucalyptusCC_RunInstances( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_RunInstances_t* _runInstances); ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "DescribeInstances|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _describeInstances ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusCC_DescribeInstances( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_DescribeInstances_t* _describeInstances, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribeInstancesResponse_t* _describeInstancesResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "ConfigureNetwork|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _configureNetwork ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusCC_ConfigureNetwork( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ConfigureNetwork_t* _configureNetwork, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ConfigureNetworkResponse_t* _configureNetworkResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "DescribeResources|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _describeResources ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusCC_DescribeResources( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_DescribeResources_t* _describeResources, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribeResourcesResponse_t* _describeResourcesResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "StartNetwork|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _startNetwork ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusCC_StartNetwork( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_StartNetwork_t* _startNetwork, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_StartNetworkResponse_t* _startNetworkResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "StopNetwork|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _stopNetwork ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusCC_StopNetwork( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_StopNetwork_t* _stopNetwork, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_StopNetworkResponse_t* _stopNetworkResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "DescribeNetworks|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _describeNetworks ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusCC_DescribeNetworks( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_DescribeNetworks_t* _describeNetworks, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribeNetworksResponse_t* _describeNetworksResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "AssignAddress|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _assignAddress ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusCC_AssignAddress( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_AssignAddress_t* _assignAddress, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_AssignAddressResponse_t* _assignAddressResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "DescribePublicAddresses|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _describePublicAddresses ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusCC_DescribePublicAddresses( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_DescribePublicAddresses_t* _describePublicAddresses, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribePublicAddressesResponse_t* _describePublicAddressesResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "RebootInstances|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _rebootInstances ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusCC_RebootInstances( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_RebootInstances_t* _rebootInstances, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_RebootInstancesResponse_t* _rebootInstancesResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "GetConsoleOutput|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _getConsoleOutput ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusCC_GetConsoleOutput( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_GetConsoleOutput_t* _getConsoleOutput, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_GetConsoleOutputResponse_t* _getConsoleOutputResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "UnassignAddress|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _unassignAddress ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusCC_UnassignAddress( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_UnassignAddress_t* _unassignAddress, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_UnassignAddressResponse_t* _unassignAddressResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "TerminateInstances|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _terminateInstances ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusCC_TerminateInstances( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_TerminateInstances_t* _terminateInstances, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_TerminateInstancesResponse_t* _terminateInstancesResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "DetachVolume|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _detachVolume ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusCC_DetachVolume( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_DetachVolume_t* _detachVolume, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DetachVolumeResponse_t* _detachVolumeResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "AttachVolume|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _attachVolume ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusCC_AttachVolume( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_AttachVolume_t* _attachVolume, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_AttachVolumeResponse_t* _attachVolumeResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "RunInstances|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _runInstances ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusCC_RunInstances( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_RunInstances_t* _runInstances, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_RunInstancesResponse_t* _runInstancesResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ ++ /** ++ * function to free any soap input headers ++ * @param env environment ( mandatory) ++ */ ++ ++ ++ /** ++ * function to free any soap output headers ++ * @param env environment ( mandatory) ++ */ ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ + +=== added file 'cluster/generated/axis2_stub_EucalyptusNC.c' +--- old/cluster/generated/axis2_stub_EucalyptusNC.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/axis2_stub_EucalyptusNC.c 2010-01-05 01:00:45 +0000 +@@ -0,0 +1,3041 @@ ++ ++ ++ /** ++ * axis2_stub_EucalyptusNC.c ++ * ++ * This file was auto-generated from WSDL for "EucalyptusNC|http://eucalyptus.ucsb.edu/" service ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:24:30 EDT) ++ */ ++ ++ #include "axis2_stub_EucalyptusNC.h" ++ #include ++ ++ /** ++ * axis2_stub_EucalyptusNC C implementation ++ */ ++ ++ axis2_stub_t* ++ axis2_stub_create_EucalyptusNC(const axutil_env_t *env, ++ axis2_char_t *client_home, ++ axis2_char_t *endpoint_uri) ++ { ++ axis2_stub_t *stub = NULL; ++ axis2_endpoint_ref_t *endpoint_ref = NULL; ++ AXIS2_FUNC_PARAM_CHECK (client_home, env, NULL) ++ ++ if (NULL == endpoint_uri) ++ { ++ endpoint_uri = axis2_stub_get_endpoint_uri_of_EucalyptusNC(env); ++ } ++ ++ endpoint_ref = axis2_endpoint_ref_create(env, endpoint_uri); ++ ++ stub = axis2_stub_create_with_endpoint_ref_and_client_home (env, endpoint_ref, client_home); ++ ++ if (NULL == stub) ++ { ++ if(NULL != endpoint_ref) ++ { ++ axis2_endpoint_ref_free(endpoint_ref, env); ++ } ++ return NULL; ++ } ++ ++ ++ axis2_stub_populate_services_for_EucalyptusNC(stub, env); ++ return stub; ++ } ++ ++ ++ void ++ axis2_stub_populate_services_for_EucalyptusNC(axis2_stub_t *stub, const axutil_env_t *env) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axutil_qname_t *svc_qname = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axis2_svc_t *svc = NULL; ++ axis2_op_t *op = NULL; ++ axis2_op_t *annon_op = NULL; ++ axis2_msg_t *msg_out = NULL; ++ axis2_msg_t *msg_in = NULL; ++ axis2_msg_t *msg_out_fault = NULL; ++ axis2_msg_t *msg_in_fault = NULL; ++ ++ ++ /* Modifying the Service */ ++ svc_client = axis2_stub_get_svc_client (stub, env ); ++ svc = (axis2_svc_t*)axis2_svc_client_get_svc( svc_client, env ); ++ ++ annon_op = axis2_svc_get_op_with_name(svc, env, AXIS2_ANON_OUT_IN_OP); ++ msg_out = axis2_op_get_msg(annon_op, env, AXIS2_MSG_OUT); ++ msg_in = axis2_op_get_msg(annon_op, env, AXIS2_MSG_IN); ++ msg_out_fault = axis2_op_get_msg(annon_op, env, AXIS2_MSG_OUT_FAULT); ++ msg_in_fault = axis2_op_get_msg(annon_op, env, AXIS2_MSG_IN_FAULT); ++ ++ svc_qname = axutil_qname_create(env,"EucalyptusNC" ,NULL, NULL); ++ axis2_svc_set_qname (svc, env, svc_qname); ++ ++ /* creating the operations*/ ++ ++ ++ op_qname = axutil_qname_create(env, ++ "ncRunInstance" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "ncRebootInstance" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "ncGetConsoleOutput" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "ncDetachVolume" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "ncDescribeInstances" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "ncAttachVolume" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "ncPowerDown" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "ncDescribeResource" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "ncTerminateInstance" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "ncStartNetwork" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ } ++ ++ /** ++ *return end point picked from wsdl ++ */ ++ axis2_char_t* ++ axis2_stub_get_endpoint_uri_of_EucalyptusNC( const axutil_env_t *env ) ++ { ++ axis2_char_t *endpoint_uri = NULL; ++ /* set the address from here */ ++ ++ endpoint_uri = "http://spinner.cs.ucsb.edu:9090/axis2/services/EucalyptusNC"; ++ ++ return endpoint_uri; ++ } ++ ++ ++ ++ /** ++ * auto generated method signature ++ * for "ncRunInstance|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _ncRunInstance ++ * ++ * @return adb_ncRunInstanceResponse_t* ++ */ ++ adb_ncRunInstanceResponse_t* ++ axis2_stub_op_EucalyptusNC_ncRunInstance( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncRunInstance_t* _ncRunInstance) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_ncRunInstanceResponse_t* ret_val = NULL; ++ ++ payload = adb_ncRunInstance_serialize(_ncRunInstance, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncRunInstance"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncRunInstance"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_ncRunInstanceResponse_create(env); ++ ++ if(adb_ncRunInstanceResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_ncRunInstanceResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncRunInstanceResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "ncRebootInstance|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _ncRebootInstance ++ * ++ * @return adb_ncRebootInstanceResponse_t* ++ */ ++ adb_ncRebootInstanceResponse_t* ++ axis2_stub_op_EucalyptusNC_ncRebootInstance( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncRebootInstance_t* _ncRebootInstance) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_ncRebootInstanceResponse_t* ret_val = NULL; ++ ++ payload = adb_ncRebootInstance_serialize(_ncRebootInstance, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncRebootInstance"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncRebootInstance"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_ncRebootInstanceResponse_create(env); ++ ++ if(adb_ncRebootInstanceResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_ncRebootInstanceResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncRebootInstanceResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "ncGetConsoleOutput|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _ncGetConsoleOutput ++ * ++ * @return adb_ncGetConsoleOutputResponse_t* ++ */ ++ adb_ncGetConsoleOutputResponse_t* ++ axis2_stub_op_EucalyptusNC_ncGetConsoleOutput( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_ncGetConsoleOutputResponse_t* ret_val = NULL; ++ ++ payload = adb_ncGetConsoleOutput_serialize(_ncGetConsoleOutput, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncGetConsoleOutput"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncGetConsoleOutput"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_ncGetConsoleOutputResponse_create(env); ++ ++ if(adb_ncGetConsoleOutputResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_ncGetConsoleOutputResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncGetConsoleOutputResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "ncDetachVolume|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _ncDetachVolume ++ * ++ * @return adb_ncDetachVolumeResponse_t* ++ */ ++ adb_ncDetachVolumeResponse_t* ++ axis2_stub_op_EucalyptusNC_ncDetachVolume( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncDetachVolume_t* _ncDetachVolume) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_ncDetachVolumeResponse_t* ret_val = NULL; ++ ++ payload = adb_ncDetachVolume_serialize(_ncDetachVolume, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncDetachVolume"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncDetachVolume"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_ncDetachVolumeResponse_create(env); ++ ++ if(adb_ncDetachVolumeResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_ncDetachVolumeResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncDetachVolumeResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "ncDescribeInstances|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _ncDescribeInstances ++ * ++ * @return adb_ncDescribeInstancesResponse_t* ++ */ ++ adb_ncDescribeInstancesResponse_t* ++ axis2_stub_op_EucalyptusNC_ncDescribeInstances( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncDescribeInstances_t* _ncDescribeInstances) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_ncDescribeInstancesResponse_t* ret_val = NULL; ++ ++ payload = adb_ncDescribeInstances_serialize(_ncDescribeInstances, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncDescribeInstances"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncDescribeInstances"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_ncDescribeInstancesResponse_create(env); ++ ++ if(adb_ncDescribeInstancesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_ncDescribeInstancesResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncDescribeInstancesResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "ncAttachVolume|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _ncAttachVolume ++ * ++ * @return adb_ncAttachVolumeResponse_t* ++ */ ++ adb_ncAttachVolumeResponse_t* ++ axis2_stub_op_EucalyptusNC_ncAttachVolume( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncAttachVolume_t* _ncAttachVolume) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_ncAttachVolumeResponse_t* ret_val = NULL; ++ ++ payload = adb_ncAttachVolume_serialize(_ncAttachVolume, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncAttachVolume"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncAttachVolume"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_ncAttachVolumeResponse_create(env); ++ ++ if(adb_ncAttachVolumeResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_ncAttachVolumeResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncAttachVolumeResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "ncPowerDown|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _ncPowerDown ++ * ++ * @return adb_ncPowerDownResponse_t* ++ */ ++ adb_ncPowerDownResponse_t* ++ axis2_stub_op_EucalyptusNC_ncPowerDown( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncPowerDown_t* _ncPowerDown) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_ncPowerDownResponse_t* ret_val = NULL; ++ ++ payload = adb_ncPowerDown_serialize(_ncPowerDown, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncPowerDown"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncPowerDown"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_ncPowerDownResponse_create(env); ++ ++ if(adb_ncPowerDownResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_ncPowerDownResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncPowerDownResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "ncDescribeResource|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _ncDescribeResource ++ * ++ * @return adb_ncDescribeResourceResponse_t* ++ */ ++ adb_ncDescribeResourceResponse_t* ++ axis2_stub_op_EucalyptusNC_ncDescribeResource( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncDescribeResource_t* _ncDescribeResource) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_ncDescribeResourceResponse_t* ret_val = NULL; ++ ++ payload = adb_ncDescribeResource_serialize(_ncDescribeResource, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncDescribeResource"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncDescribeResource"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_ncDescribeResourceResponse_create(env); ++ ++ if(adb_ncDescribeResourceResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_ncDescribeResourceResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncDescribeResourceResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "ncTerminateInstance|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _ncTerminateInstance ++ * ++ * @return adb_ncTerminateInstanceResponse_t* ++ */ ++ adb_ncTerminateInstanceResponse_t* ++ axis2_stub_op_EucalyptusNC_ncTerminateInstance( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncTerminateInstance_t* _ncTerminateInstance) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_ncTerminateInstanceResponse_t* ret_val = NULL; ++ ++ payload = adb_ncTerminateInstance_serialize(_ncTerminateInstance, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncTerminateInstance"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncTerminateInstance"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_ncTerminateInstanceResponse_create(env); ++ ++ if(adb_ncTerminateInstanceResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_ncTerminateInstanceResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncTerminateInstanceResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "ncStartNetwork|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _ncStartNetwork ++ * ++ * @return adb_ncStartNetworkResponse_t* ++ */ ++ adb_ncStartNetworkResponse_t* ++ axis2_stub_op_EucalyptusNC_ncStartNetwork( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncStartNetwork_t* _ncStartNetwork) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_ncStartNetworkResponse_t* ret_val = NULL; ++ ++ payload = adb_ncStartNetwork_serialize(_ncStartNetwork, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncStartNetwork"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncStartNetwork"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_ncStartNetworkResponse_create(env); ++ ++ if(adb_ncStartNetworkResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_ncStartNetworkResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncStartNetworkResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ ++ struct axis2_stub_EucalyptusNC_ncRunInstance_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusNC_ncRunInstance(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusNC_ncRunInstance_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncRunInstance_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusNC_ncRunInstance(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, void *data); ++ struct axis2_stub_EucalyptusNC_ncRunInstance_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_ncRunInstanceResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncRunInstance_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_ncRunInstanceResponse_create(env); ++ ++ if(adb_ncRunInstanceResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_ncRunInstanceResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "ncRunInstance|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _ncRunInstance ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusNC_ncRunInstance( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncRunInstance_t* _ncRunInstance, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusNC_ncRunInstance_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncRunInstance_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusNC_ncRunInstance_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_ncRunInstance_serialize(_ncRunInstance, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncRunInstance"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncRunInstance"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusNC_ncRunInstance); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusNC_ncRunInstance); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusNC_ncRebootInstance_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusNC_ncRebootInstance(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusNC_ncRebootInstance_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncRebootInstance_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusNC_ncRebootInstance(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, void *data); ++ struct axis2_stub_EucalyptusNC_ncRebootInstance_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_ncRebootInstanceResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncRebootInstance_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_ncRebootInstanceResponse_create(env); ++ ++ if(adb_ncRebootInstanceResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_ncRebootInstanceResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "ncRebootInstance|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _ncRebootInstance ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusNC_ncRebootInstance( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusNC_ncRebootInstance_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncRebootInstance_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusNC_ncRebootInstance_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_ncRebootInstance_serialize(_ncRebootInstance, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncRebootInstance"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncRebootInstance"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusNC_ncRebootInstance); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusNC_ncRebootInstance); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusNC_ncGetConsoleOutput_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusNC_ncGetConsoleOutput(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusNC_ncGetConsoleOutput_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncGetConsoleOutput_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusNC_ncGetConsoleOutput(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, void *data); ++ struct axis2_stub_EucalyptusNC_ncGetConsoleOutput_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_ncGetConsoleOutputResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncGetConsoleOutput_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_ncGetConsoleOutputResponse_create(env); ++ ++ if(adb_ncGetConsoleOutputResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_ncGetConsoleOutputResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "ncGetConsoleOutput|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _ncGetConsoleOutput ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusNC_ncGetConsoleOutput( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusNC_ncGetConsoleOutput_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncGetConsoleOutput_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusNC_ncGetConsoleOutput_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_ncGetConsoleOutput_serialize(_ncGetConsoleOutput, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncGetConsoleOutput"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncGetConsoleOutput"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusNC_ncGetConsoleOutput); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusNC_ncGetConsoleOutput); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusNC_ncDetachVolume_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusNC_ncDetachVolume(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusNC_ncDetachVolume_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncDetachVolume_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusNC_ncDetachVolume(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, void *data); ++ struct axis2_stub_EucalyptusNC_ncDetachVolume_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_ncDetachVolumeResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncDetachVolume_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_ncDetachVolumeResponse_create(env); ++ ++ if(adb_ncDetachVolumeResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_ncDetachVolumeResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "ncDetachVolume|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _ncDetachVolume ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusNC_ncDetachVolume( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusNC_ncDetachVolume_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncDetachVolume_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusNC_ncDetachVolume_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_ncDetachVolume_serialize(_ncDetachVolume, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncDetachVolume"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncDetachVolume"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusNC_ncDetachVolume); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusNC_ncDetachVolume); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusNC_ncDescribeInstances_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusNC_ncDescribeInstances(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusNC_ncDescribeInstances_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncDescribeInstances_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusNC_ncDescribeInstances(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, void *data); ++ struct axis2_stub_EucalyptusNC_ncDescribeInstances_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_ncDescribeInstancesResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncDescribeInstances_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_ncDescribeInstancesResponse_create(env); ++ ++ if(adb_ncDescribeInstancesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_ncDescribeInstancesResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "ncDescribeInstances|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _ncDescribeInstances ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusNC_ncDescribeInstances( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusNC_ncDescribeInstances_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncDescribeInstances_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusNC_ncDescribeInstances_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_ncDescribeInstances_serialize(_ncDescribeInstances, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncDescribeInstances"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncDescribeInstances"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusNC_ncDescribeInstances); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusNC_ncDescribeInstances); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusNC_ncAttachVolume_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusNC_ncAttachVolume(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusNC_ncAttachVolume_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncAttachVolume_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusNC_ncAttachVolume(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, void *data); ++ struct axis2_stub_EucalyptusNC_ncAttachVolume_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_ncAttachVolumeResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncAttachVolume_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_ncAttachVolumeResponse_create(env); ++ ++ if(adb_ncAttachVolumeResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_ncAttachVolumeResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "ncAttachVolume|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _ncAttachVolume ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusNC_ncAttachVolume( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusNC_ncAttachVolume_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncAttachVolume_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusNC_ncAttachVolume_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_ncAttachVolume_serialize(_ncAttachVolume, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncAttachVolume"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncAttachVolume"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusNC_ncAttachVolume); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusNC_ncAttachVolume); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusNC_ncPowerDown_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncPowerDownResponse_t* _ncPowerDownResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusNC_ncPowerDown(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusNC_ncPowerDown_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncPowerDown_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusNC_ncPowerDown(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncPowerDownResponse_t* _ncPowerDownResponse, void *data); ++ struct axis2_stub_EucalyptusNC_ncPowerDown_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_ncPowerDownResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncPowerDown_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_ncPowerDownResponse_create(env); ++ ++ if(adb_ncPowerDownResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_ncPowerDownResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "ncPowerDown|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _ncPowerDown ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusNC_ncPowerDown( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncPowerDown_t* _ncPowerDown, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncPowerDownResponse_t* _ncPowerDownResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusNC_ncPowerDown_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncPowerDown_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusNC_ncPowerDown_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_ncPowerDown_serialize(_ncPowerDown, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncPowerDown"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncPowerDown"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusNC_ncPowerDown); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusNC_ncPowerDown); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusNC_ncDescribeResource_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusNC_ncDescribeResource(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusNC_ncDescribeResource_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncDescribeResource_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusNC_ncDescribeResource(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, void *data); ++ struct axis2_stub_EucalyptusNC_ncDescribeResource_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_ncDescribeResourceResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncDescribeResource_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_ncDescribeResourceResponse_create(env); ++ ++ if(adb_ncDescribeResourceResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_ncDescribeResourceResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "ncDescribeResource|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _ncDescribeResource ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusNC_ncDescribeResource( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusNC_ncDescribeResource_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncDescribeResource_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusNC_ncDescribeResource_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_ncDescribeResource_serialize(_ncDescribeResource, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncDescribeResource"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncDescribeResource"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusNC_ncDescribeResource); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusNC_ncDescribeResource); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusNC_ncTerminateInstance_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusNC_ncTerminateInstance(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusNC_ncTerminateInstance_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncTerminateInstance_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusNC_ncTerminateInstance(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, void *data); ++ struct axis2_stub_EucalyptusNC_ncTerminateInstance_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_ncTerminateInstanceResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncTerminateInstance_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_ncTerminateInstanceResponse_create(env); ++ ++ if(adb_ncTerminateInstanceResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_ncTerminateInstanceResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "ncTerminateInstance|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _ncTerminateInstance ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusNC_ncTerminateInstance( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusNC_ncTerminateInstance_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncTerminateInstance_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusNC_ncTerminateInstance_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_ncTerminateInstance_serialize(_ncTerminateInstance, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncTerminateInstance"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncTerminateInstance"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusNC_ncTerminateInstance); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusNC_ncTerminateInstance); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusNC_ncStartNetwork_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusNC_ncStartNetwork(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusNC_ncStartNetwork_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncStartNetwork_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusNC_ncStartNetwork(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, void *data); ++ struct axis2_stub_EucalyptusNC_ncStartNetwork_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_ncStartNetworkResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncStartNetwork_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_ncStartNetworkResponse_create(env); ++ ++ if(adb_ncStartNetworkResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_ncStartNetworkResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "ncStartNetwork|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _ncStartNetwork ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusNC_ncStartNetwork( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusNC_ncStartNetwork_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncStartNetwork_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusNC_ncStartNetwork_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_ncStartNetwork_serialize(_ncStartNetwork, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncStartNetwork"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncStartNetwork"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusNC_ncStartNetwork); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusNC_ncStartNetwork); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ ++ /** ++ * function to free any soap input headers ++ */ ++ ++ ++ ++ /** ++ * function to free any soap output headers ++ */ ++ ++ + +=== added file 'cluster/generated/axis2_stub_EucalyptusNC.h' +--- old/cluster/generated/axis2_stub_EucalyptusNC.h 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/axis2_stub_EucalyptusNC.h 2010-01-05 01:00:44 +0000 +@@ -0,0 +1,480 @@ ++ ++ ++ /** ++ * axis2_stub_EucalyptusNC.h ++ * ++ * This file was auto-generated from WSDL for "EucalyptusNC|http://eucalyptus.ucsb.edu/" service ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:24:30 EDT) ++ */ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ ++ #include "adb_ncRunInstance.h" ++ ++ #include "adb_ncRunInstanceResponse.h" ++ ++ #include "adb_ncRebootInstance.h" ++ ++ #include "adb_ncRebootInstanceResponse.h" ++ ++ #include "adb_ncGetConsoleOutput.h" ++ ++ #include "adb_ncGetConsoleOutputResponse.h" ++ ++ #include "adb_ncDetachVolume.h" ++ ++ #include "adb_ncDetachVolumeResponse.h" ++ ++ #include "adb_ncDescribeInstances.h" ++ ++ #include "adb_ncDescribeInstancesResponse.h" ++ ++ #include "adb_ncAttachVolume.h" ++ ++ #include "adb_ncAttachVolumeResponse.h" ++ ++ #include "adb_ncPowerDown.h" ++ ++ #include "adb_ncPowerDownResponse.h" ++ ++ #include "adb_ncDescribeResource.h" ++ ++ #include "adb_ncDescribeResourceResponse.h" ++ ++ #include "adb_ncTerminateInstance.h" ++ ++ #include "adb_ncTerminateInstanceResponse.h" ++ ++ #include "adb_ncStartNetwork.h" ++ ++ #include "adb_ncStartNetworkResponse.h" ++ ++ ++ #ifdef __cplusplus ++ extern "C" { ++ #endif ++ ++ /***************** function prototypes - for header file *************/ ++ /** ++ * axis2_stub_create_EucalyptusNC ++ * Create and return the stub with services populated ++ * @param env Environment ( mandatory) ++ * @param client_home Axis2/C home ( mandatory ) ++ * @param endpoint_uri Service endpoint uri( optional ) - if NULL default picked from WSDL used ++ * @return Newly created stub object ++ */ ++ axis2_stub_t* ++ axis2_stub_create_EucalyptusNC(const axutil_env_t *env, ++ axis2_char_t *client_home, ++ axis2_char_t *endpoint_uri); ++ /** ++ * axis2_stub_populate_services_for_EucalyptusNC ++ * populate the svc in stub with the service and operations ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ */ ++ void axis2_stub_populate_services_for_EucalyptusNC( axis2_stub_t *stub, const axutil_env_t *env); ++ /** ++ * axis2_stub_get_endpoint_uri_of_EucalyptusNC ++ * Return the endpoint URI picked from WSDL ++ * @param env environment ( mandatory) ++ * @return The endpoint picked from WSDL ++ */ ++ axis2_char_t * ++ axis2_stub_get_endpoint_uri_of_EucalyptusNC(const axutil_env_t *env); ++ ++ ++ /** ++ * Auto generated function declaration ++ * for "ncRunInstance|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _ncRunInstance ++ * ++ * @return adb_ncRunInstanceResponse_t* ++ */ ++ ++ ++ adb_ncRunInstanceResponse_t* ++ axis2_stub_op_EucalyptusNC_ncRunInstance( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncRunInstance_t* _ncRunInstance); ++ ++ /** ++ * Auto generated function declaration ++ * for "ncRebootInstance|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _ncRebootInstance ++ * ++ * @return adb_ncRebootInstanceResponse_t* ++ */ ++ ++ ++ adb_ncRebootInstanceResponse_t* ++ axis2_stub_op_EucalyptusNC_ncRebootInstance( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncRebootInstance_t* _ncRebootInstance); ++ ++ /** ++ * Auto generated function declaration ++ * for "ncGetConsoleOutput|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _ncGetConsoleOutput ++ * ++ * @return adb_ncGetConsoleOutputResponse_t* ++ */ ++ ++ ++ adb_ncGetConsoleOutputResponse_t* ++ axis2_stub_op_EucalyptusNC_ncGetConsoleOutput( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput); ++ ++ /** ++ * Auto generated function declaration ++ * for "ncDetachVolume|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _ncDetachVolume ++ * ++ * @return adb_ncDetachVolumeResponse_t* ++ */ ++ ++ ++ adb_ncDetachVolumeResponse_t* ++ axis2_stub_op_EucalyptusNC_ncDetachVolume( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncDetachVolume_t* _ncDetachVolume); ++ ++ /** ++ * Auto generated function declaration ++ * for "ncDescribeInstances|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _ncDescribeInstances ++ * ++ * @return adb_ncDescribeInstancesResponse_t* ++ */ ++ ++ ++ adb_ncDescribeInstancesResponse_t* ++ axis2_stub_op_EucalyptusNC_ncDescribeInstances( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncDescribeInstances_t* _ncDescribeInstances); ++ ++ /** ++ * Auto generated function declaration ++ * for "ncAttachVolume|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _ncAttachVolume ++ * ++ * @return adb_ncAttachVolumeResponse_t* ++ */ ++ ++ ++ adb_ncAttachVolumeResponse_t* ++ axis2_stub_op_EucalyptusNC_ncAttachVolume( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncAttachVolume_t* _ncAttachVolume); ++ ++ /** ++ * Auto generated function declaration ++ * for "ncPowerDown|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _ncPowerDown ++ * ++ * @return adb_ncPowerDownResponse_t* ++ */ ++ ++ ++ adb_ncPowerDownResponse_t* ++ axis2_stub_op_EucalyptusNC_ncPowerDown( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncPowerDown_t* _ncPowerDown); ++ ++ /** ++ * Auto generated function declaration ++ * for "ncDescribeResource|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _ncDescribeResource ++ * ++ * @return adb_ncDescribeResourceResponse_t* ++ */ ++ ++ ++ adb_ncDescribeResourceResponse_t* ++ axis2_stub_op_EucalyptusNC_ncDescribeResource( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncDescribeResource_t* _ncDescribeResource); ++ ++ /** ++ * Auto generated function declaration ++ * for "ncTerminateInstance|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _ncTerminateInstance ++ * ++ * @return adb_ncTerminateInstanceResponse_t* ++ */ ++ ++ ++ adb_ncTerminateInstanceResponse_t* ++ axis2_stub_op_EucalyptusNC_ncTerminateInstance( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncTerminateInstance_t* _ncTerminateInstance); ++ ++ /** ++ * Auto generated function declaration ++ * for "ncStartNetwork|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _ncStartNetwork ++ * ++ * @return adb_ncStartNetworkResponse_t* ++ */ ++ ++ ++ adb_ncStartNetworkResponse_t* ++ axis2_stub_op_EucalyptusNC_ncStartNetwork( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncStartNetwork_t* _ncStartNetwork); ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "ncRunInstance|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _ncRunInstance ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusNC_ncRunInstance( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncRunInstance_t* _ncRunInstance, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "ncRebootInstance|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _ncRebootInstance ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusNC_ncRebootInstance( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "ncGetConsoleOutput|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _ncGetConsoleOutput ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusNC_ncGetConsoleOutput( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "ncDetachVolume|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _ncDetachVolume ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusNC_ncDetachVolume( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "ncDescribeInstances|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _ncDescribeInstances ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusNC_ncDescribeInstances( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "ncAttachVolume|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _ncAttachVolume ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusNC_ncAttachVolume( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "ncPowerDown|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _ncPowerDown ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusNC_ncPowerDown( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncPowerDown_t* _ncPowerDown, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncPowerDownResponse_t* _ncPowerDownResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "ncDescribeResource|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _ncDescribeResource ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusNC_ncDescribeResource( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "ncTerminateInstance|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _ncTerminateInstance ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusNC_ncTerminateInstance( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "ncStartNetwork|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _ncStartNetwork ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusNC_ncStartNetwork( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ ++ /** ++ * function to free any soap input headers ++ * @param env environment ( mandatory) ++ */ ++ ++ ++ /** ++ * function to free any soap output headers ++ * @param env environment ( mandatory) ++ */ ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ + +=== added file 'cluster/generated/axis2_svc_skel_EucalyptusCC.c' +--- old/cluster/generated/axis2_svc_skel_EucalyptusCC.c 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/axis2_svc_skel_EucalyptusCC.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,910 @@ ++ ++ ++ /** ++ * axis2_svc_skel_EucalyptusCC.c ++ * ++ * This file was auto-generated from WSDL for "EucalyptusCC|http://eucalyptus.ucsb.edu/" service ++ * by the Apache Axis2 version: 1.4 Built on : Apr 26, 2008 (06:24:30 EDT) ++ * axis2_svc_skel_EucalyptusCC ++ */ ++ ++ #include "axis2_skel_EucalyptusCC.h" ++ #include ++ #include ++ #include ++ ++ /** ++ * functions prototypes ++ */ ++ ++ /* On fault, handle the fault */ ++ axiom_node_t* AXIS2_CALL ++ axis2_svc_skel_EucalyptusCC_on_fault(axis2_svc_skeleton_t *svc_skeleton, ++ const axutil_env_t *env, axiom_node_t *node); ++ ++ /* Free the service */ ++ int AXIS2_CALL ++ axis2_svc_skel_EucalyptusCC_free(axis2_svc_skeleton_t *svc_skeleton, ++ const axutil_env_t *env); ++ ++ /* This method invokes the right service method */ ++ axiom_node_t* AXIS2_CALL ++ axis2_svc_skel_EucalyptusCC_invoke(axis2_svc_skeleton_t *svc_skeleton, ++ const axutil_env_t *env, ++ axiom_node_t *node, ++ axis2_msg_ctx_t *msg_ctx); ++ ++ /* Initializing the environment */ ++ int AXIS2_CALL ++ axis2_svc_skel_EucalyptusCC_init(axis2_svc_skeleton_t *svc_skeleton, ++ const axutil_env_t *env); ++ ++ /* Create the service */ ++ axis2_svc_skeleton_t* AXIS2_CALL ++ axis2_svc_skel_EucalyptusCC_create(const axutil_env_t *env); ++ ++ static const axis2_svc_skeleton_ops_t axis2_svc_skel_EucalyptusCC_svc_skeleton_ops_var = { ++ axis2_svc_skel_EucalyptusCC_init, ++ axis2_svc_skel_EucalyptusCC_invoke, ++ axis2_svc_skel_EucalyptusCC_on_fault, ++ axis2_svc_skel_EucalyptusCC_free ++ }; ++ ++ ++ /** ++ * Implementations for the functions ++ */ ++ ++ axis2_svc_skeleton_t* AXIS2_CALL ++ axis2_svc_skel_EucalyptusCC_create(const axutil_env_t *env) ++ { ++ axis2_svc_skeleton_t *svc_skeleton = NULL; ++ /* Allocate memory for the structs */ ++ svc_skeleton = (axis2_svc_skeleton_t *)AXIS2_MALLOC(env->allocator, ++ sizeof(axis2_svc_skeleton_t)); ++ ++ svc_skeleton->ops = &axis2_svc_skel_EucalyptusCC_svc_skeleton_ops_var; ++ ++ ++ return svc_skeleton; ++ } ++ ++ ++ int AXIS2_CALL ++ axis2_svc_skel_EucalyptusCC_init(axis2_svc_skeleton_t *svc_skeleton, ++ const axutil_env_t *env) ++ { ++ /* Any initialization stuff of axis2_skel_EucalyptusCC goes here */ ++ return AXIS2_SUCCESS; ++ } ++ ++ int AXIS2_CALL ++ axis2_svc_skel_EucalyptusCC_free(axis2_svc_skeleton_t *svc_skeleton, ++ const axutil_env_t *env) ++ { ++ ++ /* Free the service skeleton */ ++ if (svc_skeleton) ++ { ++ AXIS2_FREE(env->allocator, svc_skeleton); ++ svc_skeleton = NULL; ++ } ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * function to free any soap input headers ++ */ ++ ++ ++ ++ ++ /** ++ * function to free any soap output headers ++ */ ++ ++ ++ ++ ++#include "euca_auth.h" ++ /* ++ * This method invokes the right service method ++ */ ++ axiom_node_t* AXIS2_CALL ++ axis2_svc_skel_EucalyptusCC_invoke(axis2_svc_skeleton_t *svc_skeleton, ++ const axutil_env_t *env, ++ axiom_node_t *content_node, ++ axis2_msg_ctx_t *msg_ctx) ++ { ++ /* depending on the function name invoke the ++ * corresponding method ++ */ ++ ++ axis2_op_ctx_t *operation_ctx = NULL; ++ axis2_op_t *operation = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axis2_char_t *op_name = NULL; ++ axis2_msg_ctx_t *in_msg_ctx = NULL; ++ ++ axiom_soap_envelope_t *req_soap_env = NULL; ++ axiom_soap_header_t *req_soap_header = NULL; ++ axiom_soap_envelope_t *res_soap_env = NULL; ++ axiom_soap_header_t *res_soap_header = NULL; ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_node_t *input_header = NULL; ++ axiom_node_t *output_header = NULL; ++ axiom_node_t *header_base_node = NULL; ++ ++ ++ adb_DescribeInstancesResponse_t* ret_val1 = NULL; ++ adb_DescribeInstances_t* input_val1 = NULL; ++ ++ adb_ConfigureNetworkResponse_t* ret_val2 = NULL; ++ adb_ConfigureNetwork_t* input_val2 = NULL; ++ ++ adb_DescribeResourcesResponse_t* ret_val3 = NULL; ++ adb_DescribeResources_t* input_val3 = NULL; ++ ++ adb_StartNetworkResponse_t* ret_val4 = NULL; ++ adb_StartNetwork_t* input_val4 = NULL; ++ ++ adb_StopNetworkResponse_t* ret_val5 = NULL; ++ adb_StopNetwork_t* input_val5 = NULL; ++ ++ adb_DescribeNetworksResponse_t* ret_val6 = NULL; ++ adb_DescribeNetworks_t* input_val6 = NULL; ++ ++ adb_AssignAddressResponse_t* ret_val7 = NULL; ++ adb_AssignAddress_t* input_val7 = NULL; ++ ++ adb_DescribePublicAddressesResponse_t* ret_val8 = NULL; ++ adb_DescribePublicAddresses_t* input_val8 = NULL; ++ ++ adb_RebootInstancesResponse_t* ret_val9 = NULL; ++ adb_RebootInstances_t* input_val9 = NULL; ++ ++ adb_GetConsoleOutputResponse_t* ret_val10 = NULL; ++ adb_GetConsoleOutput_t* input_val10 = NULL; ++ ++ adb_UnassignAddressResponse_t* ret_val11 = NULL; ++ adb_UnassignAddress_t* input_val11 = NULL; ++ ++ adb_TerminateInstancesResponse_t* ret_val12 = NULL; ++ adb_TerminateInstances_t* input_val12 = NULL; ++ ++ adb_DetachVolumeResponse_t* ret_val13 = NULL; ++ adb_DetachVolume_t* input_val13 = NULL; ++ ++ adb_AttachVolumeResponse_t* ret_val14 = NULL; ++ adb_AttachVolume_t* input_val14 = NULL; ++ ++ adb_RunInstancesResponse_t* ret_val15 = NULL; ++ adb_RunInstances_t* input_val15 = NULL; ++ ++ ++ operation_ctx = axis2_msg_ctx_get_op_ctx(msg_ctx, env); ++ operation = axis2_op_ctx_get_op(operation_ctx, env); ++ op_qname = (axutil_qname_t *)axis2_op_get_qname(operation, env); ++ op_name = axutil_qname_get_localpart(op_qname, env); ++ ++ euca_authenticate(env,msg_ctx,operation_ctx); ++ ++ if (op_name) ++ { ++ ++ ++ if ( axutil_strcmp(op_name, "DescribeInstances") == 0 ) ++ { ++ ++ input_val1 = ++ adb_DescribeInstances_create( env); ++ if( AXIS2_FAILURE == adb_DescribeInstances_deserialize(input_val1, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_DescribeInstances_free(input_val1, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the DescribeInstances_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val1 = axis2_skel_EucalyptusCC_DescribeInstances(env ,input_val1 ); ++ ++ if ( NULL == ret_val1 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from DescribeInstances "); ++ ++ adb_DescribeInstances_free(input_val1, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_DescribeInstancesResponse_serialize(ret_val1, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_DescribeInstancesResponse_free(ret_val1, env); ++ ++ adb_DescribeInstances_free(input_val1, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ ++ if ( axutil_strcmp(op_name, "ConfigureNetwork") == 0 ) ++ { ++ ++ input_val2 = ++ adb_ConfigureNetwork_create( env); ++ if( AXIS2_FAILURE == adb_ConfigureNetwork_deserialize(input_val2, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_ConfigureNetwork_free(input_val2, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ConfigureNetwork_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val2 = axis2_skel_EucalyptusCC_ConfigureNetwork(env ,input_val2 ); ++ ++ if ( NULL == ret_val2 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from ConfigureNetwork "); ++ ++ adb_ConfigureNetwork_free(input_val2, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_ConfigureNetworkResponse_serialize(ret_val2, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_ConfigureNetworkResponse_free(ret_val2, env); ++ ++ adb_ConfigureNetwork_free(input_val2, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ ++ if ( axutil_strcmp(op_name, "DescribeResources") == 0 ) ++ { ++ ++ input_val3 = ++ adb_DescribeResources_create( env); ++ if( AXIS2_FAILURE == adb_DescribeResources_deserialize(input_val3, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_DescribeResources_free(input_val3, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the DescribeResources_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val3 = axis2_skel_EucalyptusCC_DescribeResources(env ,input_val3 ); ++ ++ if ( NULL == ret_val3 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from DescribeResources "); ++ ++ adb_DescribeResources_free(input_val3, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_DescribeResourcesResponse_serialize(ret_val3, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_DescribeResourcesResponse_free(ret_val3, env); ++ ++ adb_DescribeResources_free(input_val3, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ ++ if ( axutil_strcmp(op_name, "StartNetwork") == 0 ) ++ { ++ ++ input_val4 = ++ adb_StartNetwork_create( env); ++ if( AXIS2_FAILURE == adb_StartNetwork_deserialize(input_val4, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_StartNetwork_free(input_val4, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the StartNetwork_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val4 = axis2_skel_EucalyptusCC_StartNetwork(env ,input_val4 ); ++ ++ if ( NULL == ret_val4 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from StartNetwork "); ++ ++ adb_StartNetwork_free(input_val4, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_StartNetworkResponse_serialize(ret_val4, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_StartNetworkResponse_free(ret_val4, env); ++ ++ adb_StartNetwork_free(input_val4, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ ++ if ( axutil_strcmp(op_name, "StopNetwork") == 0 ) ++ { ++ ++ input_val5 = ++ adb_StopNetwork_create( env); ++ if( AXIS2_FAILURE == adb_StopNetwork_deserialize(input_val5, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_StopNetwork_free(input_val5, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the StopNetwork_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val5 = axis2_skel_EucalyptusCC_StopNetwork(env ,input_val5 ); ++ ++ if ( NULL == ret_val5 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from StopNetwork "); ++ ++ adb_StopNetwork_free(input_val5, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_StopNetworkResponse_serialize(ret_val5, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_StopNetworkResponse_free(ret_val5, env); ++ ++ adb_StopNetwork_free(input_val5, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ ++ if ( axutil_strcmp(op_name, "DescribeNetworks") == 0 ) ++ { ++ ++ input_val6 = ++ adb_DescribeNetworks_create( env); ++ if( AXIS2_FAILURE == adb_DescribeNetworks_deserialize(input_val6, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_DescribeNetworks_free(input_val6, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the DescribeNetworks_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val6 = axis2_skel_EucalyptusCC_DescribeNetworks(env ,input_val6 ); ++ ++ if ( NULL == ret_val6 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from DescribeNetworks "); ++ ++ adb_DescribeNetworks_free(input_val6, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_DescribeNetworksResponse_serialize(ret_val6, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_DescribeNetworksResponse_free(ret_val6, env); ++ ++ adb_DescribeNetworks_free(input_val6, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ ++ if ( axutil_strcmp(op_name, "AssignAddress") == 0 ) ++ { ++ ++ input_val7 = ++ adb_AssignAddress_create( env); ++ if( AXIS2_FAILURE == adb_AssignAddress_deserialize(input_val7, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_AssignAddress_free(input_val7, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the AssignAddress_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val7 = axis2_skel_EucalyptusCC_AssignAddress(env ,input_val7 ); ++ ++ if ( NULL == ret_val7 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from AssignAddress "); ++ ++ adb_AssignAddress_free(input_val7, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_AssignAddressResponse_serialize(ret_val7, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_AssignAddressResponse_free(ret_val7, env); ++ ++ adb_AssignAddress_free(input_val7, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ ++ if ( axutil_strcmp(op_name, "DescribePublicAddresses") == 0 ) ++ { ++ ++ input_val8 = ++ adb_DescribePublicAddresses_create( env); ++ if( AXIS2_FAILURE == adb_DescribePublicAddresses_deserialize(input_val8, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_DescribePublicAddresses_free(input_val8, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the DescribePublicAddresses_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val8 = axis2_skel_EucalyptusCC_DescribePublicAddresses(env ,input_val8 ); ++ ++ if ( NULL == ret_val8 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from DescribePublicAddresses "); ++ ++ adb_DescribePublicAddresses_free(input_val8, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_DescribePublicAddressesResponse_serialize(ret_val8, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_DescribePublicAddressesResponse_free(ret_val8, env); ++ ++ adb_DescribePublicAddresses_free(input_val8, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ ++ if ( axutil_strcmp(op_name, "RebootInstances") == 0 ) ++ { ++ ++ input_val9 = ++ adb_RebootInstances_create( env); ++ if( AXIS2_FAILURE == adb_RebootInstances_deserialize(input_val9, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_RebootInstances_free(input_val9, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the RebootInstances_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val9 = axis2_skel_EucalyptusCC_RebootInstances(env ,input_val9 ); ++ ++ if ( NULL == ret_val9 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from RebootInstances "); ++ ++ adb_RebootInstances_free(input_val9, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_RebootInstancesResponse_serialize(ret_val9, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_RebootInstancesResponse_free(ret_val9, env); ++ ++ adb_RebootInstances_free(input_val9, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ ++ if ( axutil_strcmp(op_name, "GetConsoleOutput") == 0 ) ++ { ++ ++ input_val10 = ++ adb_GetConsoleOutput_create( env); ++ if( AXIS2_FAILURE == adb_GetConsoleOutput_deserialize(input_val10, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_GetConsoleOutput_free(input_val10, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the GetConsoleOutput_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val10 = axis2_skel_EucalyptusCC_GetConsoleOutput(env ,input_val10 ); ++ ++ if ( NULL == ret_val10 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from GetConsoleOutput "); ++ ++ adb_GetConsoleOutput_free(input_val10, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_GetConsoleOutputResponse_serialize(ret_val10, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_GetConsoleOutputResponse_free(ret_val10, env); ++ ++ adb_GetConsoleOutput_free(input_val10, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ ++ if ( axutil_strcmp(op_name, "UnassignAddress") == 0 ) ++ { ++ ++ input_val11 = ++ adb_UnassignAddress_create( env); ++ if( AXIS2_FAILURE == adb_UnassignAddress_deserialize(input_val11, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_UnassignAddress_free(input_val11, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the UnassignAddress_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val11 = axis2_skel_EucalyptusCC_UnassignAddress(env ,input_val11 ); ++ ++ if ( NULL == ret_val11 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from UnassignAddress "); ++ ++ adb_UnassignAddress_free(input_val11, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_UnassignAddressResponse_serialize(ret_val11, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_UnassignAddressResponse_free(ret_val11, env); ++ ++ adb_UnassignAddress_free(input_val11, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ ++ if ( axutil_strcmp(op_name, "TerminateInstances") == 0 ) ++ { ++ ++ input_val12 = ++ adb_TerminateInstances_create( env); ++ if( AXIS2_FAILURE == adb_TerminateInstances_deserialize(input_val12, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_TerminateInstances_free(input_val12, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the TerminateInstances_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val12 = axis2_skel_EucalyptusCC_TerminateInstances(env ,input_val12 ); ++ ++ if ( NULL == ret_val12 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from TerminateInstances "); ++ ++ adb_TerminateInstances_free(input_val12, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_TerminateInstancesResponse_serialize(ret_val12, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_TerminateInstancesResponse_free(ret_val12, env); ++ ++ adb_TerminateInstances_free(input_val12, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ ++ if ( axutil_strcmp(op_name, "DetachVolume") == 0 ) ++ { ++ ++ input_val13 = ++ adb_DetachVolume_create( env); ++ if( AXIS2_FAILURE == adb_DetachVolume_deserialize(input_val13, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_DetachVolume_free(input_val13, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the DetachVolume_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val13 = axis2_skel_EucalyptusCC_DetachVolume(env ,input_val13 ); ++ ++ if ( NULL == ret_val13 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from DetachVolume "); ++ ++ adb_DetachVolume_free(input_val13, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_DetachVolumeResponse_serialize(ret_val13, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_DetachVolumeResponse_free(ret_val13, env); ++ ++ adb_DetachVolume_free(input_val13, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ ++ if ( axutil_strcmp(op_name, "AttachVolume") == 0 ) ++ { ++ ++ input_val14 = ++ adb_AttachVolume_create( env); ++ if( AXIS2_FAILURE == adb_AttachVolume_deserialize(input_val14, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_AttachVolume_free(input_val14, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the AttachVolume_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val14 = axis2_skel_EucalyptusCC_AttachVolume(env ,input_val14 ); ++ ++ if ( NULL == ret_val14 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from AttachVolume "); ++ ++ adb_AttachVolume_free(input_val14, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_AttachVolumeResponse_serialize(ret_val14, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_AttachVolumeResponse_free(ret_val14, env); ++ ++ adb_AttachVolume_free(input_val14, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ ++ if ( axutil_strcmp(op_name, "RunInstances") == 0 ) ++ { ++ ++ input_val15 = ++ adb_RunInstances_create( env); ++ if( AXIS2_FAILURE == adb_RunInstances_deserialize(input_val15, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_RunInstances_free(input_val15, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the RunInstances_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val15 = axis2_skel_EucalyptusCC_RunInstances(env ,input_val15 ); ++ ++ if ( NULL == ret_val15 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from RunInstances "); ++ ++ adb_RunInstances_free(input_val15, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_RunInstancesResponse_serialize(ret_val15, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_RunInstancesResponse_free(ret_val15, env); ++ ++ adb_RunInstances_free(input_val15, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ } ++ printf("axis2_svc_skel_EucalyptusCC service ERROR: invalid OM parameters in request\n"); ++ return NULL; ++ } ++ ++ axiom_node_t* AXIS2_CALL ++ axis2_svc_skel_EucalyptusCC_on_fault(axis2_svc_skeleton_t *svc_skeleton, ++ const axutil_env_t *env, axiom_node_t *node) ++ { ++ axiom_node_t *error_node = NULL; ++ axiom_element_t *error_ele = NULL; ++ error_ele = axiom_element_create(env, node, "fault", NULL, ++ &error_node); ++ axiom_element_set_text(error_ele, env, "EucalyptusCC|http://eucalyptus.ucsb.edu/ failed", ++ error_node); ++ return error_node; ++ } ++ ++ ++ /** ++ * Following block distinguish the exposed part of the dll. ++ */ ++ ++ AXIS2_EXTERN int ++ axis2_get_instance(struct axis2_svc_skeleton **inst, ++ const axutil_env_t *env) ++ { ++ *inst = axis2_svc_skel_EucalyptusCC_create(env); ++ ++ if(!(*inst)) ++ { ++ return AXIS2_FAILURE; ++ } ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ AXIS2_EXTERN int ++ axis2_remove_instance(axis2_svc_skeleton_t *inst, ++ const axutil_env_t *env) ++ { ++ axis2_status_t status = AXIS2_FAILURE; ++ if (inst) ++ { ++ status = AXIS2_SVC_SKELETON_FREE(inst, env); ++ } ++ return status; ++ } ++ ++ ++ ++ + +=== added file 'cluster/generated/build.sh' +--- old/cluster/generated/build.sh 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/build.sh 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,11 @@ ++ ++gcc -g -shared -olibEucalyptusCC.so -I $AXIS2C_HOME/include/axis2-1.3.1/ -Isrc -L$AXIS2C_HOME/lib \ ++ -laxutil \ ++ -laxis2_axiom \ ++ -laxis2_engine \ ++ -laxis2_parser \ ++ -lpthread \ ++ -laxis2_http_sender \ ++ -laxis2_http_receiver \ ++ -lguththila \ ++ *.c src/*.c + +=== added file 'cluster/generated/services.xml' +--- old/cluster/generated/services.xml 1970-01-01 00:00:00 +0000 ++++ new/cluster/generated/services.xml 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,52 @@ ++ ++ ++ ++EucalyptusCC ++EucalyptusCC Service ++ ++ ++EucalyptusCC#DescribeInstances ++ ++ ++EucalyptusCC#ConfigureNetwork ++ ++ ++EucalyptusCC#DescribeResources ++ ++ ++EucalyptusCC#StartNetwork ++ ++ ++EucalyptusCC#StopNetwork ++ ++ ++EucalyptusCC#DescribeNetworks ++ ++ ++EucalyptusCC#AssignAddress ++ ++ ++EucalyptusCC#DescribePublicAddresses ++ ++ ++EucalyptusCC#RebootInstances ++ ++ ++EucalyptusCC#GetConsoleOutput ++ ++ ++EucalyptusCC#UnassignAddress ++ ++ ++EucalyptusCC#TerminateInstances ++ ++ ++EucalyptusCC#DetachVolume ++ ++ ++EucalyptusCC#AttachVolume ++ ++ ++EucalyptusCC#RunInstances ++ ++ + +=== added directory 'gatherlog/generated' +=== added file 'gatherlog/generated/adb_GetKeys.c' +--- old/gatherlog/generated/adb_GetKeys.c 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/adb_GetKeys.c 2010-01-05 01:00:28 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_GetKeys.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_GetKeys.h" ++ ++ /* ++ * implmentation of the GetKeys|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_GetKeys ++ { ++ ++ axutil_qname_t* qname; ++ adb_getKeysType_t* property_GetKeys; ++ ++ ++ axis2_bool_t is_valid_GetKeys; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_GetKeys_t* AXIS2_CALL ++ adb_GetKeys_create( ++ const axutil_env_t *env) ++ { ++ adb_GetKeys_t *_GetKeys = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _GetKeys = (adb_GetKeys_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_GetKeys_t)); ++ ++ if(NULL == _GetKeys) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_GetKeys, 0, sizeof(adb_GetKeys_t)); ++ ++ _GetKeys->property_GetKeys = NULL; ++ _GetKeys->is_valid_GetKeys = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "GetKeys", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _GetKeys->qname = qname; ++ ++ ++ return _GetKeys; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_GetKeys_free ( ++ adb_GetKeys_t* _GetKeys, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _GetKeys, AXIS2_FAILURE); ++ ++ adb_GetKeys_reset_GetKeys(_GetKeys, env); ++ ++ if(_GetKeys->qname) ++ { ++ axutil_qname_free (_GetKeys->qname, env); ++ _GetKeys->qname = NULL; ++ } ++ ++ ++ if(_GetKeys) ++ { ++ AXIS2_FREE(env->allocator, _GetKeys); ++ _GetKeys = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_GetKeys_deserialize( ++ adb_GetKeys_t* _GetKeys, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _GetKeys, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for GetKeys : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _GetKeys-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for GetKeys : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_GetKeys-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building GetKeys element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "GetKeys", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_getKeysType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_getKeysType_create(env); ++ ++ status = adb_getKeysType_deserialize((adb_getKeysType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element GetKeys"); ++ } ++ else ++ { ++ status = adb_GetKeys_set_GetKeys(_GetKeys, env, ++ (adb_getKeysType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for GetKeys "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element GetKeys missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_GetKeys_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_GetKeys_declare_parent_namespaces( ++ adb_GetKeys_t* _GetKeys, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_GetKeys_serialize( ++ adb_GetKeys_t* _GetKeys, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _GetKeys, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "GetKeys", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_GetKeys->is_valid_GetKeys) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("GetKeys") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sGetKeys xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("GetKeys"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("GetKeys"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing GetKeys element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sGetKeys", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_getKeysType_serialize(_GetKeys->property_GetKeys, ++ env, current_node, parent_element, ++ adb_getKeysType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for GetKeys. ++ */ ++ adb_getKeysType_t* AXIS2_CALL ++ adb_GetKeys_get_GetKeys( ++ adb_GetKeys_t* _GetKeys, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _GetKeys, NULL); ++ ++ ++ return _GetKeys->property_GetKeys; ++ } ++ ++ /** ++ * setter for GetKeys ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetKeys_set_GetKeys( ++ adb_GetKeys_t* _GetKeys, ++ const axutil_env_t *env, ++ adb_getKeysType_t* arg_GetKeys) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _GetKeys, AXIS2_FAILURE); ++ ++ if(_GetKeys->is_valid_GetKeys && ++ arg_GetKeys == _GetKeys->property_GetKeys) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_GetKeys_reset_GetKeys(_GetKeys, env); ++ ++ ++ if(NULL == arg_GetKeys) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _GetKeys->property_GetKeys = arg_GetKeys; ++ _GetKeys->is_valid_GetKeys = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for GetKeys ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetKeys_reset_GetKeys( ++ adb_GetKeys_t* _GetKeys, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _GetKeys, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_GetKeys->property_GetKeys != NULL) ++ { ++ ++ ++ adb_getKeysType_free(_GetKeys->property_GetKeys, env); ++ _GetKeys->property_GetKeys = NULL; ++ } ++ ++ ++ ++ _GetKeys->is_valid_GetKeys = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether GetKeys is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_GetKeys_is_GetKeys_nil( ++ adb_GetKeys_t* _GetKeys, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _GetKeys, AXIS2_TRUE); ++ ++ return !_GetKeys->is_valid_GetKeys; ++ } ++ ++ /** ++ * Set GetKeys to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetKeys_set_GetKeys_nil( ++ adb_GetKeys_t* _GetKeys, ++ const axutil_env_t *env) ++ { ++ return adb_GetKeys_reset_GetKeys(_GetKeys, env); ++ } ++ ++ ++ + +=== added file 'gatherlog/generated/adb_GetKeys.h' +--- old/gatherlog/generated/adb_GetKeys.h 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/adb_GetKeys.h 2010-01-05 01:00:28 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_GETKEYS_H ++ #define ADB_GETKEYS_H ++ ++ /** ++ * adb_GetKeys.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_GetKeys class ++ */ ++ typedef struct adb_GetKeys adb_GetKeys_t; ++ ++ ++ #include "adb_getKeysType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_GetKeys_t ++ * @param env pointer to environment struct ++ * @return newly created adb_GetKeys_t object ++ */ ++ adb_GetKeys_t* AXIS2_CALL ++ adb_GetKeys_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_GetKeys_t object ++ * @param _GetKeys adb_GetKeys_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetKeys_free ( ++ adb_GetKeys_t* _GetKeys, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for GetKeys. ++ * @param _GetKeys adb_GetKeys_t object ++ * @param env pointer to environment struct ++ * @return adb_getKeysType_t* ++ */ ++ adb_getKeysType_t* AXIS2_CALL ++ adb_GetKeys_get_GetKeys( ++ adb_GetKeys_t* _GetKeys, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for GetKeys. ++ * @param _GetKeys adb_GetKeys_t object ++ * @param env pointer to environment struct ++ * @param arg_GetKeys adb_getKeysType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetKeys_set_GetKeys( ++ adb_GetKeys_t* _GetKeys, ++ const axutil_env_t *env, ++ adb_getKeysType_t* arg_GetKeys); ++ ++ /** ++ * Resetter for GetKeys ++ * @param _GetKeys adb_GetKeys_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetKeys_reset_GetKeys( ++ adb_GetKeys_t* _GetKeys, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether GetKeys is nill ++ * @param _GetKeys adb_GetKeys_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_GetKeys_is_GetKeys_nil( ++ adb_GetKeys_t* _GetKeys, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set GetKeys to nill (currently the same as reset) ++ * @param _GetKeys adb_GetKeys_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetKeys_set_GetKeys_nil( ++ adb_GetKeys_t* _GetKeys, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _GetKeys adb_GetKeys_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetKeys_deserialize( ++ adb_GetKeys_t* _GetKeys, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _GetKeys adb_GetKeys_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_GetKeys_declare_parent_namespaces( ++ adb_GetKeys_t* _GetKeys, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _GetKeys adb_GetKeys_t object ++ * @param env pointer to environment struct ++ * @param GetKeys_om_node node to serialize from ++ * @param GetKeys_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_GetKeys_serialize( ++ adb_GetKeys_t* _GetKeys, ++ const axutil_env_t *env, ++ axiom_node_t* GetKeys_om_node, axiom_element_t *GetKeys_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_GetKeys is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_GetKeys_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_GETKEYS_H */ ++ ++ + +=== added file 'gatherlog/generated/adb_GetKeysResponse.c' +--- old/gatherlog/generated/adb_GetKeysResponse.c 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/adb_GetKeysResponse.c 2010-01-05 01:00:28 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_GetKeysResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_GetKeysResponse.h" ++ ++ /* ++ * implmentation of the GetKeysResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_GetKeysResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_getKeysResponseType_t* property_GetKeysResponse; ++ ++ ++ axis2_bool_t is_valid_GetKeysResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_GetKeysResponse_t* AXIS2_CALL ++ adb_GetKeysResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_GetKeysResponse_t *_GetKeysResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _GetKeysResponse = (adb_GetKeysResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_GetKeysResponse_t)); ++ ++ if(NULL == _GetKeysResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_GetKeysResponse, 0, sizeof(adb_GetKeysResponse_t)); ++ ++ _GetKeysResponse->property_GetKeysResponse = NULL; ++ _GetKeysResponse->is_valid_GetKeysResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "GetKeysResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _GetKeysResponse->qname = qname; ++ ++ ++ return _GetKeysResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_GetKeysResponse_free ( ++ adb_GetKeysResponse_t* _GetKeysResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _GetKeysResponse, AXIS2_FAILURE); ++ ++ adb_GetKeysResponse_reset_GetKeysResponse(_GetKeysResponse, env); ++ ++ if(_GetKeysResponse->qname) ++ { ++ axutil_qname_free (_GetKeysResponse->qname, env); ++ _GetKeysResponse->qname = NULL; ++ } ++ ++ ++ if(_GetKeysResponse) ++ { ++ AXIS2_FREE(env->allocator, _GetKeysResponse); ++ _GetKeysResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_GetKeysResponse_deserialize( ++ adb_GetKeysResponse_t* _GetKeysResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _GetKeysResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for GetKeysResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _GetKeysResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for GetKeysResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_GetKeysResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building GetKeysResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "GetKeysResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_getKeysResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_getKeysResponseType_create(env); ++ ++ status = adb_getKeysResponseType_deserialize((adb_getKeysResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element GetKeysResponse"); ++ } ++ else ++ { ++ status = adb_GetKeysResponse_set_GetKeysResponse(_GetKeysResponse, env, ++ (adb_getKeysResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for GetKeysResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element GetKeysResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_GetKeysResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_GetKeysResponse_declare_parent_namespaces( ++ adb_GetKeysResponse_t* _GetKeysResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_GetKeysResponse_serialize( ++ adb_GetKeysResponse_t* _GetKeysResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _GetKeysResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "GetKeysResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_GetKeysResponse->is_valid_GetKeysResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("GetKeysResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sGetKeysResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("GetKeysResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("GetKeysResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing GetKeysResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sGetKeysResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_getKeysResponseType_serialize(_GetKeysResponse->property_GetKeysResponse, ++ env, current_node, parent_element, ++ adb_getKeysResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for GetKeysResponse. ++ */ ++ adb_getKeysResponseType_t* AXIS2_CALL ++ adb_GetKeysResponse_get_GetKeysResponse( ++ adb_GetKeysResponse_t* _GetKeysResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _GetKeysResponse, NULL); ++ ++ ++ return _GetKeysResponse->property_GetKeysResponse; ++ } ++ ++ /** ++ * setter for GetKeysResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetKeysResponse_set_GetKeysResponse( ++ adb_GetKeysResponse_t* _GetKeysResponse, ++ const axutil_env_t *env, ++ adb_getKeysResponseType_t* arg_GetKeysResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _GetKeysResponse, AXIS2_FAILURE); ++ ++ if(_GetKeysResponse->is_valid_GetKeysResponse && ++ arg_GetKeysResponse == _GetKeysResponse->property_GetKeysResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_GetKeysResponse_reset_GetKeysResponse(_GetKeysResponse, env); ++ ++ ++ if(NULL == arg_GetKeysResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _GetKeysResponse->property_GetKeysResponse = arg_GetKeysResponse; ++ _GetKeysResponse->is_valid_GetKeysResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for GetKeysResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetKeysResponse_reset_GetKeysResponse( ++ adb_GetKeysResponse_t* _GetKeysResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _GetKeysResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_GetKeysResponse->property_GetKeysResponse != NULL) ++ { ++ ++ ++ adb_getKeysResponseType_free(_GetKeysResponse->property_GetKeysResponse, env); ++ _GetKeysResponse->property_GetKeysResponse = NULL; ++ } ++ ++ ++ ++ _GetKeysResponse->is_valid_GetKeysResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether GetKeysResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_GetKeysResponse_is_GetKeysResponse_nil( ++ adb_GetKeysResponse_t* _GetKeysResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _GetKeysResponse, AXIS2_TRUE); ++ ++ return !_GetKeysResponse->is_valid_GetKeysResponse; ++ } ++ ++ /** ++ * Set GetKeysResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetKeysResponse_set_GetKeysResponse_nil( ++ adb_GetKeysResponse_t* _GetKeysResponse, ++ const axutil_env_t *env) ++ { ++ return adb_GetKeysResponse_reset_GetKeysResponse(_GetKeysResponse, env); ++ } ++ ++ ++ + +=== added file 'gatherlog/generated/adb_GetKeysResponse.h' +--- old/gatherlog/generated/adb_GetKeysResponse.h 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/adb_GetKeysResponse.h 2010-01-05 01:00:28 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_GETKEYSRESPONSE_H ++ #define ADB_GETKEYSRESPONSE_H ++ ++ /** ++ * adb_GetKeysResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_GetKeysResponse class ++ */ ++ typedef struct adb_GetKeysResponse adb_GetKeysResponse_t; ++ ++ ++ #include "adb_getKeysResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_GetKeysResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_GetKeysResponse_t object ++ */ ++ adb_GetKeysResponse_t* AXIS2_CALL ++ adb_GetKeysResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_GetKeysResponse_t object ++ * @param _GetKeysResponse adb_GetKeysResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetKeysResponse_free ( ++ adb_GetKeysResponse_t* _GetKeysResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for GetKeysResponse. ++ * @param _GetKeysResponse adb_GetKeysResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_getKeysResponseType_t* ++ */ ++ adb_getKeysResponseType_t* AXIS2_CALL ++ adb_GetKeysResponse_get_GetKeysResponse( ++ adb_GetKeysResponse_t* _GetKeysResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for GetKeysResponse. ++ * @param _GetKeysResponse adb_GetKeysResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_GetKeysResponse adb_getKeysResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetKeysResponse_set_GetKeysResponse( ++ adb_GetKeysResponse_t* _GetKeysResponse, ++ const axutil_env_t *env, ++ adb_getKeysResponseType_t* arg_GetKeysResponse); ++ ++ /** ++ * Resetter for GetKeysResponse ++ * @param _GetKeysResponse adb_GetKeysResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetKeysResponse_reset_GetKeysResponse( ++ adb_GetKeysResponse_t* _GetKeysResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether GetKeysResponse is nill ++ * @param _GetKeysResponse adb_GetKeysResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_GetKeysResponse_is_GetKeysResponse_nil( ++ adb_GetKeysResponse_t* _GetKeysResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set GetKeysResponse to nill (currently the same as reset) ++ * @param _GetKeysResponse adb_GetKeysResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetKeysResponse_set_GetKeysResponse_nil( ++ adb_GetKeysResponse_t* _GetKeysResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _GetKeysResponse adb_GetKeysResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetKeysResponse_deserialize( ++ adb_GetKeysResponse_t* _GetKeysResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _GetKeysResponse adb_GetKeysResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_GetKeysResponse_declare_parent_namespaces( ++ adb_GetKeysResponse_t* _GetKeysResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _GetKeysResponse adb_GetKeysResponse_t object ++ * @param env pointer to environment struct ++ * @param GetKeysResponse_om_node node to serialize from ++ * @param GetKeysResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_GetKeysResponse_serialize( ++ adb_GetKeysResponse_t* _GetKeysResponse, ++ const axutil_env_t *env, ++ axiom_node_t* GetKeysResponse_om_node, axiom_element_t *GetKeysResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_GetKeysResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_GetKeysResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_GETKEYSRESPONSE_H */ ++ ++ + +=== added file 'gatherlog/generated/adb_GetLogs.c' +--- old/gatherlog/generated/adb_GetLogs.c 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/adb_GetLogs.c 2010-01-05 01:00:28 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_GetLogs.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_GetLogs.h" ++ ++ /* ++ * implmentation of the GetLogs|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_GetLogs ++ { ++ ++ axutil_qname_t* qname; ++ adb_getLogsType_t* property_GetLogs; ++ ++ ++ axis2_bool_t is_valid_GetLogs; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_GetLogs_t* AXIS2_CALL ++ adb_GetLogs_create( ++ const axutil_env_t *env) ++ { ++ adb_GetLogs_t *_GetLogs = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _GetLogs = (adb_GetLogs_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_GetLogs_t)); ++ ++ if(NULL == _GetLogs) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_GetLogs, 0, sizeof(adb_GetLogs_t)); ++ ++ _GetLogs->property_GetLogs = NULL; ++ _GetLogs->is_valid_GetLogs = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "GetLogs", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _GetLogs->qname = qname; ++ ++ ++ return _GetLogs; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_GetLogs_free ( ++ adb_GetLogs_t* _GetLogs, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _GetLogs, AXIS2_FAILURE); ++ ++ adb_GetLogs_reset_GetLogs(_GetLogs, env); ++ ++ if(_GetLogs->qname) ++ { ++ axutil_qname_free (_GetLogs->qname, env); ++ _GetLogs->qname = NULL; ++ } ++ ++ ++ if(_GetLogs) ++ { ++ AXIS2_FREE(env->allocator, _GetLogs); ++ _GetLogs = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_GetLogs_deserialize( ++ adb_GetLogs_t* _GetLogs, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _GetLogs, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for GetLogs : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _GetLogs-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for GetLogs : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_GetLogs-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building GetLogs element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "GetLogs", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_getLogsType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_getLogsType_create(env); ++ ++ status = adb_getLogsType_deserialize((adb_getLogsType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element GetLogs"); ++ } ++ else ++ { ++ status = adb_GetLogs_set_GetLogs(_GetLogs, env, ++ (adb_getLogsType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for GetLogs "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element GetLogs missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_GetLogs_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_GetLogs_declare_parent_namespaces( ++ adb_GetLogs_t* _GetLogs, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_GetLogs_serialize( ++ adb_GetLogs_t* _GetLogs, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _GetLogs, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "GetLogs", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_GetLogs->is_valid_GetLogs) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("GetLogs") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sGetLogs xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("GetLogs"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("GetLogs"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing GetLogs element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sGetLogs", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_getLogsType_serialize(_GetLogs->property_GetLogs, ++ env, current_node, parent_element, ++ adb_getLogsType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for GetLogs. ++ */ ++ adb_getLogsType_t* AXIS2_CALL ++ adb_GetLogs_get_GetLogs( ++ adb_GetLogs_t* _GetLogs, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _GetLogs, NULL); ++ ++ ++ return _GetLogs->property_GetLogs; ++ } ++ ++ /** ++ * setter for GetLogs ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetLogs_set_GetLogs( ++ adb_GetLogs_t* _GetLogs, ++ const axutil_env_t *env, ++ adb_getLogsType_t* arg_GetLogs) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _GetLogs, AXIS2_FAILURE); ++ ++ if(_GetLogs->is_valid_GetLogs && ++ arg_GetLogs == _GetLogs->property_GetLogs) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_GetLogs_reset_GetLogs(_GetLogs, env); ++ ++ ++ if(NULL == arg_GetLogs) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _GetLogs->property_GetLogs = arg_GetLogs; ++ _GetLogs->is_valid_GetLogs = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for GetLogs ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetLogs_reset_GetLogs( ++ adb_GetLogs_t* _GetLogs, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _GetLogs, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_GetLogs->property_GetLogs != NULL) ++ { ++ ++ ++ adb_getLogsType_free(_GetLogs->property_GetLogs, env); ++ _GetLogs->property_GetLogs = NULL; ++ } ++ ++ ++ ++ _GetLogs->is_valid_GetLogs = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether GetLogs is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_GetLogs_is_GetLogs_nil( ++ adb_GetLogs_t* _GetLogs, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _GetLogs, AXIS2_TRUE); ++ ++ return !_GetLogs->is_valid_GetLogs; ++ } ++ ++ /** ++ * Set GetLogs to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetLogs_set_GetLogs_nil( ++ adb_GetLogs_t* _GetLogs, ++ const axutil_env_t *env) ++ { ++ return adb_GetLogs_reset_GetLogs(_GetLogs, env); ++ } ++ ++ ++ + +=== added file 'gatherlog/generated/adb_GetLogs.h' +--- old/gatherlog/generated/adb_GetLogs.h 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/adb_GetLogs.h 2010-01-05 01:00:28 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_GETLOGS_H ++ #define ADB_GETLOGS_H ++ ++ /** ++ * adb_GetLogs.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_GetLogs class ++ */ ++ typedef struct adb_GetLogs adb_GetLogs_t; ++ ++ ++ #include "adb_getLogsType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_GetLogs_t ++ * @param env pointer to environment struct ++ * @return newly created adb_GetLogs_t object ++ */ ++ adb_GetLogs_t* AXIS2_CALL ++ adb_GetLogs_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_GetLogs_t object ++ * @param _GetLogs adb_GetLogs_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetLogs_free ( ++ adb_GetLogs_t* _GetLogs, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for GetLogs. ++ * @param _GetLogs adb_GetLogs_t object ++ * @param env pointer to environment struct ++ * @return adb_getLogsType_t* ++ */ ++ adb_getLogsType_t* AXIS2_CALL ++ adb_GetLogs_get_GetLogs( ++ adb_GetLogs_t* _GetLogs, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for GetLogs. ++ * @param _GetLogs adb_GetLogs_t object ++ * @param env pointer to environment struct ++ * @param arg_GetLogs adb_getLogsType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetLogs_set_GetLogs( ++ adb_GetLogs_t* _GetLogs, ++ const axutil_env_t *env, ++ adb_getLogsType_t* arg_GetLogs); ++ ++ /** ++ * Resetter for GetLogs ++ * @param _GetLogs adb_GetLogs_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetLogs_reset_GetLogs( ++ adb_GetLogs_t* _GetLogs, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether GetLogs is nill ++ * @param _GetLogs adb_GetLogs_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_GetLogs_is_GetLogs_nil( ++ adb_GetLogs_t* _GetLogs, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set GetLogs to nill (currently the same as reset) ++ * @param _GetLogs adb_GetLogs_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetLogs_set_GetLogs_nil( ++ adb_GetLogs_t* _GetLogs, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _GetLogs adb_GetLogs_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetLogs_deserialize( ++ adb_GetLogs_t* _GetLogs, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _GetLogs adb_GetLogs_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_GetLogs_declare_parent_namespaces( ++ adb_GetLogs_t* _GetLogs, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _GetLogs adb_GetLogs_t object ++ * @param env pointer to environment struct ++ * @param GetLogs_om_node node to serialize from ++ * @param GetLogs_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_GetLogs_serialize( ++ adb_GetLogs_t* _GetLogs, ++ const axutil_env_t *env, ++ axiom_node_t* GetLogs_om_node, axiom_element_t *GetLogs_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_GetLogs is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_GetLogs_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_GETLOGS_H */ ++ ++ + +=== added file 'gatherlog/generated/adb_GetLogsResponse.c' +--- old/gatherlog/generated/adb_GetLogsResponse.c 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/adb_GetLogsResponse.c 2010-01-05 01:00:28 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_GetLogsResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_GetLogsResponse.h" ++ ++ /* ++ * implmentation of the GetLogsResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_GetLogsResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_getLogsResponseType_t* property_GetLogsResponse; ++ ++ ++ axis2_bool_t is_valid_GetLogsResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_GetLogsResponse_t* AXIS2_CALL ++ adb_GetLogsResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_GetLogsResponse_t *_GetLogsResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _GetLogsResponse = (adb_GetLogsResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_GetLogsResponse_t)); ++ ++ if(NULL == _GetLogsResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_GetLogsResponse, 0, sizeof(adb_GetLogsResponse_t)); ++ ++ _GetLogsResponse->property_GetLogsResponse = NULL; ++ _GetLogsResponse->is_valid_GetLogsResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "GetLogsResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _GetLogsResponse->qname = qname; ++ ++ ++ return _GetLogsResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_GetLogsResponse_free ( ++ adb_GetLogsResponse_t* _GetLogsResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _GetLogsResponse, AXIS2_FAILURE); ++ ++ adb_GetLogsResponse_reset_GetLogsResponse(_GetLogsResponse, env); ++ ++ if(_GetLogsResponse->qname) ++ { ++ axutil_qname_free (_GetLogsResponse->qname, env); ++ _GetLogsResponse->qname = NULL; ++ } ++ ++ ++ if(_GetLogsResponse) ++ { ++ AXIS2_FREE(env->allocator, _GetLogsResponse); ++ _GetLogsResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_GetLogsResponse_deserialize( ++ adb_GetLogsResponse_t* _GetLogsResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _GetLogsResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for GetLogsResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _GetLogsResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for GetLogsResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_GetLogsResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building GetLogsResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "GetLogsResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_getLogsResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_getLogsResponseType_create(env); ++ ++ status = adb_getLogsResponseType_deserialize((adb_getLogsResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element GetLogsResponse"); ++ } ++ else ++ { ++ status = adb_GetLogsResponse_set_GetLogsResponse(_GetLogsResponse, env, ++ (adb_getLogsResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for GetLogsResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element GetLogsResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_GetLogsResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_GetLogsResponse_declare_parent_namespaces( ++ adb_GetLogsResponse_t* _GetLogsResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_GetLogsResponse_serialize( ++ adb_GetLogsResponse_t* _GetLogsResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _GetLogsResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "GetLogsResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_GetLogsResponse->is_valid_GetLogsResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("GetLogsResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sGetLogsResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("GetLogsResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("GetLogsResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing GetLogsResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sGetLogsResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_getLogsResponseType_serialize(_GetLogsResponse->property_GetLogsResponse, ++ env, current_node, parent_element, ++ adb_getLogsResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for GetLogsResponse. ++ */ ++ adb_getLogsResponseType_t* AXIS2_CALL ++ adb_GetLogsResponse_get_GetLogsResponse( ++ adb_GetLogsResponse_t* _GetLogsResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _GetLogsResponse, NULL); ++ ++ ++ return _GetLogsResponse->property_GetLogsResponse; ++ } ++ ++ /** ++ * setter for GetLogsResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetLogsResponse_set_GetLogsResponse( ++ adb_GetLogsResponse_t* _GetLogsResponse, ++ const axutil_env_t *env, ++ adb_getLogsResponseType_t* arg_GetLogsResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _GetLogsResponse, AXIS2_FAILURE); ++ ++ if(_GetLogsResponse->is_valid_GetLogsResponse && ++ arg_GetLogsResponse == _GetLogsResponse->property_GetLogsResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_GetLogsResponse_reset_GetLogsResponse(_GetLogsResponse, env); ++ ++ ++ if(NULL == arg_GetLogsResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _GetLogsResponse->property_GetLogsResponse = arg_GetLogsResponse; ++ _GetLogsResponse->is_valid_GetLogsResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for GetLogsResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetLogsResponse_reset_GetLogsResponse( ++ adb_GetLogsResponse_t* _GetLogsResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _GetLogsResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_GetLogsResponse->property_GetLogsResponse != NULL) ++ { ++ ++ ++ adb_getLogsResponseType_free(_GetLogsResponse->property_GetLogsResponse, env); ++ _GetLogsResponse->property_GetLogsResponse = NULL; ++ } ++ ++ ++ ++ _GetLogsResponse->is_valid_GetLogsResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether GetLogsResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_GetLogsResponse_is_GetLogsResponse_nil( ++ adb_GetLogsResponse_t* _GetLogsResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _GetLogsResponse, AXIS2_TRUE); ++ ++ return !_GetLogsResponse->is_valid_GetLogsResponse; ++ } ++ ++ /** ++ * Set GetLogsResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetLogsResponse_set_GetLogsResponse_nil( ++ adb_GetLogsResponse_t* _GetLogsResponse, ++ const axutil_env_t *env) ++ { ++ return adb_GetLogsResponse_reset_GetLogsResponse(_GetLogsResponse, env); ++ } ++ ++ ++ + +=== added file 'gatherlog/generated/adb_GetLogsResponse.h' +--- old/gatherlog/generated/adb_GetLogsResponse.h 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/adb_GetLogsResponse.h 2010-01-05 01:00:28 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_GETLOGSRESPONSE_H ++ #define ADB_GETLOGSRESPONSE_H ++ ++ /** ++ * adb_GetLogsResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_GetLogsResponse class ++ */ ++ typedef struct adb_GetLogsResponse adb_GetLogsResponse_t; ++ ++ ++ #include "adb_getLogsResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_GetLogsResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_GetLogsResponse_t object ++ */ ++ adb_GetLogsResponse_t* AXIS2_CALL ++ adb_GetLogsResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_GetLogsResponse_t object ++ * @param _GetLogsResponse adb_GetLogsResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetLogsResponse_free ( ++ adb_GetLogsResponse_t* _GetLogsResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for GetLogsResponse. ++ * @param _GetLogsResponse adb_GetLogsResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_getLogsResponseType_t* ++ */ ++ adb_getLogsResponseType_t* AXIS2_CALL ++ adb_GetLogsResponse_get_GetLogsResponse( ++ adb_GetLogsResponse_t* _GetLogsResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for GetLogsResponse. ++ * @param _GetLogsResponse adb_GetLogsResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_GetLogsResponse adb_getLogsResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetLogsResponse_set_GetLogsResponse( ++ adb_GetLogsResponse_t* _GetLogsResponse, ++ const axutil_env_t *env, ++ adb_getLogsResponseType_t* arg_GetLogsResponse); ++ ++ /** ++ * Resetter for GetLogsResponse ++ * @param _GetLogsResponse adb_GetLogsResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetLogsResponse_reset_GetLogsResponse( ++ adb_GetLogsResponse_t* _GetLogsResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether GetLogsResponse is nill ++ * @param _GetLogsResponse adb_GetLogsResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_GetLogsResponse_is_GetLogsResponse_nil( ++ adb_GetLogsResponse_t* _GetLogsResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set GetLogsResponse to nill (currently the same as reset) ++ * @param _GetLogsResponse adb_GetLogsResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetLogsResponse_set_GetLogsResponse_nil( ++ adb_GetLogsResponse_t* _GetLogsResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _GetLogsResponse adb_GetLogsResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_GetLogsResponse_deserialize( ++ adb_GetLogsResponse_t* _GetLogsResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _GetLogsResponse adb_GetLogsResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_GetLogsResponse_declare_parent_namespaces( ++ adb_GetLogsResponse_t* _GetLogsResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _GetLogsResponse adb_GetLogsResponse_t object ++ * @param env pointer to environment struct ++ * @param GetLogsResponse_om_node node to serialize from ++ * @param GetLogsResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_GetLogsResponse_serialize( ++ adb_GetLogsResponse_t* _GetLogsResponse, ++ const axutil_env_t *env, ++ axiom_node_t* GetLogsResponse_om_node, axiom_element_t *GetLogsResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_GetLogsResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_GetLogsResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_GETLOGSRESPONSE_H */ ++ ++ + +=== added file 'gatherlog/generated/adb_eucalyptusMessage.c' +--- old/gatherlog/generated/adb_eucalyptusMessage.c 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/adb_eucalyptusMessage.c 2010-01-05 01:00:28 +0000 +@@ -0,0 +1,1401 @@ ++ ++ ++ /** ++ * adb_eucalyptusMessage.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_eucalyptusMessage.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = eucalyptusMessage ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_eucalyptusMessage ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_correlationId_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_userId_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_return_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_eucalyptusMessage_t* AXIS2_CALL ++ adb_eucalyptusMessage_create( ++ const axutil_env_t *env) ++ { ++ adb_eucalyptusMessage_t *_eucalyptusMessage = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _eucalyptusMessage = (adb_eucalyptusMessage_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_eucalyptusMessage_t)); ++ ++ if(NULL == _eucalyptusMessage) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_eucalyptusMessage, 0, sizeof(adb_eucalyptusMessage_t)); ++ ++ _eucalyptusMessage->property_correlationId = NULL; ++ _eucalyptusMessage->is_valid_correlationId = AXIS2_FALSE; ++ _eucalyptusMessage->property_userId = NULL; ++ _eucalyptusMessage->is_valid_userId = AXIS2_FALSE; ++ _eucalyptusMessage->property_statusMessage = NULL; ++ _eucalyptusMessage->is_valid_statusMessage = AXIS2_FALSE; ++ _eucalyptusMessage->is_valid_return = AXIS2_FALSE; ++ ++ ++ return _eucalyptusMessage; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_free ( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ adb_eucalyptusMessage_reset_correlationId(_eucalyptusMessage, env); ++ adb_eucalyptusMessage_reset_userId(_eucalyptusMessage, env); ++ adb_eucalyptusMessage_reset_statusMessage(_eucalyptusMessage, env); ++ adb_eucalyptusMessage_reset_return(_eucalyptusMessage, env); ++ ++ ++ if(_eucalyptusMessage) ++ { ++ AXIS2_FREE(env->allocator, _eucalyptusMessage); ++ _eucalyptusMessage = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_deserialize( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for eucalyptusMessage : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_eucalyptusMessage_set_correlationId(_eucalyptusMessage, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_eucalyptusMessage_set_correlationId(_eucalyptusMessage, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_eucalyptusMessage_set_userId(_eucalyptusMessage, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_eucalyptusMessage_set_userId(_eucalyptusMessage, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_eucalyptusMessage_set_statusMessage(_eucalyptusMessage, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_eucalyptusMessage_set_return(_eucalyptusMessage, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_eucalyptusMessage_set_return(_eucalyptusMessage, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_eucalyptusMessage_declare_parent_namespaces( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_eucalyptusMessage_serialize( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_eucalyptusMessage->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _eucalyptusMessage->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_eucalyptusMessage->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _eucalyptusMessage->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_eucalyptusMessage->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _eucalyptusMessage->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_eucalyptusMessage->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_eucalyptusMessage->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_eucalyptusMessage_get_correlationId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, NULL); ++ ++ ++ return _eucalyptusMessage->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_correlationId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ if(_eucalyptusMessage->is_valid_correlationId && ++ arg_correlationId == _eucalyptusMessage->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_eucalyptusMessage_reset_correlationId(_eucalyptusMessage, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _eucalyptusMessage->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _eucalyptusMessage->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _eucalyptusMessage->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_reset_correlationId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_eucalyptusMessage->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _eucalyptusMessage->property_correlationId); ++ _eucalyptusMessage->property_correlationId = NULL; ++ } ++ ++ ++ ++ _eucalyptusMessage->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_correlationId_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_TRUE); ++ ++ return !_eucalyptusMessage->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_correlationId_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ return adb_eucalyptusMessage_reset_correlationId(_eucalyptusMessage, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_eucalyptusMessage_get_userId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, NULL); ++ ++ ++ return _eucalyptusMessage->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_userId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ if(_eucalyptusMessage->is_valid_userId && ++ arg_userId == _eucalyptusMessage->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_eucalyptusMessage_reset_userId(_eucalyptusMessage, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _eucalyptusMessage->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _eucalyptusMessage->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _eucalyptusMessage->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_reset_userId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_eucalyptusMessage->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _eucalyptusMessage->property_userId); ++ _eucalyptusMessage->property_userId = NULL; ++ } ++ ++ ++ ++ _eucalyptusMessage->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_userId_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_TRUE); ++ ++ return !_eucalyptusMessage->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_userId_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ return adb_eucalyptusMessage_reset_userId(_eucalyptusMessage, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_eucalyptusMessage_get_statusMessage( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, NULL); ++ ++ ++ return _eucalyptusMessage->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_statusMessage( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ if(_eucalyptusMessage->is_valid_statusMessage && ++ arg_statusMessage == _eucalyptusMessage->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_eucalyptusMessage_reset_statusMessage(_eucalyptusMessage, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _eucalyptusMessage->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _eucalyptusMessage->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _eucalyptusMessage->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_reset_statusMessage( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_eucalyptusMessage->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _eucalyptusMessage->property_statusMessage); ++ _eucalyptusMessage->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _eucalyptusMessage->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_statusMessage_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_TRUE); ++ ++ return !_eucalyptusMessage->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_statusMessage_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ return adb_eucalyptusMessage_reset_statusMessage(_eucalyptusMessage, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_get_return( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, (axis2_bool_t)0); ++ ++ ++ return _eucalyptusMessage->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_return( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ if(_eucalyptusMessage->is_valid_return && ++ arg_return == _eucalyptusMessage->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_eucalyptusMessage_reset_return(_eucalyptusMessage, env); ++ ++ _eucalyptusMessage->property_return = arg_return; ++ _eucalyptusMessage->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_reset_return( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ ++ _eucalyptusMessage->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_return_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_TRUE); ++ ++ return !_eucalyptusMessage->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_return_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ return adb_eucalyptusMessage_reset_return(_eucalyptusMessage, env); ++ } ++ ++ ++ + +=== added file 'gatherlog/generated/adb_eucalyptusMessage.h' +--- old/gatherlog/generated/adb_eucalyptusMessage.h 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/adb_eucalyptusMessage.h 2010-01-05 01:00:28 +0000 +@@ -0,0 +1,362 @@ ++ ++ ++ #ifndef ADB_EUCALYPTUSMESSAGE_H ++ #define ADB_EUCALYPTUSMESSAGE_H ++ ++ /** ++ * adb_eucalyptusMessage.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_eucalyptusMessage class ++ */ ++ typedef struct adb_eucalyptusMessage adb_eucalyptusMessage_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_eucalyptusMessage_t ++ * @param env pointer to environment struct ++ * @return newly created adb_eucalyptusMessage_t object ++ */ ++ adb_eucalyptusMessage_t* AXIS2_CALL ++ adb_eucalyptusMessage_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_eucalyptusMessage_t object ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_free ( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_eucalyptusMessage_get_correlationId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_correlationId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_reset_correlationId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_eucalyptusMessage_get_userId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_userId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_reset_userId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_eucalyptusMessage_get_statusMessage( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_statusMessage( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_reset_statusMessage( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_get_return( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_return( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_reset_return( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_correlationId_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_userId_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_statusMessage_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_statusMessage_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_return_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_deserialize( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_eucalyptusMessage_declare_parent_namespaces( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @param eucalyptusMessage_om_node node to serialize from ++ * @param eucalyptusMessage_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_eucalyptusMessage_serialize( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ axiom_node_t* eucalyptusMessage_om_node, axiom_element_t *eucalyptusMessage_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_eucalyptusMessage is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_EUCALYPTUSMESSAGE_H */ ++ ++ + +=== added file 'gatherlog/generated/adb_getKeysResponseType.c' +--- old/gatherlog/generated/adb_getKeysResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/adb_getKeysResponseType.c 2010-01-05 01:00:28 +0000 +@@ -0,0 +1,2412 @@ ++ ++ ++ /** ++ * adb_getKeysResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_getKeysResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = getKeysResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_getKeysResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ axis2_char_t* property_serviceTag; ++ ++ ++ axis2_bool_t is_valid_serviceTag; ++ ++ ++ axis2_char_t* property_CCcert; ++ ++ ++ axis2_bool_t is_valid_CCcert; ++ ++ ++ axis2_char_t* property_NCcert; ++ ++ ++ axis2_bool_t is_valid_NCcert; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_correlationId_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_userId_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_return_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_serviceTag_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_CCcert_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_NCcert_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_getKeysResponseType_t* AXIS2_CALL ++ adb_getKeysResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_getKeysResponseType_t *_getKeysResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _getKeysResponseType = (adb_getKeysResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_getKeysResponseType_t)); ++ ++ if(NULL == _getKeysResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_getKeysResponseType, 0, sizeof(adb_getKeysResponseType_t)); ++ ++ _getKeysResponseType->property_correlationId = NULL; ++ _getKeysResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _getKeysResponseType->property_userId = NULL; ++ _getKeysResponseType->is_valid_userId = AXIS2_FALSE; ++ _getKeysResponseType->property_statusMessage = NULL; ++ _getKeysResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _getKeysResponseType->is_valid_return = AXIS2_FALSE; ++ _getKeysResponseType->property_serviceTag = NULL; ++ _getKeysResponseType->is_valid_serviceTag = AXIS2_FALSE; ++ _getKeysResponseType->property_CCcert = NULL; ++ _getKeysResponseType->is_valid_CCcert = AXIS2_FALSE; ++ _getKeysResponseType->property_NCcert = NULL; ++ _getKeysResponseType->is_valid_NCcert = AXIS2_FALSE; ++ ++ ++ return _getKeysResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_free ( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, AXIS2_FAILURE); ++ ++ adb_getKeysResponseType_reset_correlationId(_getKeysResponseType, env); ++ adb_getKeysResponseType_reset_userId(_getKeysResponseType, env); ++ adb_getKeysResponseType_reset_statusMessage(_getKeysResponseType, env); ++ adb_getKeysResponseType_reset_return(_getKeysResponseType, env); ++ adb_getKeysResponseType_reset_serviceTag(_getKeysResponseType, env); ++ adb_getKeysResponseType_reset_CCcert(_getKeysResponseType, env); ++ adb_getKeysResponseType_reset_NCcert(_getKeysResponseType, env); ++ ++ ++ if(_getKeysResponseType) ++ { ++ AXIS2_FREE(env->allocator, _getKeysResponseType); ++ _getKeysResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_deserialize( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for getKeysResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getKeysResponseType_set_correlationId(_getKeysResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_getKeysResponseType_set_correlationId(_getKeysResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getKeysResponseType_set_userId(_getKeysResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_getKeysResponseType_set_userId(_getKeysResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getKeysResponseType_set_statusMessage(_getKeysResponseType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_getKeysResponseType_set_return(_getKeysResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_getKeysResponseType_set_return(_getKeysResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building serviceTag element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "serviceTag", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getKeysResponseType_set_serviceTag(_getKeysResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element serviceTag"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_getKeysResponseType_set_serviceTag(_getKeysResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for serviceTag "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building CCcert element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "CCcert", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getKeysResponseType_set_CCcert(_getKeysResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element CCcert"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_getKeysResponseType_set_CCcert(_getKeysResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for CCcert "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building NCcert element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "NCcert", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getKeysResponseType_set_NCcert(_getKeysResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element NCcert"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_getKeysResponseType_set_NCcert(_getKeysResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for NCcert "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_getKeysResponseType_declare_parent_namespaces( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_getKeysResponseType_serialize( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *text_value_6; ++ axis2_char_t *text_value_6_temp; ++ ++ axis2_char_t *text_value_7; ++ axis2_char_t *text_value_7_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getKeysResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _getKeysResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getKeysResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _getKeysResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getKeysResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _getKeysResponseType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getKeysResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_getKeysResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getKeysResponseType->is_valid_serviceTag) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("serviceTag"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("serviceTag"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing serviceTag element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sserviceTag>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _getKeysResponseType->property_serviceTag; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getKeysResponseType->is_valid_CCcert) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("CCcert"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("CCcert"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing CCcert element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sCCcert>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_6 = _getKeysResponseType->property_CCcert; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE); ++ if (text_value_6_temp) ++ { ++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp)); ++ AXIS2_FREE(env->allocator, text_value_6_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getKeysResponseType->is_valid_NCcert) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("NCcert"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("NCcert"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing NCcert element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sNCcert>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_7 = _getKeysResponseType->property_NCcert; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE); ++ if (text_value_7_temp) ++ { ++ axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp)); ++ AXIS2_FREE(env->allocator, text_value_7_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getKeysResponseType_get_correlationId( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, NULL); ++ ++ ++ return _getKeysResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_correlationId( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, AXIS2_FAILURE); ++ ++ if(_getKeysResponseType->is_valid_correlationId && ++ arg_correlationId == _getKeysResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getKeysResponseType_reset_correlationId(_getKeysResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getKeysResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _getKeysResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _getKeysResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_reset_correlationId( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getKeysResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getKeysResponseType->property_correlationId); ++ _getKeysResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _getKeysResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysResponseType_is_correlationId_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, AXIS2_TRUE); ++ ++ return !_getKeysResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_correlationId_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_getKeysResponseType_reset_correlationId(_getKeysResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getKeysResponseType_get_userId( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, NULL); ++ ++ ++ return _getKeysResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_userId( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, AXIS2_FAILURE); ++ ++ if(_getKeysResponseType->is_valid_userId && ++ arg_userId == _getKeysResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getKeysResponseType_reset_userId(_getKeysResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getKeysResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _getKeysResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _getKeysResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_reset_userId( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getKeysResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getKeysResponseType->property_userId); ++ _getKeysResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _getKeysResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysResponseType_is_userId_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, AXIS2_TRUE); ++ ++ return !_getKeysResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_userId_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_getKeysResponseType_reset_userId(_getKeysResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getKeysResponseType_get_statusMessage( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, NULL); ++ ++ ++ return _getKeysResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_statusMessage( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, AXIS2_FAILURE); ++ ++ if(_getKeysResponseType->is_valid_statusMessage && ++ arg_statusMessage == _getKeysResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getKeysResponseType_reset_statusMessage(_getKeysResponseType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getKeysResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _getKeysResponseType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _getKeysResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_reset_statusMessage( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getKeysResponseType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getKeysResponseType->property_statusMessage); ++ _getKeysResponseType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _getKeysResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysResponseType_is_statusMessage_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, AXIS2_TRUE); ++ ++ return !_getKeysResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_statusMessage_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_getKeysResponseType_reset_statusMessage(_getKeysResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysResponseType_get_return( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, (axis2_bool_t)0); ++ ++ ++ return _getKeysResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_return( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, AXIS2_FAILURE); ++ ++ if(_getKeysResponseType->is_valid_return && ++ arg_return == _getKeysResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getKeysResponseType_reset_return(_getKeysResponseType, env); ++ ++ _getKeysResponseType->property_return = arg_return; ++ _getKeysResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_reset_return( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, AXIS2_FAILURE); ++ ++ ++ _getKeysResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysResponseType_is_return_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, AXIS2_TRUE); ++ ++ return !_getKeysResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_return_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_getKeysResponseType_reset_return(_getKeysResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for serviceTag. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getKeysResponseType_get_serviceTag( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, NULL); ++ ++ ++ return _getKeysResponseType->property_serviceTag; ++ } ++ ++ /** ++ * setter for serviceTag ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_serviceTag( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_serviceTag) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, AXIS2_FAILURE); ++ ++ if(_getKeysResponseType->is_valid_serviceTag && ++ arg_serviceTag == _getKeysResponseType->property_serviceTag) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getKeysResponseType_reset_serviceTag(_getKeysResponseType, env); ++ ++ ++ if(NULL == arg_serviceTag) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getKeysResponseType->property_serviceTag = (axis2_char_t *)axutil_strdup(env, arg_serviceTag); ++ if(NULL == _getKeysResponseType->property_serviceTag) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for serviceTag"); ++ return AXIS2_FAILURE; ++ } ++ _getKeysResponseType->is_valid_serviceTag = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for serviceTag ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_reset_serviceTag( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getKeysResponseType->property_serviceTag != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getKeysResponseType->property_serviceTag); ++ _getKeysResponseType->property_serviceTag = NULL; ++ } ++ ++ ++ ++ _getKeysResponseType->is_valid_serviceTag = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether serviceTag is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysResponseType_is_serviceTag_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, AXIS2_TRUE); ++ ++ return !_getKeysResponseType->is_valid_serviceTag; ++ } ++ ++ /** ++ * Set serviceTag to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_serviceTag_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_getKeysResponseType_reset_serviceTag(_getKeysResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for CCcert. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getKeysResponseType_get_CCcert( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, NULL); ++ ++ ++ return _getKeysResponseType->property_CCcert; ++ } ++ ++ /** ++ * setter for CCcert ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_CCcert( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_CCcert) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, AXIS2_FAILURE); ++ ++ if(_getKeysResponseType->is_valid_CCcert && ++ arg_CCcert == _getKeysResponseType->property_CCcert) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getKeysResponseType_reset_CCcert(_getKeysResponseType, env); ++ ++ ++ if(NULL == arg_CCcert) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getKeysResponseType->property_CCcert = (axis2_char_t *)axutil_strdup(env, arg_CCcert); ++ if(NULL == _getKeysResponseType->property_CCcert) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for CCcert"); ++ return AXIS2_FAILURE; ++ } ++ _getKeysResponseType->is_valid_CCcert = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for CCcert ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_reset_CCcert( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getKeysResponseType->property_CCcert != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getKeysResponseType->property_CCcert); ++ _getKeysResponseType->property_CCcert = NULL; ++ } ++ ++ ++ ++ _getKeysResponseType->is_valid_CCcert = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether CCcert is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysResponseType_is_CCcert_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, AXIS2_TRUE); ++ ++ return !_getKeysResponseType->is_valid_CCcert; ++ } ++ ++ /** ++ * Set CCcert to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_CCcert_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_getKeysResponseType_reset_CCcert(_getKeysResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for NCcert. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getKeysResponseType_get_NCcert( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, NULL); ++ ++ ++ return _getKeysResponseType->property_NCcert; ++ } ++ ++ /** ++ * setter for NCcert ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_NCcert( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_NCcert) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, AXIS2_FAILURE); ++ ++ if(_getKeysResponseType->is_valid_NCcert && ++ arg_NCcert == _getKeysResponseType->property_NCcert) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getKeysResponseType_reset_NCcert(_getKeysResponseType, env); ++ ++ ++ if(NULL == arg_NCcert) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getKeysResponseType->property_NCcert = (axis2_char_t *)axutil_strdup(env, arg_NCcert); ++ if(NULL == _getKeysResponseType->property_NCcert) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for NCcert"); ++ return AXIS2_FAILURE; ++ } ++ _getKeysResponseType->is_valid_NCcert = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for NCcert ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_reset_NCcert( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getKeysResponseType->property_NCcert != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getKeysResponseType->property_NCcert); ++ _getKeysResponseType->property_NCcert = NULL; ++ } ++ ++ ++ ++ _getKeysResponseType->is_valid_NCcert = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether NCcert is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysResponseType_is_NCcert_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysResponseType, AXIS2_TRUE); ++ ++ return !_getKeysResponseType->is_valid_NCcert; ++ } ++ ++ /** ++ * Set NCcert to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_NCcert_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_getKeysResponseType_reset_NCcert(_getKeysResponseType, env); ++ } ++ ++ ++ + +=== added file 'gatherlog/generated/adb_getKeysResponseType.h' +--- old/gatherlog/generated/adb_getKeysResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/adb_getKeysResponseType.h 2010-01-05 01:00:28 +0000 +@@ -0,0 +1,518 @@ ++ ++ ++ #ifndef ADB_GETKEYSRESPONSETYPE_H ++ #define ADB_GETKEYSRESPONSETYPE_H ++ ++ /** ++ * adb_getKeysResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_getKeysResponseType class ++ */ ++ typedef struct adb_getKeysResponseType adb_getKeysResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_getKeysResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_getKeysResponseType_t object ++ */ ++ adb_getKeysResponseType_t* AXIS2_CALL ++ adb_getKeysResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_getKeysResponseType_t object ++ * @param _getKeysResponseType adb_getKeysResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_free ( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getKeysResponseType_get_correlationId( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_correlationId( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_reset_correlationId( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getKeysResponseType_get_userId( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_userId( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_reset_userId( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getKeysResponseType_get_statusMessage( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_statusMessage( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_reset_statusMessage( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysResponseType_get_return( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_return( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_reset_return( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for serviceTag. ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getKeysResponseType_get_serviceTag( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for serviceTag. ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_serviceTag axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_serviceTag( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_serviceTag); ++ ++ /** ++ * Resetter for serviceTag ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_reset_serviceTag( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for CCcert. ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getKeysResponseType_get_CCcert( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for CCcert. ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_CCcert axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_CCcert( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_CCcert); ++ ++ /** ++ * Resetter for CCcert ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_reset_CCcert( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for NCcert. ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getKeysResponseType_get_NCcert( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for NCcert. ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_NCcert axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_NCcert( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_NCcert); ++ ++ /** ++ * Resetter for NCcert ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_reset_NCcert( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysResponseType_is_correlationId_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysResponseType_is_userId_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysResponseType_is_statusMessage_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_set_statusMessage_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysResponseType_is_return_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether serviceTag is nill ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysResponseType_is_serviceTag_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether CCcert is nill ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysResponseType_is_CCcert_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether NCcert is nill ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysResponseType_is_NCcert_nil( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysResponseType_deserialize( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_getKeysResponseType_declare_parent_namespaces( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _getKeysResponseType adb_getKeysResponseType_t object ++ * @param env pointer to environment struct ++ * @param getKeysResponseType_om_node node to serialize from ++ * @param getKeysResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_getKeysResponseType_serialize( ++ adb_getKeysResponseType_t* _getKeysResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* getKeysResponseType_om_node, axiom_element_t *getKeysResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_getKeysResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_GETKEYSRESPONSETYPE_H */ ++ ++ + +=== added file 'gatherlog/generated/adb_getKeysType.c' +--- old/gatherlog/generated/adb_getKeysType.c 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/adb_getKeysType.c 2010-01-05 01:00:28 +0000 +@@ -0,0 +1,1738 @@ ++ ++ ++ /** ++ * adb_getKeysType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_getKeysType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = getKeysType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_getKeysType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ axis2_char_t* property_serviceTag; ++ ++ ++ axis2_bool_t is_valid_serviceTag; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_set_correlationId_nil( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_set_userId_nil( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_set_return_nil( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_set_serviceTag_nil( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_getKeysType_t* AXIS2_CALL ++ adb_getKeysType_create( ++ const axutil_env_t *env) ++ { ++ adb_getKeysType_t *_getKeysType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _getKeysType = (adb_getKeysType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_getKeysType_t)); ++ ++ if(NULL == _getKeysType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_getKeysType, 0, sizeof(adb_getKeysType_t)); ++ ++ _getKeysType->property_correlationId = NULL; ++ _getKeysType->is_valid_correlationId = AXIS2_FALSE; ++ _getKeysType->property_userId = NULL; ++ _getKeysType->is_valid_userId = AXIS2_FALSE; ++ _getKeysType->property_statusMessage = NULL; ++ _getKeysType->is_valid_statusMessage = AXIS2_FALSE; ++ _getKeysType->is_valid_return = AXIS2_FALSE; ++ _getKeysType->property_serviceTag = NULL; ++ _getKeysType->is_valid_serviceTag = AXIS2_FALSE; ++ ++ ++ return _getKeysType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_free ( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysType, AXIS2_FAILURE); ++ ++ adb_getKeysType_reset_correlationId(_getKeysType, env); ++ adb_getKeysType_reset_userId(_getKeysType, env); ++ adb_getKeysType_reset_statusMessage(_getKeysType, env); ++ adb_getKeysType_reset_return(_getKeysType, env); ++ adb_getKeysType_reset_serviceTag(_getKeysType, env); ++ ++ ++ if(_getKeysType) ++ { ++ AXIS2_FREE(env->allocator, _getKeysType); ++ _getKeysType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_deserialize( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for getKeysType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getKeysType_set_correlationId(_getKeysType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_getKeysType_set_correlationId(_getKeysType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getKeysType_set_userId(_getKeysType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_getKeysType_set_userId(_getKeysType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getKeysType_set_statusMessage(_getKeysType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_getKeysType_set_return(_getKeysType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_getKeysType_set_return(_getKeysType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building serviceTag element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "serviceTag", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getKeysType_set_serviceTag(_getKeysType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element serviceTag"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_getKeysType_set_serviceTag(_getKeysType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for serviceTag "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_getKeysType_declare_parent_namespaces( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_getKeysType_serialize( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getKeysType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getKeysType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _getKeysType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getKeysType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _getKeysType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getKeysType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _getKeysType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getKeysType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_getKeysType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getKeysType->is_valid_serviceTag) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("serviceTag"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("serviceTag"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing serviceTag element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sserviceTag>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _getKeysType->property_serviceTag; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getKeysType_get_correlationId( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getKeysType, NULL); ++ ++ ++ return _getKeysType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_set_correlationId( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysType, AXIS2_FAILURE); ++ ++ if(_getKeysType->is_valid_correlationId && ++ arg_correlationId == _getKeysType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getKeysType_reset_correlationId(_getKeysType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getKeysType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _getKeysType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _getKeysType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_reset_correlationId( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getKeysType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getKeysType->property_correlationId); ++ _getKeysType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _getKeysType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysType_is_correlationId_nil( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysType, AXIS2_TRUE); ++ ++ return !_getKeysType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_set_correlationId_nil( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env) ++ { ++ return adb_getKeysType_reset_correlationId(_getKeysType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getKeysType_get_userId( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getKeysType, NULL); ++ ++ ++ return _getKeysType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_set_userId( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysType, AXIS2_FAILURE); ++ ++ if(_getKeysType->is_valid_userId && ++ arg_userId == _getKeysType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getKeysType_reset_userId(_getKeysType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getKeysType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _getKeysType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _getKeysType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_reset_userId( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getKeysType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getKeysType->property_userId); ++ _getKeysType->property_userId = NULL; ++ } ++ ++ ++ ++ _getKeysType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysType_is_userId_nil( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysType, AXIS2_TRUE); ++ ++ return !_getKeysType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_set_userId_nil( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env) ++ { ++ return adb_getKeysType_reset_userId(_getKeysType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getKeysType_get_statusMessage( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getKeysType, NULL); ++ ++ ++ return _getKeysType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_set_statusMessage( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysType, AXIS2_FAILURE); ++ ++ if(_getKeysType->is_valid_statusMessage && ++ arg_statusMessage == _getKeysType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getKeysType_reset_statusMessage(_getKeysType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getKeysType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _getKeysType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _getKeysType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_reset_statusMessage( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getKeysType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getKeysType->property_statusMessage); ++ _getKeysType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _getKeysType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysType_is_statusMessage_nil( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysType, AXIS2_TRUE); ++ ++ return !_getKeysType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_set_statusMessage_nil( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env) ++ { ++ return adb_getKeysType_reset_statusMessage(_getKeysType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysType_get_return( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _getKeysType, (axis2_bool_t)0); ++ ++ ++ return _getKeysType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_set_return( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysType, AXIS2_FAILURE); ++ ++ if(_getKeysType->is_valid_return && ++ arg_return == _getKeysType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getKeysType_reset_return(_getKeysType, env); ++ ++ _getKeysType->property_return = arg_return; ++ _getKeysType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_reset_return( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysType, AXIS2_FAILURE); ++ ++ ++ _getKeysType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysType_is_return_nil( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysType, AXIS2_TRUE); ++ ++ return !_getKeysType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_set_return_nil( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env) ++ { ++ return adb_getKeysType_reset_return(_getKeysType, env); ++ } ++ ++ ++ ++ /** ++ * getter for serviceTag. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getKeysType_get_serviceTag( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getKeysType, NULL); ++ ++ ++ return _getKeysType->property_serviceTag; ++ } ++ ++ /** ++ * setter for serviceTag ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_set_serviceTag( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_serviceTag) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysType, AXIS2_FAILURE); ++ ++ if(_getKeysType->is_valid_serviceTag && ++ arg_serviceTag == _getKeysType->property_serviceTag) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getKeysType_reset_serviceTag(_getKeysType, env); ++ ++ ++ if(NULL == arg_serviceTag) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getKeysType->property_serviceTag = (axis2_char_t *)axutil_strdup(env, arg_serviceTag); ++ if(NULL == _getKeysType->property_serviceTag) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for serviceTag"); ++ return AXIS2_FAILURE; ++ } ++ _getKeysType->is_valid_serviceTag = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for serviceTag ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_reset_serviceTag( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getKeysType->property_serviceTag != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getKeysType->property_serviceTag); ++ _getKeysType->property_serviceTag = NULL; ++ } ++ ++ ++ ++ _getKeysType->is_valid_serviceTag = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether serviceTag is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysType_is_serviceTag_nil( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getKeysType, AXIS2_TRUE); ++ ++ return !_getKeysType->is_valid_serviceTag; ++ } ++ ++ /** ++ * Set serviceTag to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_set_serviceTag_nil( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env) ++ { ++ return adb_getKeysType_reset_serviceTag(_getKeysType, env); ++ } ++ ++ ++ + +=== added file 'gatherlog/generated/adb_getKeysType.h' +--- old/gatherlog/generated/adb_getKeysType.h 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/adb_getKeysType.h 2010-01-05 01:00:28 +0000 +@@ -0,0 +1,414 @@ ++ ++ ++ #ifndef ADB_GETKEYSTYPE_H ++ #define ADB_GETKEYSTYPE_H ++ ++ /** ++ * adb_getKeysType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_getKeysType class ++ */ ++ typedef struct adb_getKeysType adb_getKeysType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_getKeysType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_getKeysType_t object ++ */ ++ adb_getKeysType_t* AXIS2_CALL ++ adb_getKeysType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_getKeysType_t object ++ * @param _getKeysType adb_getKeysType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_free ( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _getKeysType adb_getKeysType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getKeysType_get_correlationId( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _getKeysType adb_getKeysType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_set_correlationId( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _getKeysType adb_getKeysType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_reset_correlationId( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _getKeysType adb_getKeysType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getKeysType_get_userId( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _getKeysType adb_getKeysType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_set_userId( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _getKeysType adb_getKeysType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_reset_userId( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _getKeysType adb_getKeysType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getKeysType_get_statusMessage( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _getKeysType adb_getKeysType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_set_statusMessage( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _getKeysType adb_getKeysType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_reset_statusMessage( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _getKeysType adb_getKeysType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysType_get_return( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _getKeysType adb_getKeysType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_set_return( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _getKeysType adb_getKeysType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_reset_return( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for serviceTag. ++ * @param _getKeysType adb_getKeysType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getKeysType_get_serviceTag( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for serviceTag. ++ * @param _getKeysType adb_getKeysType_t object ++ * @param env pointer to environment struct ++ * @param arg_serviceTag axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_set_serviceTag( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_serviceTag); ++ ++ /** ++ * Resetter for serviceTag ++ * @param _getKeysType adb_getKeysType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_reset_serviceTag( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _getKeysType adb_getKeysType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysType_is_correlationId_nil( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _getKeysType adb_getKeysType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysType_is_userId_nil( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _getKeysType adb_getKeysType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysType_is_statusMessage_nil( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _getKeysType adb_getKeysType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_set_statusMessage_nil( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _getKeysType adb_getKeysType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysType_is_return_nil( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether serviceTag is nill ++ * @param _getKeysType adb_getKeysType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysType_is_serviceTag_nil( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _getKeysType adb_getKeysType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getKeysType_deserialize( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _getKeysType adb_getKeysType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_getKeysType_declare_parent_namespaces( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _getKeysType adb_getKeysType_t object ++ * @param env pointer to environment struct ++ * @param getKeysType_om_node node to serialize from ++ * @param getKeysType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_getKeysType_serialize( ++ adb_getKeysType_t* _getKeysType, ++ const axutil_env_t *env, ++ axiom_node_t* getKeysType_om_node, axiom_element_t *getKeysType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_getKeysType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getKeysType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_GETKEYSTYPE_H */ ++ ++ + +=== added file 'gatherlog/generated/adb_getLogsResponseType.c' +--- old/gatherlog/generated/adb_getLogsResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/adb_getLogsResponseType.c 2010-01-05 01:00:28 +0000 +@@ -0,0 +1,3086 @@ ++ ++ ++ /** ++ * adb_getLogsResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_getLogsResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = getLogsResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_getLogsResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ axis2_char_t* property_serviceTag; ++ ++ ++ axis2_bool_t is_valid_serviceTag; ++ ++ ++ axis2_char_t* property_CCLog; ++ ++ ++ axis2_bool_t is_valid_CCLog; ++ ++ ++ axis2_char_t* property_NCLog; ++ ++ ++ axis2_bool_t is_valid_NCLog; ++ ++ ++ axis2_char_t* property_httpdLog; ++ ++ ++ axis2_bool_t is_valid_httpdLog; ++ ++ ++ axis2_char_t* property_axis2Log; ++ ++ ++ axis2_bool_t is_valid_axis2Log; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_correlationId_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_userId_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_return_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_serviceTag_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_CCLog_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_NCLog_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_httpdLog_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_axis2Log_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_getLogsResponseType_t* AXIS2_CALL ++ adb_getLogsResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_getLogsResponseType_t *_getLogsResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _getLogsResponseType = (adb_getLogsResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_getLogsResponseType_t)); ++ ++ if(NULL == _getLogsResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_getLogsResponseType, 0, sizeof(adb_getLogsResponseType_t)); ++ ++ _getLogsResponseType->property_correlationId = NULL; ++ _getLogsResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _getLogsResponseType->property_userId = NULL; ++ _getLogsResponseType->is_valid_userId = AXIS2_FALSE; ++ _getLogsResponseType->property_statusMessage = NULL; ++ _getLogsResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _getLogsResponseType->is_valid_return = AXIS2_FALSE; ++ _getLogsResponseType->property_serviceTag = NULL; ++ _getLogsResponseType->is_valid_serviceTag = AXIS2_FALSE; ++ _getLogsResponseType->property_CCLog = NULL; ++ _getLogsResponseType->is_valid_CCLog = AXIS2_FALSE; ++ _getLogsResponseType->property_NCLog = NULL; ++ _getLogsResponseType->is_valid_NCLog = AXIS2_FALSE; ++ _getLogsResponseType->property_httpdLog = NULL; ++ _getLogsResponseType->is_valid_httpdLog = AXIS2_FALSE; ++ _getLogsResponseType->property_axis2Log = NULL; ++ _getLogsResponseType->is_valid_axis2Log = AXIS2_FALSE; ++ ++ ++ return _getLogsResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_free ( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE); ++ ++ adb_getLogsResponseType_reset_correlationId(_getLogsResponseType, env); ++ adb_getLogsResponseType_reset_userId(_getLogsResponseType, env); ++ adb_getLogsResponseType_reset_statusMessage(_getLogsResponseType, env); ++ adb_getLogsResponseType_reset_return(_getLogsResponseType, env); ++ adb_getLogsResponseType_reset_serviceTag(_getLogsResponseType, env); ++ adb_getLogsResponseType_reset_CCLog(_getLogsResponseType, env); ++ adb_getLogsResponseType_reset_NCLog(_getLogsResponseType, env); ++ adb_getLogsResponseType_reset_httpdLog(_getLogsResponseType, env); ++ adb_getLogsResponseType_reset_axis2Log(_getLogsResponseType, env); ++ ++ ++ if(_getLogsResponseType) ++ { ++ AXIS2_FREE(env->allocator, _getLogsResponseType); ++ _getLogsResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_deserialize( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for getLogsResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getLogsResponseType_set_correlationId(_getLogsResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_getLogsResponseType_set_correlationId(_getLogsResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getLogsResponseType_set_userId(_getLogsResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_getLogsResponseType_set_userId(_getLogsResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getLogsResponseType_set_statusMessage(_getLogsResponseType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_getLogsResponseType_set_return(_getLogsResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_getLogsResponseType_set_return(_getLogsResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building serviceTag element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "serviceTag", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getLogsResponseType_set_serviceTag(_getLogsResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element serviceTag"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_getLogsResponseType_set_serviceTag(_getLogsResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for serviceTag "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building CCLog element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "CCLog", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getLogsResponseType_set_CCLog(_getLogsResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element CCLog"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_getLogsResponseType_set_CCLog(_getLogsResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for CCLog "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building NCLog element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "NCLog", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getLogsResponseType_set_NCLog(_getLogsResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element NCLog"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_getLogsResponseType_set_NCLog(_getLogsResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for NCLog "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building httpdLog element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "httpdLog", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getLogsResponseType_set_httpdLog(_getLogsResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element httpdLog"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_getLogsResponseType_set_httpdLog(_getLogsResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for httpdLog "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building axis2Log element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "axis2Log", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getLogsResponseType_set_axis2Log(_getLogsResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element axis2Log"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_getLogsResponseType_set_axis2Log(_getLogsResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for axis2Log "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_getLogsResponseType_declare_parent_namespaces( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_getLogsResponseType_serialize( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *text_value_6; ++ axis2_char_t *text_value_6_temp; ++ ++ axis2_char_t *text_value_7; ++ axis2_char_t *text_value_7_temp; ++ ++ axis2_char_t *text_value_8; ++ axis2_char_t *text_value_8_temp; ++ ++ axis2_char_t *text_value_9; ++ axis2_char_t *text_value_9_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getLogsResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _getLogsResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getLogsResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _getLogsResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getLogsResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _getLogsResponseType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getLogsResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_getLogsResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getLogsResponseType->is_valid_serviceTag) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("serviceTag"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("serviceTag"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing serviceTag element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sserviceTag>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _getLogsResponseType->property_serviceTag; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getLogsResponseType->is_valid_CCLog) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("CCLog"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("CCLog"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing CCLog element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sCCLog>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_6 = _getLogsResponseType->property_CCLog; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE); ++ if (text_value_6_temp) ++ { ++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp)); ++ AXIS2_FREE(env->allocator, text_value_6_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getLogsResponseType->is_valid_NCLog) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("NCLog"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("NCLog"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing NCLog element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sNCLog>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_7 = _getLogsResponseType->property_NCLog; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE); ++ if (text_value_7_temp) ++ { ++ axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp)); ++ AXIS2_FREE(env->allocator, text_value_7_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getLogsResponseType->is_valid_httpdLog) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("httpdLog"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("httpdLog"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing httpdLog element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%shttpdLog>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_8 = _getLogsResponseType->property_httpdLog; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE); ++ if (text_value_8_temp) ++ { ++ axutil_stream_write(stream, env, text_value_8_temp, axutil_strlen(text_value_8_temp)); ++ AXIS2_FREE(env->allocator, text_value_8_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getLogsResponseType->is_valid_axis2Log) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("axis2Log"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("axis2Log"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing axis2Log element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%saxis2Log>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_9 = _getLogsResponseType->property_axis2Log; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_9_temp = axutil_xml_quote_string(env, text_value_9, AXIS2_TRUE); ++ if (text_value_9_temp) ++ { ++ axutil_stream_write(stream, env, text_value_9_temp, axutil_strlen(text_value_9_temp)); ++ AXIS2_FREE(env->allocator, text_value_9_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_9, axutil_strlen(text_value_9)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getLogsResponseType_get_correlationId( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, NULL); ++ ++ ++ return _getLogsResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_correlationId( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE); ++ ++ if(_getLogsResponseType->is_valid_correlationId && ++ arg_correlationId == _getLogsResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getLogsResponseType_reset_correlationId(_getLogsResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getLogsResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _getLogsResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _getLogsResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_reset_correlationId( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getLogsResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getLogsResponseType->property_correlationId); ++ _getLogsResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _getLogsResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsResponseType_is_correlationId_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_TRUE); ++ ++ return !_getLogsResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_correlationId_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_getLogsResponseType_reset_correlationId(_getLogsResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getLogsResponseType_get_userId( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, NULL); ++ ++ ++ return _getLogsResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_userId( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE); ++ ++ if(_getLogsResponseType->is_valid_userId && ++ arg_userId == _getLogsResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getLogsResponseType_reset_userId(_getLogsResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getLogsResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _getLogsResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _getLogsResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_reset_userId( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getLogsResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getLogsResponseType->property_userId); ++ _getLogsResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _getLogsResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsResponseType_is_userId_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_TRUE); ++ ++ return !_getLogsResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_userId_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_getLogsResponseType_reset_userId(_getLogsResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getLogsResponseType_get_statusMessage( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, NULL); ++ ++ ++ return _getLogsResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_statusMessage( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE); ++ ++ if(_getLogsResponseType->is_valid_statusMessage && ++ arg_statusMessage == _getLogsResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getLogsResponseType_reset_statusMessage(_getLogsResponseType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getLogsResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _getLogsResponseType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _getLogsResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_reset_statusMessage( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getLogsResponseType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getLogsResponseType->property_statusMessage); ++ _getLogsResponseType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _getLogsResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsResponseType_is_statusMessage_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_TRUE); ++ ++ return !_getLogsResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_statusMessage_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_getLogsResponseType_reset_statusMessage(_getLogsResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsResponseType_get_return( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, (axis2_bool_t)0); ++ ++ ++ return _getLogsResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_return( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE); ++ ++ if(_getLogsResponseType->is_valid_return && ++ arg_return == _getLogsResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getLogsResponseType_reset_return(_getLogsResponseType, env); ++ ++ _getLogsResponseType->property_return = arg_return; ++ _getLogsResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_reset_return( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE); ++ ++ ++ _getLogsResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsResponseType_is_return_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_TRUE); ++ ++ return !_getLogsResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_return_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_getLogsResponseType_reset_return(_getLogsResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for serviceTag. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getLogsResponseType_get_serviceTag( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, NULL); ++ ++ ++ return _getLogsResponseType->property_serviceTag; ++ } ++ ++ /** ++ * setter for serviceTag ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_serviceTag( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_serviceTag) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE); ++ ++ if(_getLogsResponseType->is_valid_serviceTag && ++ arg_serviceTag == _getLogsResponseType->property_serviceTag) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getLogsResponseType_reset_serviceTag(_getLogsResponseType, env); ++ ++ ++ if(NULL == arg_serviceTag) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getLogsResponseType->property_serviceTag = (axis2_char_t *)axutil_strdup(env, arg_serviceTag); ++ if(NULL == _getLogsResponseType->property_serviceTag) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for serviceTag"); ++ return AXIS2_FAILURE; ++ } ++ _getLogsResponseType->is_valid_serviceTag = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for serviceTag ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_reset_serviceTag( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getLogsResponseType->property_serviceTag != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getLogsResponseType->property_serviceTag); ++ _getLogsResponseType->property_serviceTag = NULL; ++ } ++ ++ ++ ++ _getLogsResponseType->is_valid_serviceTag = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether serviceTag is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsResponseType_is_serviceTag_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_TRUE); ++ ++ return !_getLogsResponseType->is_valid_serviceTag; ++ } ++ ++ /** ++ * Set serviceTag to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_serviceTag_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_getLogsResponseType_reset_serviceTag(_getLogsResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for CCLog. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getLogsResponseType_get_CCLog( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, NULL); ++ ++ ++ return _getLogsResponseType->property_CCLog; ++ } ++ ++ /** ++ * setter for CCLog ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_CCLog( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_CCLog) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE); ++ ++ if(_getLogsResponseType->is_valid_CCLog && ++ arg_CCLog == _getLogsResponseType->property_CCLog) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getLogsResponseType_reset_CCLog(_getLogsResponseType, env); ++ ++ ++ if(NULL == arg_CCLog) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getLogsResponseType->property_CCLog = (axis2_char_t *)axutil_strdup(env, arg_CCLog); ++ if(NULL == _getLogsResponseType->property_CCLog) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for CCLog"); ++ return AXIS2_FAILURE; ++ } ++ _getLogsResponseType->is_valid_CCLog = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for CCLog ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_reset_CCLog( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getLogsResponseType->property_CCLog != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getLogsResponseType->property_CCLog); ++ _getLogsResponseType->property_CCLog = NULL; ++ } ++ ++ ++ ++ _getLogsResponseType->is_valid_CCLog = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether CCLog is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsResponseType_is_CCLog_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_TRUE); ++ ++ return !_getLogsResponseType->is_valid_CCLog; ++ } ++ ++ /** ++ * Set CCLog to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_CCLog_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_getLogsResponseType_reset_CCLog(_getLogsResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for NCLog. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getLogsResponseType_get_NCLog( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, NULL); ++ ++ ++ return _getLogsResponseType->property_NCLog; ++ } ++ ++ /** ++ * setter for NCLog ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_NCLog( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_NCLog) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE); ++ ++ if(_getLogsResponseType->is_valid_NCLog && ++ arg_NCLog == _getLogsResponseType->property_NCLog) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getLogsResponseType_reset_NCLog(_getLogsResponseType, env); ++ ++ ++ if(NULL == arg_NCLog) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getLogsResponseType->property_NCLog = (axis2_char_t *)axutil_strdup(env, arg_NCLog); ++ if(NULL == _getLogsResponseType->property_NCLog) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for NCLog"); ++ return AXIS2_FAILURE; ++ } ++ _getLogsResponseType->is_valid_NCLog = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for NCLog ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_reset_NCLog( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getLogsResponseType->property_NCLog != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getLogsResponseType->property_NCLog); ++ _getLogsResponseType->property_NCLog = NULL; ++ } ++ ++ ++ ++ _getLogsResponseType->is_valid_NCLog = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether NCLog is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsResponseType_is_NCLog_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_TRUE); ++ ++ return !_getLogsResponseType->is_valid_NCLog; ++ } ++ ++ /** ++ * Set NCLog to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_NCLog_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_getLogsResponseType_reset_NCLog(_getLogsResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for httpdLog. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getLogsResponseType_get_httpdLog( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, NULL); ++ ++ ++ return _getLogsResponseType->property_httpdLog; ++ } ++ ++ /** ++ * setter for httpdLog ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_httpdLog( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_httpdLog) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE); ++ ++ if(_getLogsResponseType->is_valid_httpdLog && ++ arg_httpdLog == _getLogsResponseType->property_httpdLog) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getLogsResponseType_reset_httpdLog(_getLogsResponseType, env); ++ ++ ++ if(NULL == arg_httpdLog) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getLogsResponseType->property_httpdLog = (axis2_char_t *)axutil_strdup(env, arg_httpdLog); ++ if(NULL == _getLogsResponseType->property_httpdLog) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for httpdLog"); ++ return AXIS2_FAILURE; ++ } ++ _getLogsResponseType->is_valid_httpdLog = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for httpdLog ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_reset_httpdLog( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getLogsResponseType->property_httpdLog != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getLogsResponseType->property_httpdLog); ++ _getLogsResponseType->property_httpdLog = NULL; ++ } ++ ++ ++ ++ _getLogsResponseType->is_valid_httpdLog = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether httpdLog is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsResponseType_is_httpdLog_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_TRUE); ++ ++ return !_getLogsResponseType->is_valid_httpdLog; ++ } ++ ++ /** ++ * Set httpdLog to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_httpdLog_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_getLogsResponseType_reset_httpdLog(_getLogsResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for axis2Log. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getLogsResponseType_get_axis2Log( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, NULL); ++ ++ ++ return _getLogsResponseType->property_axis2Log; ++ } ++ ++ /** ++ * setter for axis2Log ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_axis2Log( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_axis2Log) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE); ++ ++ if(_getLogsResponseType->is_valid_axis2Log && ++ arg_axis2Log == _getLogsResponseType->property_axis2Log) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getLogsResponseType_reset_axis2Log(_getLogsResponseType, env); ++ ++ ++ if(NULL == arg_axis2Log) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getLogsResponseType->property_axis2Log = (axis2_char_t *)axutil_strdup(env, arg_axis2Log); ++ if(NULL == _getLogsResponseType->property_axis2Log) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for axis2Log"); ++ return AXIS2_FAILURE; ++ } ++ _getLogsResponseType->is_valid_axis2Log = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for axis2Log ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_reset_axis2Log( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getLogsResponseType->property_axis2Log != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getLogsResponseType->property_axis2Log); ++ _getLogsResponseType->property_axis2Log = NULL; ++ } ++ ++ ++ ++ _getLogsResponseType->is_valid_axis2Log = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether axis2Log is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsResponseType_is_axis2Log_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_TRUE); ++ ++ return !_getLogsResponseType->is_valid_axis2Log; ++ } ++ ++ /** ++ * Set axis2Log to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_axis2Log_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_getLogsResponseType_reset_axis2Log(_getLogsResponseType, env); ++ } ++ ++ ++ + +=== added file 'gatherlog/generated/adb_getLogsResponseType.h' +--- old/gatherlog/generated/adb_getLogsResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/adb_getLogsResponseType.h 2010-01-05 01:00:28 +0000 +@@ -0,0 +1,622 @@ ++ ++ ++ #ifndef ADB_GETLOGSRESPONSETYPE_H ++ #define ADB_GETLOGSRESPONSETYPE_H ++ ++ /** ++ * adb_getLogsResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_getLogsResponseType class ++ */ ++ typedef struct adb_getLogsResponseType adb_getLogsResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_getLogsResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_getLogsResponseType_t object ++ */ ++ adb_getLogsResponseType_t* AXIS2_CALL ++ adb_getLogsResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_getLogsResponseType_t object ++ * @param _getLogsResponseType adb_getLogsResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_free ( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getLogsResponseType_get_correlationId( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_correlationId( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_reset_correlationId( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getLogsResponseType_get_userId( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_userId( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_reset_userId( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getLogsResponseType_get_statusMessage( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_statusMessage( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_reset_statusMessage( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsResponseType_get_return( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_return( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_reset_return( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for serviceTag. ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getLogsResponseType_get_serviceTag( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for serviceTag. ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_serviceTag axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_serviceTag( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_serviceTag); ++ ++ /** ++ * Resetter for serviceTag ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_reset_serviceTag( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for CCLog. ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getLogsResponseType_get_CCLog( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for CCLog. ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_CCLog axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_CCLog( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_CCLog); ++ ++ /** ++ * Resetter for CCLog ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_reset_CCLog( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for NCLog. ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getLogsResponseType_get_NCLog( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for NCLog. ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_NCLog axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_NCLog( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_NCLog); ++ ++ /** ++ * Resetter for NCLog ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_reset_NCLog( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for httpdLog. ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getLogsResponseType_get_httpdLog( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for httpdLog. ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_httpdLog axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_httpdLog( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_httpdLog); ++ ++ /** ++ * Resetter for httpdLog ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_reset_httpdLog( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for axis2Log. ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getLogsResponseType_get_axis2Log( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for axis2Log. ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_axis2Log axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_axis2Log( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_axis2Log); ++ ++ /** ++ * Resetter for axis2Log ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_reset_axis2Log( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsResponseType_is_correlationId_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsResponseType_is_userId_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsResponseType_is_statusMessage_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_set_statusMessage_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsResponseType_is_return_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether serviceTag is nill ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsResponseType_is_serviceTag_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether CCLog is nill ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsResponseType_is_CCLog_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether NCLog is nill ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsResponseType_is_NCLog_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether httpdLog is nill ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsResponseType_is_httpdLog_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether axis2Log is nill ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsResponseType_is_axis2Log_nil( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsResponseType_deserialize( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_getLogsResponseType_declare_parent_namespaces( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _getLogsResponseType adb_getLogsResponseType_t object ++ * @param env pointer to environment struct ++ * @param getLogsResponseType_om_node node to serialize from ++ * @param getLogsResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_getLogsResponseType_serialize( ++ adb_getLogsResponseType_t* _getLogsResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* getLogsResponseType_om_node, axiom_element_t *getLogsResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_getLogsResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_GETLOGSRESPONSETYPE_H */ ++ ++ + +=== added file 'gatherlog/generated/adb_getLogsType.c' +--- old/gatherlog/generated/adb_getLogsType.c 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/adb_getLogsType.c 2010-01-05 01:00:28 +0000 +@@ -0,0 +1,1738 @@ ++ ++ ++ /** ++ * adb_getLogsType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_getLogsType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = getLogsType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_getLogsType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ axis2_char_t* property_serviceTag; ++ ++ ++ axis2_bool_t is_valid_serviceTag; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_set_correlationId_nil( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_set_userId_nil( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_set_return_nil( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_set_serviceTag_nil( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_getLogsType_t* AXIS2_CALL ++ adb_getLogsType_create( ++ const axutil_env_t *env) ++ { ++ adb_getLogsType_t *_getLogsType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _getLogsType = (adb_getLogsType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_getLogsType_t)); ++ ++ if(NULL == _getLogsType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_getLogsType, 0, sizeof(adb_getLogsType_t)); ++ ++ _getLogsType->property_correlationId = NULL; ++ _getLogsType->is_valid_correlationId = AXIS2_FALSE; ++ _getLogsType->property_userId = NULL; ++ _getLogsType->is_valid_userId = AXIS2_FALSE; ++ _getLogsType->property_statusMessage = NULL; ++ _getLogsType->is_valid_statusMessage = AXIS2_FALSE; ++ _getLogsType->is_valid_return = AXIS2_FALSE; ++ _getLogsType->property_serviceTag = NULL; ++ _getLogsType->is_valid_serviceTag = AXIS2_FALSE; ++ ++ ++ return _getLogsType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_free ( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_FAILURE); ++ ++ adb_getLogsType_reset_correlationId(_getLogsType, env); ++ adb_getLogsType_reset_userId(_getLogsType, env); ++ adb_getLogsType_reset_statusMessage(_getLogsType, env); ++ adb_getLogsType_reset_return(_getLogsType, env); ++ adb_getLogsType_reset_serviceTag(_getLogsType, env); ++ ++ ++ if(_getLogsType) ++ { ++ AXIS2_FREE(env->allocator, _getLogsType); ++ _getLogsType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_deserialize( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for getLogsType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getLogsType_set_correlationId(_getLogsType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_getLogsType_set_correlationId(_getLogsType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getLogsType_set_userId(_getLogsType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_getLogsType_set_userId(_getLogsType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getLogsType_set_statusMessage(_getLogsType, env, ++ text_value); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_getLogsType_set_return(_getLogsType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_getLogsType_set_return(_getLogsType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building serviceTag element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "serviceTag", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_getLogsType_set_serviceTag(_getLogsType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element serviceTag"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_getLogsType_set_serviceTag(_getLogsType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for serviceTag "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_getLogsType_declare_parent_namespaces( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_getLogsType_serialize( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getLogsType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getLogsType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _getLogsType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getLogsType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _getLogsType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getLogsType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _getLogsType->property_statusMessage; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getLogsType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_4, (_getLogsType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_getLogsType->is_valid_serviceTag) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("serviceTag"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("serviceTag"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing serviceTag element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sserviceTag>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _getLogsType->property_serviceTag; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getLogsType_get_correlationId( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getLogsType, NULL); ++ ++ ++ return _getLogsType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_set_correlationId( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_FAILURE); ++ ++ if(_getLogsType->is_valid_correlationId && ++ arg_correlationId == _getLogsType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getLogsType_reset_correlationId(_getLogsType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getLogsType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _getLogsType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _getLogsType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_reset_correlationId( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getLogsType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getLogsType->property_correlationId); ++ _getLogsType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _getLogsType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsType_is_correlationId_nil( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_TRUE); ++ ++ return !_getLogsType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_set_correlationId_nil( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env) ++ { ++ return adb_getLogsType_reset_correlationId(_getLogsType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getLogsType_get_userId( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getLogsType, NULL); ++ ++ ++ return _getLogsType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_set_userId( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_FAILURE); ++ ++ if(_getLogsType->is_valid_userId && ++ arg_userId == _getLogsType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getLogsType_reset_userId(_getLogsType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getLogsType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _getLogsType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _getLogsType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_reset_userId( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getLogsType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getLogsType->property_userId); ++ _getLogsType->property_userId = NULL; ++ } ++ ++ ++ ++ _getLogsType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsType_is_userId_nil( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_TRUE); ++ ++ return !_getLogsType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_set_userId_nil( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env) ++ { ++ return adb_getLogsType_reset_userId(_getLogsType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getLogsType_get_statusMessage( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getLogsType, NULL); ++ ++ ++ return _getLogsType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_set_statusMessage( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_FAILURE); ++ ++ if(_getLogsType->is_valid_statusMessage && ++ arg_statusMessage == _getLogsType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getLogsType_reset_statusMessage(_getLogsType, env); ++ ++ ++ if(NULL == arg_statusMessage) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getLogsType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage); ++ if(NULL == _getLogsType->property_statusMessage) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage"); ++ return AXIS2_FAILURE; ++ } ++ _getLogsType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_reset_statusMessage( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getLogsType->property_statusMessage != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getLogsType->property_statusMessage); ++ _getLogsType->property_statusMessage = NULL; ++ } ++ ++ ++ ++ _getLogsType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsType_is_statusMessage_nil( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_TRUE); ++ ++ return !_getLogsType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_set_statusMessage_nil( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env) ++ { ++ return adb_getLogsType_reset_statusMessage(_getLogsType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsType_get_return( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _getLogsType, (axis2_bool_t)0); ++ ++ ++ return _getLogsType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_set_return( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_FAILURE); ++ ++ if(_getLogsType->is_valid_return && ++ arg_return == _getLogsType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getLogsType_reset_return(_getLogsType, env); ++ ++ _getLogsType->property_return = arg_return; ++ _getLogsType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_reset_return( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_FAILURE); ++ ++ ++ _getLogsType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsType_is_return_nil( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_TRUE); ++ ++ return !_getLogsType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_set_return_nil( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env) ++ { ++ return adb_getLogsType_reset_return(_getLogsType, env); ++ } ++ ++ ++ ++ /** ++ * getter for serviceTag. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getLogsType_get_serviceTag( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _getLogsType, NULL); ++ ++ ++ return _getLogsType->property_serviceTag; ++ } ++ ++ /** ++ * setter for serviceTag ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_set_serviceTag( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_serviceTag) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_FAILURE); ++ ++ if(_getLogsType->is_valid_serviceTag && ++ arg_serviceTag == _getLogsType->property_serviceTag) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_getLogsType_reset_serviceTag(_getLogsType, env); ++ ++ ++ if(NULL == arg_serviceTag) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _getLogsType->property_serviceTag = (axis2_char_t *)axutil_strdup(env, arg_serviceTag); ++ if(NULL == _getLogsType->property_serviceTag) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for serviceTag"); ++ return AXIS2_FAILURE; ++ } ++ _getLogsType->is_valid_serviceTag = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for serviceTag ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_reset_serviceTag( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_getLogsType->property_serviceTag != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _getLogsType->property_serviceTag); ++ _getLogsType->property_serviceTag = NULL; ++ } ++ ++ ++ ++ _getLogsType->is_valid_serviceTag = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether serviceTag is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsType_is_serviceTag_nil( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_TRUE); ++ ++ return !_getLogsType->is_valid_serviceTag; ++ } ++ ++ /** ++ * Set serviceTag to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_set_serviceTag_nil( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env) ++ { ++ return adb_getLogsType_reset_serviceTag(_getLogsType, env); ++ } ++ ++ ++ + +=== added file 'gatherlog/generated/adb_getLogsType.h' +--- old/gatherlog/generated/adb_getLogsType.h 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/adb_getLogsType.h 2010-01-05 01:00:28 +0000 +@@ -0,0 +1,414 @@ ++ ++ ++ #ifndef ADB_GETLOGSTYPE_H ++ #define ADB_GETLOGSTYPE_H ++ ++ /** ++ * adb_getLogsType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_getLogsType class ++ */ ++ typedef struct adb_getLogsType adb_getLogsType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_getLogsType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_getLogsType_t object ++ */ ++ adb_getLogsType_t* AXIS2_CALL ++ adb_getLogsType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_getLogsType_t object ++ * @param _getLogsType adb_getLogsType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_free ( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _getLogsType adb_getLogsType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getLogsType_get_correlationId( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _getLogsType adb_getLogsType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_set_correlationId( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _getLogsType adb_getLogsType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_reset_correlationId( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _getLogsType adb_getLogsType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getLogsType_get_userId( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _getLogsType adb_getLogsType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_set_userId( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _getLogsType adb_getLogsType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_reset_userId( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _getLogsType adb_getLogsType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getLogsType_get_statusMessage( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _getLogsType adb_getLogsType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_set_statusMessage( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _getLogsType adb_getLogsType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_reset_statusMessage( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _getLogsType adb_getLogsType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsType_get_return( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _getLogsType adb_getLogsType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_set_return( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _getLogsType adb_getLogsType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_reset_return( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for serviceTag. ++ * @param _getLogsType adb_getLogsType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_getLogsType_get_serviceTag( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for serviceTag. ++ * @param _getLogsType adb_getLogsType_t object ++ * @param env pointer to environment struct ++ * @param arg_serviceTag axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_set_serviceTag( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_serviceTag); ++ ++ /** ++ * Resetter for serviceTag ++ * @param _getLogsType adb_getLogsType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_reset_serviceTag( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _getLogsType adb_getLogsType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsType_is_correlationId_nil( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _getLogsType adb_getLogsType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsType_is_userId_nil( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _getLogsType adb_getLogsType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsType_is_statusMessage_nil( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _getLogsType adb_getLogsType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_set_statusMessage_nil( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _getLogsType adb_getLogsType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsType_is_return_nil( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether serviceTag is nill ++ * @param _getLogsType adb_getLogsType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsType_is_serviceTag_nil( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _getLogsType adb_getLogsType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_getLogsType_deserialize( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _getLogsType adb_getLogsType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_getLogsType_declare_parent_namespaces( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _getLogsType adb_getLogsType_t object ++ * @param env pointer to environment struct ++ * @param getLogsType_om_node node to serialize from ++ * @param getLogsType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_getLogsType_serialize( ++ adb_getLogsType_t* _getLogsType, ++ const axutil_env_t *env, ++ axiom_node_t* getLogsType_om_node, axiom_element_t *getLogsType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_getLogsType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_getLogsType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_GETLOGSTYPE_H */ ++ ++ + +=== added file 'gatherlog/generated/axis2_skel_EucalyptusGL.c' +--- old/gatherlog/generated/axis2_skel_EucalyptusGL.c 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/axis2_skel_EucalyptusGL.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,46 @@ ++ ++ ++ /** ++ * axis2_skel_EucalyptusGL.c ++ * ++ * This file was auto-generated from WSDL for "EucalyptusGL|http://eucalyptus.ucsb.edu/" service ++ * by the Apache Axis2/C version: 1.4 Built on : Apr 26, 2008 (06:24:30 EDT) ++ * axis2_skel_EucalyptusGL Axis2/C skeleton for the axisService ++ */ ++ ++#include "axis2_skel_EucalyptusGL.h" ++#include ++ ++ ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "GetLogs|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param getLogs ++ * ++ * @return adb_GetLogsResponse_t** @param getLogs ++ */ ++ adb_GetLogsResponse_t* axis2_skel_EucalyptusGL_GetLogs (const axutil_env_t *env , ++ adb_GetLogs_t* getLogs ) ++ { return (GetLogsMarshal(getLogs, env)); } ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "GetKeys|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param getKeys ++ * ++ * @return adb_GetKeysResponse_t** @param getKeys ++ */ ++ adb_GetKeysResponse_t* axis2_skel_EucalyptusGL_GetKeys (const axutil_env_t *env , ++ adb_GetKeys_t* getKeys ) ++ { return (GetKeysMarshal(getKeys, env)); } ++ ++ + +=== added file 'gatherlog/generated/axis2_skel_EucalyptusGL.h' +--- old/gatherlog/generated/axis2_skel_EucalyptusGL.h 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/axis2_skel_EucalyptusGL.h 2010-01-05 01:00:28 +0000 +@@ -0,0 +1,69 @@ ++ ++ ++ /** ++ * axis2_skel_EucalyptusGL.h ++ * ++ * This file was auto-generated from WSDL for "EucalyptusGL|http://eucalyptus.ucsb.edu/" service ++ * by the Apache Axis2/C version: 1.4 Built on : Apr 26, 2008 (06:24:30 EDT) ++ * axis2_skel_EucalyptusGL Axis2/C skeleton for the axisService- Header file ++ */ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ ++ ++ #include "adb_GetLogs.h" ++ ++ #include "adb_GetLogsResponse.h" ++ ++ #include "adb_GetKeys.h" ++ ++ #include "adb_GetKeysResponse.h" ++ ++ ++ #ifdef __cplusplus ++ extern "C" { ++ #endif ++ ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "GetLogs|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param getLogs ++ * ++ * @return adb_GetLogsResponse_t** @param getLogs ++ */ ++ adb_GetLogsResponse_t* axis2_skel_EucalyptusGL_GetLogs (const axutil_env_t *env , ++ adb_GetLogs_t* getLogs ); ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "GetKeys|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param getKeys ++ * ++ * @return adb_GetKeysResponse_t** @param getKeys ++ */ ++ adb_GetKeysResponse_t* axis2_skel_EucalyptusGL_GetKeys (const axutil_env_t *env , ++ adb_GetKeys_t* getKeys ); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ + +=== added file 'gatherlog/generated/axis2_stub_EucalyptusGL.c' +--- old/gatherlog/generated/axis2_stub_EucalyptusGL.c 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/axis2_stub_EucalyptusGL.c 2010-01-05 01:00:26 +0000 +@@ -0,0 +1,697 @@ ++ ++ ++ /** ++ * axis2_stub_EucalyptusGL.c ++ * ++ * This file was auto-generated from WSDL for "EucalyptusGL|http://eucalyptus.ucsb.edu/" service ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:24:30 EDT) ++ */ ++ ++ #include "axis2_stub_EucalyptusGL.h" ++ #include ++ ++ /** ++ * axis2_stub_EucalyptusGL C implementation ++ */ ++ ++ axis2_stub_t* ++ axis2_stub_create_EucalyptusGL(const axutil_env_t *env, ++ axis2_char_t *client_home, ++ axis2_char_t *endpoint_uri) ++ { ++ axis2_stub_t *stub = NULL; ++ axis2_endpoint_ref_t *endpoint_ref = NULL; ++ AXIS2_FUNC_PARAM_CHECK (client_home, env, NULL) ++ ++ if (NULL == endpoint_uri) ++ { ++ endpoint_uri = axis2_stub_get_endpoint_uri_of_EucalyptusGL(env); ++ } ++ ++ endpoint_ref = axis2_endpoint_ref_create(env, endpoint_uri); ++ ++ stub = axis2_stub_create_with_endpoint_ref_and_client_home (env, endpoint_ref, client_home); ++ ++ if (NULL == stub) ++ { ++ if(NULL != endpoint_ref) ++ { ++ axis2_endpoint_ref_free(endpoint_ref, env); ++ } ++ return NULL; ++ } ++ ++ ++ axis2_stub_populate_services_for_EucalyptusGL(stub, env); ++ return stub; ++ } ++ ++ ++ void ++ axis2_stub_populate_services_for_EucalyptusGL(axis2_stub_t *stub, const axutil_env_t *env) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axutil_qname_t *svc_qname = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axis2_svc_t *svc = NULL; ++ axis2_op_t *op = NULL; ++ axis2_op_t *annon_op = NULL; ++ axis2_msg_t *msg_out = NULL; ++ axis2_msg_t *msg_in = NULL; ++ axis2_msg_t *msg_out_fault = NULL; ++ axis2_msg_t *msg_in_fault = NULL; ++ ++ ++ /* Modifying the Service */ ++ svc_client = axis2_stub_get_svc_client (stub, env ); ++ svc = (axis2_svc_t*)axis2_svc_client_get_svc( svc_client, env ); ++ ++ annon_op = axis2_svc_get_op_with_name(svc, env, AXIS2_ANON_OUT_IN_OP); ++ msg_out = axis2_op_get_msg(annon_op, env, AXIS2_MSG_OUT); ++ msg_in = axis2_op_get_msg(annon_op, env, AXIS2_MSG_IN); ++ msg_out_fault = axis2_op_get_msg(annon_op, env, AXIS2_MSG_OUT_FAULT); ++ msg_in_fault = axis2_op_get_msg(annon_op, env, AXIS2_MSG_IN_FAULT); ++ ++ svc_qname = axutil_qname_create(env,"EucalyptusGL" ,NULL, NULL); ++ axis2_svc_set_qname (svc, env, svc_qname); ++ ++ /* creating the operations*/ ++ ++ ++ op_qname = axutil_qname_create(env, ++ "GetLogs" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "GetKeys" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ } ++ ++ /** ++ *return end point picked from wsdl ++ */ ++ axis2_char_t* ++ axis2_stub_get_endpoint_uri_of_EucalyptusGL( const axutil_env_t *env ) ++ { ++ axis2_char_t *endpoint_uri = NULL; ++ /* set the address from here */ ++ ++ endpoint_uri = "http://cc:9090/axis2/services/EucalyptusGL"; ++ ++ return endpoint_uri; ++ } ++ ++ ++ ++ /** ++ * auto generated method signature ++ * for "GetLogs|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _getLogs ++ * ++ * @return adb_GetLogsResponse_t* ++ */ ++ adb_GetLogsResponse_t* ++ axis2_stub_op_EucalyptusGL_GetLogs( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_GetLogs_t* _getLogs) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_GetLogsResponse_t* ret_val = NULL; ++ ++ payload = adb_GetLogs_serialize(_getLogs, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusGL#GetLogs"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusGL#GetLogs"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_GetLogsResponse_create(env); ++ ++ if(adb_GetLogsResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_GetLogsResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the GetLogsResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "GetKeys|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _getKeys ++ * ++ * @return adb_GetKeysResponse_t* ++ */ ++ adb_GetKeysResponse_t* ++ axis2_stub_op_EucalyptusGL_GetKeys( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_GetKeys_t* _getKeys) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_GetKeysResponse_t* ret_val = NULL; ++ ++ payload = adb_GetKeys_serialize(_getKeys, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusGL#GetKeys"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusGL#GetKeys"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_GetKeysResponse_create(env); ++ ++ if(adb_GetKeysResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_GetKeysResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the GetKeysResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ ++ struct axis2_stub_EucalyptusGL_GetLogs_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_GetLogsResponse_t* _getLogsResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusGL_GetLogs(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusGL_GetLogs_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusGL_GetLogs_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusGL_GetLogs(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_GetLogsResponse_t* _getLogsResponse, void *data); ++ struct axis2_stub_EucalyptusGL_GetLogs_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_GetLogsResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusGL_GetLogs_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_GetLogsResponse_create(env); ++ ++ if(adb_GetLogsResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_GetLogsResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "GetLogs|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _getLogs ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusGL_GetLogs( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_GetLogs_t* _getLogs, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_GetLogsResponse_t* _getLogsResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusGL_GetLogs_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusGL_GetLogs_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusGL_GetLogs_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_GetLogs_serialize(_getLogs, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusGL#GetLogs"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusGL#GetLogs"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusGL_GetLogs); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusGL_GetLogs); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusGL_GetKeys_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_GetKeysResponse_t* _getKeysResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusGL_GetKeys(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusGL_GetKeys_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusGL_GetKeys_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusGL_GetKeys(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_GetKeysResponse_t* _getKeysResponse, void *data); ++ struct axis2_stub_EucalyptusGL_GetKeys_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_GetKeysResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusGL_GetKeys_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_GetKeysResponse_create(env); ++ ++ if(adb_GetKeysResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_GetKeysResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "GetKeys|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _getKeys ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusGL_GetKeys( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_GetKeys_t* _getKeys, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_GetKeysResponse_t* _getKeysResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusGL_GetKeys_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusGL_GetKeys_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusGL_GetKeys_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_GetKeys_serialize(_getKeys, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusGL#GetKeys"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusGL#GetKeys"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusGL_GetKeys); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusGL_GetKeys); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ ++ /** ++ * function to free any soap input headers ++ */ ++ ++ ++ ++ /** ++ * function to free any soap output headers ++ */ ++ ++ + +=== added file 'gatherlog/generated/axis2_stub_EucalyptusGL.h' +--- old/gatherlog/generated/axis2_stub_EucalyptusGL.h 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/axis2_stub_EucalyptusGL.h 2010-01-05 01:00:26 +0000 +@@ -0,0 +1,152 @@ ++ ++ ++ /** ++ * axis2_stub_EucalyptusGL.h ++ * ++ * This file was auto-generated from WSDL for "EucalyptusGL|http://eucalyptus.ucsb.edu/" service ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:24:30 EDT) ++ */ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ ++ #include "adb_GetLogs.h" ++ ++ #include "adb_GetLogsResponse.h" ++ ++ #include "adb_GetKeys.h" ++ ++ #include "adb_GetKeysResponse.h" ++ ++ ++ #ifdef __cplusplus ++ extern "C" { ++ #endif ++ ++ /***************** function prototypes - for header file *************/ ++ /** ++ * axis2_stub_create_EucalyptusGL ++ * Create and return the stub with services populated ++ * @param env Environment ( mandatory) ++ * @param client_home Axis2/C home ( mandatory ) ++ * @param endpoint_uri Service endpoint uri( optional ) - if NULL default picked from WSDL used ++ * @return Newly created stub object ++ */ ++ axis2_stub_t* ++ axis2_stub_create_EucalyptusGL(const axutil_env_t *env, ++ axis2_char_t *client_home, ++ axis2_char_t *endpoint_uri); ++ /** ++ * axis2_stub_populate_services_for_EucalyptusGL ++ * populate the svc in stub with the service and operations ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ */ ++ void axis2_stub_populate_services_for_EucalyptusGL( axis2_stub_t *stub, const axutil_env_t *env); ++ /** ++ * axis2_stub_get_endpoint_uri_of_EucalyptusGL ++ * Return the endpoint URI picked from WSDL ++ * @param env environment ( mandatory) ++ * @return The endpoint picked from WSDL ++ */ ++ axis2_char_t * ++ axis2_stub_get_endpoint_uri_of_EucalyptusGL(const axutil_env_t *env); ++ ++ ++ /** ++ * Auto generated function declaration ++ * for "GetLogs|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _getLogs ++ * ++ * @return adb_GetLogsResponse_t* ++ */ ++ ++ ++ adb_GetLogsResponse_t* ++ axis2_stub_op_EucalyptusGL_GetLogs( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_GetLogs_t* _getLogs); ++ ++ /** ++ * Auto generated function declaration ++ * for "GetKeys|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _getKeys ++ * ++ * @return adb_GetKeysResponse_t* ++ */ ++ ++ ++ adb_GetKeysResponse_t* ++ axis2_stub_op_EucalyptusGL_GetKeys( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_GetKeys_t* _getKeys); ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "GetLogs|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _getLogs ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusGL_GetLogs( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_GetLogs_t* _getLogs, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_GetLogsResponse_t* _getLogsResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "GetKeys|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _getKeys ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusGL_GetKeys( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_GetKeys_t* _getKeys, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_GetKeysResponse_t* _getKeysResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ ++ /** ++ * function to free any soap input headers ++ * @param env environment ( mandatory) ++ */ ++ ++ ++ /** ++ * function to free any soap output headers ++ * @param env environment ( mandatory) ++ */ ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ + +=== added file 'gatherlog/generated/axis2_svc_skel_EucalyptusGL.c' +--- old/gatherlog/generated/axis2_svc_skel_EucalyptusGL.c 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/axis2_svc_skel_EucalyptusGL.c 2010-01-05 01:00:29 +0000 +@@ -0,0 +1,297 @@ ++ ++ ++ /** ++ * axis2_svc_skel_EucalyptusGL.c ++ * ++ * This file was auto-generated from WSDL for "EucalyptusGL|http://eucalyptus.ucsb.edu/" service ++ * by the Apache Axis2 version: 1.4 Built on : Apr 26, 2008 (06:24:30 EDT) ++ * axis2_svc_skel_EucalyptusGL ++ */ ++ ++ #include "axis2_skel_EucalyptusGL.h" ++ #include ++ #include ++ #include ++ ++ /** ++ * functions prototypes ++ */ ++ ++ /* On fault, handle the fault */ ++ axiom_node_t* AXIS2_CALL ++ axis2_svc_skel_EucalyptusGL_on_fault(axis2_svc_skeleton_t *svc_skeleton, ++ const axutil_env_t *env, axiom_node_t *node); ++ ++ /* Free the service */ ++ int AXIS2_CALL ++ axis2_svc_skel_EucalyptusGL_free(axis2_svc_skeleton_t *svc_skeleton, ++ const axutil_env_t *env); ++ ++ /* This method invokes the right service method */ ++ axiom_node_t* AXIS2_CALL ++ axis2_svc_skel_EucalyptusGL_invoke(axis2_svc_skeleton_t *svc_skeleton, ++ const axutil_env_t *env, ++ axiom_node_t *node, ++ axis2_msg_ctx_t *msg_ctx); ++ ++ /* Initializing the environment */ ++ int AXIS2_CALL ++ axis2_svc_skel_EucalyptusGL_init(axis2_svc_skeleton_t *svc_skeleton, ++ const axutil_env_t *env); ++ ++ /* Create the service */ ++ axis2_svc_skeleton_t* AXIS2_CALL ++ axis2_svc_skel_EucalyptusGL_create(const axutil_env_t *env); ++ ++ static const axis2_svc_skeleton_ops_t axis2_svc_skel_EucalyptusGL_svc_skeleton_ops_var = { ++ axis2_svc_skel_EucalyptusGL_init, ++ axis2_svc_skel_EucalyptusGL_invoke, ++ axis2_svc_skel_EucalyptusGL_on_fault, ++ axis2_svc_skel_EucalyptusGL_free ++ }; ++ ++ ++ /** ++ * Implementations for the functions ++ */ ++ ++ axis2_svc_skeleton_t* AXIS2_CALL ++ axis2_svc_skel_EucalyptusGL_create(const axutil_env_t *env) ++ { ++ axis2_svc_skeleton_t *svc_skeleton = NULL; ++ /* Allocate memory for the structs */ ++ svc_skeleton = (axis2_svc_skeleton_t *)AXIS2_MALLOC(env->allocator, ++ sizeof(axis2_svc_skeleton_t)); ++ ++ svc_skeleton->ops = &axis2_svc_skel_EucalyptusGL_svc_skeleton_ops_var; ++ ++ ++ return svc_skeleton; ++ } ++ ++ ++ int AXIS2_CALL ++ axis2_svc_skel_EucalyptusGL_init(axis2_svc_skeleton_t *svc_skeleton, ++ const axutil_env_t *env) ++ { ++ /* Any initialization stuff of axis2_skel_EucalyptusGL goes here */ ++ return AXIS2_SUCCESS; ++ } ++ ++ int AXIS2_CALL ++ axis2_svc_skel_EucalyptusGL_free(axis2_svc_skeleton_t *svc_skeleton, ++ const axutil_env_t *env) ++ { ++ ++ /* Free the service skeleton */ ++ if (svc_skeleton) ++ { ++ AXIS2_FREE(env->allocator, svc_skeleton); ++ svc_skeleton = NULL; ++ } ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * function to free any soap input headers ++ */ ++ ++ ++ ++ ++ /** ++ * function to free any soap output headers ++ */ ++ ++ ++ ++ ++ ++ /* ++ * This method invokes the right service method ++ */ ++ axiom_node_t* AXIS2_CALL ++ axis2_svc_skel_EucalyptusGL_invoke(axis2_svc_skeleton_t *svc_skeleton, ++ const axutil_env_t *env, ++ axiom_node_t *content_node, ++ axis2_msg_ctx_t *msg_ctx) ++ { ++ /* depending on the function name invoke the ++ * corresponding method ++ */ ++ ++ axis2_op_ctx_t *operation_ctx = NULL; ++ axis2_op_t *operation = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axis2_char_t *op_name = NULL; ++ axis2_msg_ctx_t *in_msg_ctx = NULL; ++ ++ axiom_soap_envelope_t *req_soap_env = NULL; ++ axiom_soap_header_t *req_soap_header = NULL; ++ axiom_soap_envelope_t *res_soap_env = NULL; ++ axiom_soap_header_t *res_soap_header = NULL; ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_node_t *input_header = NULL; ++ axiom_node_t *output_header = NULL; ++ axiom_node_t *header_base_node = NULL; ++ ++ ++ adb_GetLogsResponse_t* ret_val1 = NULL; ++ adb_GetLogs_t* input_val1 = NULL; ++ ++ adb_GetKeysResponse_t* ret_val2 = NULL; ++ adb_GetKeys_t* input_val2 = NULL; ++ ++ ++ operation_ctx = axis2_msg_ctx_get_op_ctx(msg_ctx, env); ++ operation = axis2_op_ctx_get_op(operation_ctx, env); ++ op_qname = (axutil_qname_t *)axis2_op_get_qname(operation, env); ++ op_name = axutil_qname_get_localpart(op_qname, env); ++ ++ if (op_name) ++ { ++ ++ ++ if ( axutil_strcmp(op_name, "GetLogs") == 0 ) ++ { ++ ++ input_val1 = ++ adb_GetLogs_create( env); ++ if( AXIS2_FAILURE == adb_GetLogs_deserialize(input_val1, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_GetLogs_free(input_val1, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the GetLogs_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val1 = axis2_skel_EucalyptusGL_GetLogs(env ,input_val1 ); ++ ++ if ( NULL == ret_val1 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from GetLogs "); ++ ++ adb_GetLogs_free(input_val1, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_GetLogsResponse_serialize(ret_val1, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_GetLogsResponse_free(ret_val1, env); ++ ++ adb_GetLogs_free(input_val1, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ ++ if ( axutil_strcmp(op_name, "GetKeys") == 0 ) ++ { ++ ++ input_val2 = ++ adb_GetKeys_create( env); ++ if( AXIS2_FAILURE == adb_GetKeys_deserialize(input_val2, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_GetKeys_free(input_val2, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the GetKeys_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val2 = axis2_skel_EucalyptusGL_GetKeys(env ,input_val2 ); ++ ++ if ( NULL == ret_val2 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from GetKeys "); ++ ++ adb_GetKeys_free(input_val2, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_GetKeysResponse_serialize(ret_val2, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_GetKeysResponse_free(ret_val2, env); ++ ++ adb_GetKeys_free(input_val2, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ } ++ printf("axis2_svc_skel_EucalyptusGL service ERROR: invalid OM parameters in request\n"); ++ return NULL; ++ } ++ ++ axiom_node_t* AXIS2_CALL ++ axis2_svc_skel_EucalyptusGL_on_fault(axis2_svc_skeleton_t *svc_skeleton, ++ const axutil_env_t *env, axiom_node_t *node) ++ { ++ axiom_node_t *error_node = NULL; ++ axiom_element_t *error_ele = NULL; ++ error_ele = axiom_element_create(env, node, "fault", NULL, ++ &error_node); ++ axiom_element_set_text(error_ele, env, "EucalyptusGL|http://eucalyptus.ucsb.edu/ failed", ++ error_node); ++ return error_node; ++ } ++ ++ ++ /** ++ * Following block distinguish the exposed part of the dll. ++ */ ++ ++ AXIS2_EXTERN int ++ axis2_get_instance(struct axis2_svc_skeleton **inst, ++ const axutil_env_t *env) ++ { ++ *inst = axis2_svc_skel_EucalyptusGL_create(env); ++ ++ if(!(*inst)) ++ { ++ return AXIS2_FAILURE; ++ } ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ AXIS2_EXTERN int ++ axis2_remove_instance(axis2_svc_skeleton_t *inst, ++ const axutil_env_t *env) ++ { ++ axis2_status_t status = AXIS2_FAILURE; ++ if (inst) ++ { ++ status = AXIS2_SVC_SKELETON_FREE(inst, env); ++ } ++ return status; ++ } ++ ++ ++ ++ + +=== added file 'gatherlog/generated/build.sh' +--- old/gatherlog/generated/build.sh 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/build.sh 2010-01-05 01:00:29 +0000 +@@ -0,0 +1,11 @@ ++ ++gcc -g -shared -olibEucalyptusGL.so -I $AXIS2C_HOME/include/axis2-1.3.1/ -Isrc -L$AXIS2C_HOME/lib \ ++ -laxutil \ ++ -laxis2_axiom \ ++ -laxis2_engine \ ++ -laxis2_parser \ ++ -lpthread \ ++ -laxis2_http_sender \ ++ -laxis2_http_receiver \ ++ -lguththila \ ++ *.c src/*.c + +=== added file 'gatherlog/generated/services.xml' +--- old/gatherlog/generated/services.xml 1970-01-01 00:00:00 +0000 ++++ new/gatherlog/generated/services.xml 2010-01-05 01:00:29 +0000 +@@ -0,0 +1,13 @@ ++ ++ ++ ++EucalyptusGL ++EucalyptusGL Service ++ ++ ++EucalyptusGL#GetLogs ++ ++ ++EucalyptusGL#GetKeys ++ ++ + +=== added directory 'node/generated' +=== added file 'node/generated/adb_eucalyptusMessage.c' +--- old/node/generated/adb_eucalyptusMessage.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_eucalyptusMessage.c 2010-01-05 01:00:34 +0000 +@@ -0,0 +1,1365 @@ ++ ++ ++ /** ++ * adb_eucalyptusMessage.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_eucalyptusMessage.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = eucalyptusMessage ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_eucalyptusMessage ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_correlationId_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_userId_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_return_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_eucalyptusMessage_t* AXIS2_CALL ++ adb_eucalyptusMessage_create( ++ const axutil_env_t *env) ++ { ++ adb_eucalyptusMessage_t *_eucalyptusMessage = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _eucalyptusMessage = (adb_eucalyptusMessage_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_eucalyptusMessage_t)); ++ ++ if(NULL == _eucalyptusMessage) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_eucalyptusMessage, 0, sizeof(adb_eucalyptusMessage_t)); ++ ++ _eucalyptusMessage->property_correlationId = NULL; ++ _eucalyptusMessage->is_valid_correlationId = AXIS2_FALSE; ++ _eucalyptusMessage->property_userId = NULL; ++ _eucalyptusMessage->is_valid_userId = AXIS2_FALSE; ++ _eucalyptusMessage->is_valid_return = AXIS2_FALSE; ++ _eucalyptusMessage->is_valid_statusMessage = AXIS2_FALSE; ++ ++ ++ return _eucalyptusMessage; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_free ( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ adb_eucalyptusMessage_reset_correlationId(_eucalyptusMessage, env); ++ adb_eucalyptusMessage_reset_userId(_eucalyptusMessage, env); ++ adb_eucalyptusMessage_reset_return(_eucalyptusMessage, env); ++ adb_eucalyptusMessage_reset_statusMessage(_eucalyptusMessage, env); ++ ++ ++ if(_eucalyptusMessage) ++ { ++ AXIS2_FREE(env->allocator, _eucalyptusMessage); ++ _eucalyptusMessage = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_deserialize( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for eucalyptusMessage : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_eucalyptusMessage_set_correlationId(_eucalyptusMessage, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_eucalyptusMessage_set_correlationId(_eucalyptusMessage, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_eucalyptusMessage_set_userId(_eucalyptusMessage, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_eucalyptusMessage_set_userId(_eucalyptusMessage, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_eucalyptusMessage_set_return(_eucalyptusMessage, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_eucalyptusMessage_set_return(_eucalyptusMessage, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_eucalyptusMessage_set_statusMessage(_eucalyptusMessage, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_eucalyptusMessage_declare_parent_namespaces( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_eucalyptusMessage_serialize( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_eucalyptusMessage->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _eucalyptusMessage->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_eucalyptusMessage->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _eucalyptusMessage->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_eucalyptusMessage->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_eucalyptusMessage->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_eucalyptusMessage->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _eucalyptusMessage->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_eucalyptusMessage_get_correlationId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, NULL); ++ ++ ++ return _eucalyptusMessage->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_correlationId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ if(_eucalyptusMessage->is_valid_correlationId && ++ arg_correlationId == _eucalyptusMessage->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_eucalyptusMessage_reset_correlationId(_eucalyptusMessage, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _eucalyptusMessage->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _eucalyptusMessage->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _eucalyptusMessage->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_reset_correlationId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_eucalyptusMessage->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _eucalyptusMessage->property_correlationId); ++ _eucalyptusMessage->property_correlationId = NULL; ++ } ++ ++ ++ ++ _eucalyptusMessage->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_correlationId_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_TRUE); ++ ++ return !_eucalyptusMessage->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_correlationId_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ return adb_eucalyptusMessage_reset_correlationId(_eucalyptusMessage, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_eucalyptusMessage_get_userId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, NULL); ++ ++ ++ return _eucalyptusMessage->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_userId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ if(_eucalyptusMessage->is_valid_userId && ++ arg_userId == _eucalyptusMessage->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_eucalyptusMessage_reset_userId(_eucalyptusMessage, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _eucalyptusMessage->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _eucalyptusMessage->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _eucalyptusMessage->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_reset_userId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_eucalyptusMessage->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _eucalyptusMessage->property_userId); ++ _eucalyptusMessage->property_userId = NULL; ++ } ++ ++ ++ ++ _eucalyptusMessage->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_userId_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_TRUE); ++ ++ return !_eucalyptusMessage->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_userId_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ return adb_eucalyptusMessage_reset_userId(_eucalyptusMessage, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_get_return( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, (axis2_bool_t)0); ++ ++ ++ return _eucalyptusMessage->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_return( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ if(_eucalyptusMessage->is_valid_return && ++ arg_return == _eucalyptusMessage->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_eucalyptusMessage_reset_return(_eucalyptusMessage, env); ++ ++ _eucalyptusMessage->property_return = arg_return; ++ _eucalyptusMessage->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_reset_return( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ ++ _eucalyptusMessage->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_return_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_TRUE); ++ ++ return !_eucalyptusMessage->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_return_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ return adb_eucalyptusMessage_reset_return(_eucalyptusMessage, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_eucalyptusMessage_get_statusMessage( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, (int)0); ++ ++ ++ return _eucalyptusMessage->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_statusMessage( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ if(_eucalyptusMessage->is_valid_statusMessage && ++ arg_statusMessage == _eucalyptusMessage->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_eucalyptusMessage_reset_statusMessage(_eucalyptusMessage, env); ++ ++ _eucalyptusMessage->property_statusMessage = arg_statusMessage; ++ _eucalyptusMessage->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_reset_statusMessage( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE); ++ ++ ++ _eucalyptusMessage->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_statusMessage_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_TRUE); ++ ++ return !_eucalyptusMessage->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_statusMessage_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env) ++ { ++ return adb_eucalyptusMessage_reset_statusMessage(_eucalyptusMessage, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_eucalyptusMessage.h' +--- old/node/generated/adb_eucalyptusMessage.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_eucalyptusMessage.h 2010-01-05 01:00:34 +0000 +@@ -0,0 +1,362 @@ ++ ++ ++ #ifndef ADB_EUCALYPTUSMESSAGE_H ++ #define ADB_EUCALYPTUSMESSAGE_H ++ ++ /** ++ * adb_eucalyptusMessage.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_eucalyptusMessage class ++ */ ++ typedef struct adb_eucalyptusMessage adb_eucalyptusMessage_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_eucalyptusMessage_t ++ * @param env pointer to environment struct ++ * @return newly created adb_eucalyptusMessage_t object ++ */ ++ adb_eucalyptusMessage_t* AXIS2_CALL ++ adb_eucalyptusMessage_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_eucalyptusMessage_t object ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_free ( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_eucalyptusMessage_get_correlationId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_correlationId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_reset_correlationId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_eucalyptusMessage_get_userId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_userId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_reset_userId( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_get_return( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_return( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_reset_return( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_eucalyptusMessage_get_statusMessage( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_statusMessage( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_reset_statusMessage( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_correlationId_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_userId_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_return_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_statusMessage_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_set_statusMessage_nil( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_eucalyptusMessage_deserialize( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_eucalyptusMessage_declare_parent_namespaces( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object ++ * @param env pointer to environment struct ++ * @param eucalyptusMessage_om_node node to serialize from ++ * @param eucalyptusMessage_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_eucalyptusMessage_serialize( ++ adb_eucalyptusMessage_t* _eucalyptusMessage, ++ const axutil_env_t *env, ++ axiom_node_t* eucalyptusMessage_om_node, axiom_element_t *eucalyptusMessage_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_eucalyptusMessage is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_eucalyptusMessage_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_EUCALYPTUSMESSAGE_H */ ++ ++ + +=== added file 'node/generated/adb_instanceType.c' +--- old/node/generated/adb_instanceType.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_instanceType.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,6284 @@ ++ ++ ++ /** ++ * adb_instanceType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_instanceType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = instanceType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_instanceType ++ { ++ axis2_char_t* property_reservationId; ++ ++ ++ axis2_bool_t is_valid_reservationId; ++ ++ ++ axis2_char_t* property_instanceId; ++ ++ ++ axis2_bool_t is_valid_instanceId; ++ ++ ++ axis2_char_t* property_imageId; ++ ++ ++ axis2_bool_t is_valid_imageId; ++ ++ ++ axis2_char_t* property_kernelId; ++ ++ ++ axis2_bool_t is_valid_kernelId; ++ ++ ++ axis2_char_t* property_ramdiskId; ++ ++ ++ axis2_bool_t is_valid_ramdiskId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_char_t* property_keyName; ++ ++ ++ axis2_bool_t is_valid_keyName; ++ ++ ++ adb_virtualMachineType_t* property_instanceType; ++ ++ ++ axis2_bool_t is_valid_instanceType; ++ ++ ++ adb_netConfigType_t* property_netParams; ++ ++ ++ axis2_bool_t is_valid_netParams; ++ ++ ++ axis2_char_t* property_stateName; ++ ++ ++ axis2_bool_t is_valid_stateName; ++ ++ ++ axutil_date_time_t* property_launchTime; ++ ++ ++ axis2_bool_t is_valid_launchTime; ++ ++ ++ axis2_char_t* property_userData; ++ ++ ++ axis2_bool_t is_valid_userData; ++ ++ ++ axis2_char_t* property_launchIndex; ++ ++ ++ axis2_bool_t is_valid_launchIndex; ++ ++ ++ axutil_array_list_t* property_groupNames; ++ ++ ++ axis2_bool_t is_valid_groupNames; ++ ++ ++ axutil_array_list_t* property_volumes; ++ ++ ++ axis2_bool_t is_valid_volumes; ++ ++ ++ axis2_char_t* property_serviceTag; ++ ++ ++ axis2_bool_t is_valid_serviceTag; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_reservationId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_instanceId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_imageId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_kernelId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_ramdiskId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_userId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_keyName_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_instanceType_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_netParams_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_stateName_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_launchTime_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_userData_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_launchIndex_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_groupNames_nil_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_groupNames_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_volumes_nil_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_volumes_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_serviceTag_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_instanceType_t* AXIS2_CALL ++ adb_instanceType_create( ++ const axutil_env_t *env) ++ { ++ adb_instanceType_t *_instanceType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _instanceType = (adb_instanceType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_instanceType_t)); ++ ++ if(NULL == _instanceType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_instanceType, 0, sizeof(adb_instanceType_t)); ++ ++ _instanceType->property_reservationId = NULL; ++ _instanceType->is_valid_reservationId = AXIS2_FALSE; ++ _instanceType->property_instanceId = NULL; ++ _instanceType->is_valid_instanceId = AXIS2_FALSE; ++ _instanceType->property_imageId = NULL; ++ _instanceType->is_valid_imageId = AXIS2_FALSE; ++ _instanceType->property_kernelId = NULL; ++ _instanceType->is_valid_kernelId = AXIS2_FALSE; ++ _instanceType->property_ramdiskId = NULL; ++ _instanceType->is_valid_ramdiskId = AXIS2_FALSE; ++ _instanceType->property_userId = NULL; ++ _instanceType->is_valid_userId = AXIS2_FALSE; ++ _instanceType->property_keyName = NULL; ++ _instanceType->is_valid_keyName = AXIS2_FALSE; ++ _instanceType->property_instanceType = NULL; ++ _instanceType->is_valid_instanceType = AXIS2_FALSE; ++ _instanceType->property_netParams = NULL; ++ _instanceType->is_valid_netParams = AXIS2_FALSE; ++ _instanceType->property_stateName = NULL; ++ _instanceType->is_valid_stateName = AXIS2_FALSE; ++ _instanceType->property_launchTime = NULL; ++ _instanceType->is_valid_launchTime = AXIS2_FALSE; ++ _instanceType->property_userData = NULL; ++ _instanceType->is_valid_userData = AXIS2_FALSE; ++ _instanceType->property_launchIndex = NULL; ++ _instanceType->is_valid_launchIndex = AXIS2_FALSE; ++ _instanceType->property_groupNames = NULL; ++ _instanceType->is_valid_groupNames = AXIS2_FALSE; ++ _instanceType->property_volumes = NULL; ++ _instanceType->is_valid_volumes = AXIS2_FALSE; ++ _instanceType->property_serviceTag = NULL; ++ _instanceType->is_valid_serviceTag = AXIS2_FALSE; ++ ++ ++ return _instanceType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_free ( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ adb_instanceType_reset_reservationId(_instanceType, env); ++ adb_instanceType_reset_instanceId(_instanceType, env); ++ adb_instanceType_reset_imageId(_instanceType, env); ++ adb_instanceType_reset_kernelId(_instanceType, env); ++ adb_instanceType_reset_ramdiskId(_instanceType, env); ++ adb_instanceType_reset_userId(_instanceType, env); ++ adb_instanceType_reset_keyName(_instanceType, env); ++ adb_instanceType_reset_instanceType(_instanceType, env); ++ adb_instanceType_reset_netParams(_instanceType, env); ++ adb_instanceType_reset_stateName(_instanceType, env); ++ adb_instanceType_reset_launchTime(_instanceType, env); ++ adb_instanceType_reset_userData(_instanceType, env); ++ adb_instanceType_reset_launchIndex(_instanceType, env); ++ adb_instanceType_reset_groupNames(_instanceType, env); ++ adb_instanceType_reset_volumes(_instanceType, env); ++ adb_instanceType_reset_serviceTag(_instanceType, env); ++ ++ ++ if(_instanceType) ++ { ++ AXIS2_FREE(env->allocator, _instanceType); ++ _instanceType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_deserialize( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for instanceType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building reservationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "reservationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_instanceType_set_reservationId(_instanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element reservationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_instanceType_set_reservationId(_instanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for reservationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element reservationId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_instanceType_set_instanceId(_instanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_instanceType_set_instanceId(_instanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element instanceId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building imageId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "imageId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_instanceType_set_imageId(_instanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element imageId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_instanceType_set_imageId(_instanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for imageId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element imageId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building kernelId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "kernelId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_instanceType_set_kernelId(_instanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element kernelId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_instanceType_set_kernelId(_instanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for kernelId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element kernelId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building ramdiskId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "ramdiskId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_instanceType_set_ramdiskId(_instanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element ramdiskId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_instanceType_set_ramdiskId(_instanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ramdiskId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_instanceType_set_userId(_instanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_instanceType_set_userId(_instanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element userId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building keyName element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "keyName", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_instanceType_set_keyName(_instanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element keyName"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_instanceType_set_keyName(_instanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for keyName "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element keyName missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceType element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceType", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_virtualMachineType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_virtualMachineType_create(env); ++ ++ status = adb_virtualMachineType_deserialize((adb_virtualMachineType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element instanceType"); ++ } ++ else ++ { ++ status = adb_instanceType_set_instanceType(_instanceType, env, ++ (adb_virtualMachineType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceType "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element instanceType missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building netParams element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "netParams", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_netConfigType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_netConfigType_create(env); ++ ++ status = adb_netConfigType_deserialize((adb_netConfigType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element netParams"); ++ } ++ else ++ { ++ status = adb_instanceType_set_netParams(_instanceType, env, ++ (adb_netConfigType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for netParams "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building stateName element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "stateName", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_instanceType_set_stateName(_instanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element stateName"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_instanceType_set_stateName(_instanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for stateName "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element stateName missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building launchTime element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "launchTime", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ element = (void*)axutil_date_time_create(env); ++ status = axutil_date_time_deserialize_date_time((axutil_date_time_t*)element, env, ++ text_value); ++ if(AXIS2_FAILURE == status) ++ { ++ if(element != NULL) ++ { ++ axutil_date_time_free((axutil_date_time_t*)element, env); ++ } ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building element launchTime "); ++ } ++ else ++ { ++ status = adb_instanceType_set_launchTime(_instanceType, env, ++ (axutil_date_time_t*)element); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element launchTime"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for launchTime "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userData element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userData", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_instanceType_set_userData(_instanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userData"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_instanceType_set_userData(_instanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userData "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building launchIndex element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "launchIndex", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_instanceType_set_launchIndex(_instanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element launchIndex"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_instanceType_set_launchIndex(_instanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for launchIndex "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building groupNames array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building groupNames element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "groupNames", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value)); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element groupNames"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, "")); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for groupNames "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "groupNames (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_instanceType_set_groupNames(_instanceType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building volumes array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building volumes element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "volumes", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ element = (void*)adb_volumeType_create(env); ++ ++ status = adb_volumeType_deserialize((adb_volumeType_t*)element, env, ++ ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building element volumes "); ++ } ++ else ++ { ++ axutil_array_list_add_at(arr_list, env, i, element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for volumes "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "volumes (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_instanceType_set_volumes(_instanceType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building serviceTag element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "serviceTag", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_instanceType_set_serviceTag(_instanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element serviceTag"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_instanceType_set_serviceTag(_instanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for serviceTag "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_instanceType_declare_parent_namespaces( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_instanceType_serialize( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t *text_value_4; ++ axis2_char_t *text_value_4_temp; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *text_value_6; ++ axis2_char_t *text_value_6_temp; ++ ++ axis2_char_t *text_value_7; ++ axis2_char_t *text_value_7_temp; ++ ++ axis2_char_t text_value_8[64]; ++ ++ axis2_char_t text_value_9[64]; ++ ++ axis2_char_t *text_value_10; ++ axis2_char_t *text_value_10_temp; ++ ++ axis2_char_t *text_value_11; ++ axis2_char_t *text_value_11_temp; ++ ++ axis2_char_t *text_value_12; ++ axis2_char_t *text_value_12_temp; ++ ++ axis2_char_t *text_value_13; ++ axis2_char_t *text_value_13_temp; ++ ++ axis2_char_t *text_value_14; ++ axis2_char_t *text_value_14_temp; ++ ++ axis2_char_t text_value_15[64]; ++ ++ axis2_char_t *text_value_16; ++ axis2_char_t *text_value_16_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_reservationId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property reservationId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("reservationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("reservationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing reservationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreservationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _instanceType->property_reservationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_instanceId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _instanceType->property_instanceId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_imageId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property imageId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("imageId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("imageId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing imageId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%simageId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _instanceType->property_imageId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_kernelId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property kernelId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("kernelId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("kernelId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing kernelId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%skernelId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_4 = _instanceType->property_kernelId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_4_temp = axutil_xml_quote_string(env, text_value_4, AXIS2_TRUE); ++ if (text_value_4_temp) ++ { ++ axutil_stream_write(stream, env, text_value_4_temp, axutil_strlen(text_value_4_temp)); ++ AXIS2_FREE(env->allocator, text_value_4_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_ramdiskId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ramdiskId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ramdiskId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ramdiskId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sramdiskId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _instanceType->property_ramdiskId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_userId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property userId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_6 = _instanceType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE); ++ if (text_value_6_temp) ++ { ++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp)); ++ AXIS2_FREE(env->allocator, text_value_6_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_keyName) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property keyName"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("keyName"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("keyName"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing keyName element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%skeyName>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_7 = _instanceType->property_keyName; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE); ++ if (text_value_7_temp) ++ { ++ axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp)); ++ AXIS2_FREE(env->allocator, text_value_7_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_instanceType) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceType"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceType"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceType"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceType element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceType", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ if(!adb_virtualMachineType_is_particle()) ++ { ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ } ++ ++ adb_virtualMachineType_serialize(_instanceType->property_instanceType, ++ env, current_node, parent_element, ++ adb_virtualMachineType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index); ++ ++ if(!adb_virtualMachineType_is_particle()) ++ { ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_netParams) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("netParams"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("netParams"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing netParams element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%snetParams", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ if(!adb_netConfigType_is_particle()) ++ { ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ } ++ ++ adb_netConfigType_serialize(_instanceType->property_netParams, ++ env, current_node, parent_element, ++ adb_netConfigType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index); ++ ++ if(!adb_netConfigType_is_particle()) ++ { ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_stateName) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property stateName"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("stateName"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("stateName"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing stateName element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstateName>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_10 = _instanceType->property_stateName; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_10_temp = axutil_xml_quote_string(env, text_value_10, AXIS2_TRUE); ++ if (text_value_10_temp) ++ { ++ axutil_stream_write(stream, env, text_value_10_temp, axutil_strlen(text_value_10_temp)); ++ AXIS2_FREE(env->allocator, text_value_10_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_10, axutil_strlen(text_value_10)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_launchTime) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("launchTime"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("launchTime"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing launchTime element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%slaunchTime>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_11 = axutil_date_time_serialize_date_time(_instanceType->property_launchTime, env); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_11, axutil_strlen(text_value_11)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_userData) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userData"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userData"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userData element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserData>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_12 = _instanceType->property_userData; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_12_temp = axutil_xml_quote_string(env, text_value_12, AXIS2_TRUE); ++ if (text_value_12_temp) ++ { ++ axutil_stream_write(stream, env, text_value_12_temp, axutil_strlen(text_value_12_temp)); ++ AXIS2_FREE(env->allocator, text_value_12_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_12, axutil_strlen(text_value_12)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_launchIndex) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("launchIndex"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("launchIndex"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing launchIndex element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%slaunchIndex>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_13 = _instanceType->property_launchIndex; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_13_temp = axutil_xml_quote_string(env, text_value_13, AXIS2_TRUE); ++ if (text_value_13_temp) ++ { ++ axutil_stream_write(stream, env, text_value_13_temp, axutil_strlen(text_value_13_temp)); ++ AXIS2_FREE(env->allocator, text_value_13_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_13, axutil_strlen(text_value_13)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_groupNames) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("groupNames"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("groupNames"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing groupNames array ++ */ ++ if (_instanceType->property_groupNames != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%sgroupNames>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_instanceType->property_groupNames, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_instanceType->property_groupNames, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing groupNames element ++ */ ++ ++ ++ ++ text_value_14 = (axis2_char_t*)element; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_14_temp = axutil_xml_quote_string(env, text_value_14, AXIS2_TRUE); ++ if (text_value_14_temp) ++ { ++ axutil_stream_write(stream, env, text_value_14_temp, axutil_strlen(text_value_14_temp)); ++ AXIS2_FREE(env->allocator, text_value_14_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_14, axutil_strlen(text_value_14)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_volumes) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("volumes"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("volumes"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing volumes array ++ */ ++ if (_instanceType->property_volumes != NULL) ++ { ++ ++ ++ sprintf(start_input_str, "<%s%svolumes", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_instanceType->property_volumes, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_instanceType->property_volumes, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing volumes element ++ */ ++ ++ ++ ++ if(!adb_volumeType_is_particle()) ++ { ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ } ++ ++ adb_volumeType_serialize((adb_volumeType_t*)element, ++ env, current_node, parent_element, ++ adb_volumeType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index); ++ ++ if(!adb_volumeType_is_particle()) ++ { ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ } ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_instanceType->is_valid_serviceTag) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("serviceTag"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("serviceTag"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing serviceTag element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sserviceTag>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_16 = _instanceType->property_serviceTag; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_16_temp = axutil_xml_quote_string(env, text_value_16, AXIS2_TRUE); ++ if (text_value_16_temp) ++ { ++ axutil_stream_write(stream, env, text_value_16_temp, axutil_strlen(text_value_16_temp)); ++ AXIS2_FREE(env->allocator, text_value_16_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_16, axutil_strlen(text_value_16)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for reservationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_reservationId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_reservationId; ++ } ++ ++ /** ++ * setter for reservationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_reservationId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_reservationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_reservationId && ++ arg_reservationId == _instanceType->property_reservationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_reservationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "reservationId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_instanceType_reset_reservationId(_instanceType, env); ++ ++ ++ if(NULL == arg_reservationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_reservationId = (axis2_char_t *)axutil_strdup(env, arg_reservationId); ++ if(NULL == _instanceType->property_reservationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for reservationId"); ++ return AXIS2_FAILURE; ++ } ++ _instanceType->is_valid_reservationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for reservationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_reservationId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_reservationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _instanceType->property_reservationId); ++ _instanceType->property_reservationId = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_reservationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether reservationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_reservationId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_reservationId; ++ } ++ ++ /** ++ * Set reservationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_reservationId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_reservationId(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_instanceId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_instanceId; ++ } ++ ++ /** ++ * setter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_instanceId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_instanceId && ++ arg_instanceId == _instanceType->property_instanceId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_instanceType_reset_instanceId(_instanceType, env); ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId); ++ if(NULL == _instanceType->property_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId"); ++ return AXIS2_FAILURE; ++ } ++ _instanceType->is_valid_instanceId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_instanceId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_instanceId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _instanceType->property_instanceId); ++ _instanceType->property_instanceId = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_instanceId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_instanceId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_instanceId; ++ } ++ ++ /** ++ * Set instanceId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_instanceId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_instanceId(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for imageId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_imageId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_imageId; ++ } ++ ++ /** ++ * setter for imageId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_imageId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_imageId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_imageId && ++ arg_imageId == _instanceType->property_imageId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_imageId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "imageId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_instanceType_reset_imageId(_instanceType, env); ++ ++ ++ if(NULL == arg_imageId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_imageId = (axis2_char_t *)axutil_strdup(env, arg_imageId); ++ if(NULL == _instanceType->property_imageId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for imageId"); ++ return AXIS2_FAILURE; ++ } ++ _instanceType->is_valid_imageId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for imageId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_imageId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_imageId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _instanceType->property_imageId); ++ _instanceType->property_imageId = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_imageId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether imageId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_imageId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_imageId; ++ } ++ ++ /** ++ * Set imageId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_imageId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_imageId(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for kernelId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_kernelId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_kernelId; ++ } ++ ++ /** ++ * setter for kernelId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_kernelId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_kernelId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_kernelId && ++ arg_kernelId == _instanceType->property_kernelId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_kernelId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "kernelId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_instanceType_reset_kernelId(_instanceType, env); ++ ++ ++ if(NULL == arg_kernelId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_kernelId = (axis2_char_t *)axutil_strdup(env, arg_kernelId); ++ if(NULL == _instanceType->property_kernelId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for kernelId"); ++ return AXIS2_FAILURE; ++ } ++ _instanceType->is_valid_kernelId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for kernelId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_kernelId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_kernelId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _instanceType->property_kernelId); ++ _instanceType->property_kernelId = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_kernelId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether kernelId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_kernelId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_kernelId; ++ } ++ ++ /** ++ * Set kernelId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_kernelId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_kernelId(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for ramdiskId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_ramdiskId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_ramdiskId; ++ } ++ ++ /** ++ * setter for ramdiskId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_ramdiskId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_ramdiskId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_ramdiskId && ++ arg_ramdiskId == _instanceType->property_ramdiskId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_instanceType_reset_ramdiskId(_instanceType, env); ++ ++ ++ if(NULL == arg_ramdiskId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_ramdiskId = (axis2_char_t *)axutil_strdup(env, arg_ramdiskId); ++ if(NULL == _instanceType->property_ramdiskId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for ramdiskId"); ++ return AXIS2_FAILURE; ++ } ++ _instanceType->is_valid_ramdiskId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ramdiskId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_ramdiskId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_ramdiskId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _instanceType->property_ramdiskId); ++ _instanceType->property_ramdiskId = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_ramdiskId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ramdiskId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_ramdiskId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_ramdiskId; ++ } ++ ++ /** ++ * Set ramdiskId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_ramdiskId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_ramdiskId(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_userId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_userId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_userId && ++ arg_userId == _instanceType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "userId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_instanceType_reset_userId(_instanceType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _instanceType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _instanceType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_userId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _instanceType->property_userId); ++ _instanceType->property_userId = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_userId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_userId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_userId(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for keyName. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_keyName( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_keyName; ++ } ++ ++ /** ++ * setter for keyName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_keyName( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_keyName) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_keyName && ++ arg_keyName == _instanceType->property_keyName) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_keyName) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "keyName is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_instanceType_reset_keyName(_instanceType, env); ++ ++ ++ if(NULL == arg_keyName) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_keyName = (axis2_char_t *)axutil_strdup(env, arg_keyName); ++ if(NULL == _instanceType->property_keyName) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for keyName"); ++ return AXIS2_FAILURE; ++ } ++ _instanceType->is_valid_keyName = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for keyName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_keyName( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_keyName != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _instanceType->property_keyName); ++ _instanceType->property_keyName = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_keyName = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether keyName is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_keyName_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_keyName; ++ } ++ ++ /** ++ * Set keyName to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_keyName_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_keyName(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceType. ++ */ ++ adb_virtualMachineType_t* AXIS2_CALL ++ adb_instanceType_get_instanceType( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_instanceType; ++ } ++ ++ /** ++ * setter for instanceType ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_instanceType( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ adb_virtualMachineType_t* arg_instanceType) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_instanceType && ++ arg_instanceType == _instanceType->property_instanceType) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instanceType) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceType is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_instanceType_reset_instanceType(_instanceType, env); ++ ++ ++ if(NULL == arg_instanceType) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_instanceType = arg_instanceType; ++ _instanceType->is_valid_instanceType = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceType ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_instanceType( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_instanceType != NULL) ++ { ++ ++ ++ adb_virtualMachineType_free(_instanceType->property_instanceType, env); ++ _instanceType->property_instanceType = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_instanceType = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceType is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_instanceType_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_instanceType; ++ } ++ ++ /** ++ * Set instanceType to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_instanceType_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_instanceType(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for netParams. ++ */ ++ adb_netConfigType_t* AXIS2_CALL ++ adb_instanceType_get_netParams( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_netParams; ++ } ++ ++ /** ++ * setter for netParams ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_netParams( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ adb_netConfigType_t* arg_netParams) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_netParams && ++ arg_netParams == _instanceType->property_netParams) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_instanceType_reset_netParams(_instanceType, env); ++ ++ ++ if(NULL == arg_netParams) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_netParams = arg_netParams; ++ _instanceType->is_valid_netParams = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for netParams ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_netParams( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_netParams != NULL) ++ { ++ ++ ++ adb_netConfigType_free(_instanceType->property_netParams, env); ++ _instanceType->property_netParams = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_netParams = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether netParams is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_netParams_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_netParams; ++ } ++ ++ /** ++ * Set netParams to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_netParams_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_netParams(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for stateName. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_stateName( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_stateName; ++ } ++ ++ /** ++ * setter for stateName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_stateName( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_stateName) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_stateName && ++ arg_stateName == _instanceType->property_stateName) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_stateName) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "stateName is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_instanceType_reset_stateName(_instanceType, env); ++ ++ ++ if(NULL == arg_stateName) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_stateName = (axis2_char_t *)axutil_strdup(env, arg_stateName); ++ if(NULL == _instanceType->property_stateName) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for stateName"); ++ return AXIS2_FAILURE; ++ } ++ _instanceType->is_valid_stateName = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for stateName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_stateName( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_stateName != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _instanceType->property_stateName); ++ _instanceType->property_stateName = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_stateName = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether stateName is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_stateName_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_stateName; ++ } ++ ++ /** ++ * Set stateName to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_stateName_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_stateName(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for launchTime. ++ */ ++ axutil_date_time_t* AXIS2_CALL ++ adb_instanceType_get_launchTime( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_launchTime; ++ } ++ ++ /** ++ * setter for launchTime ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_launchTime( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ axutil_date_time_t* arg_launchTime) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_launchTime && ++ arg_launchTime == _instanceType->property_launchTime) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_instanceType_reset_launchTime(_instanceType, env); ++ ++ ++ if(NULL == arg_launchTime) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_launchTime = arg_launchTime; ++ _instanceType->is_valid_launchTime = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for launchTime ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_launchTime( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_launchTime != NULL) ++ { ++ ++ ++ axutil_date_time_free(_instanceType->property_launchTime, env); ++ _instanceType->property_launchTime = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_launchTime = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether launchTime is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_launchTime_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_launchTime; ++ } ++ ++ /** ++ * Set launchTime to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_launchTime_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_launchTime(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userData. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_userData( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_userData; ++ } ++ ++ /** ++ * setter for userData ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_userData( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userData) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_userData && ++ arg_userData == _instanceType->property_userData) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_instanceType_reset_userData(_instanceType, env); ++ ++ ++ if(NULL == arg_userData) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_userData = (axis2_char_t *)axutil_strdup(env, arg_userData); ++ if(NULL == _instanceType->property_userData) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userData"); ++ return AXIS2_FAILURE; ++ } ++ _instanceType->is_valid_userData = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userData ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_userData( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_userData != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _instanceType->property_userData); ++ _instanceType->property_userData = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_userData = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userData is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_userData_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_userData; ++ } ++ ++ /** ++ * Set userData to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_userData_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_userData(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for launchIndex. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_launchIndex( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_launchIndex; ++ } ++ ++ /** ++ * setter for launchIndex ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_launchIndex( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_launchIndex) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_launchIndex && ++ arg_launchIndex == _instanceType->property_launchIndex) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_instanceType_reset_launchIndex(_instanceType, env); ++ ++ ++ if(NULL == arg_launchIndex) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_launchIndex = (axis2_char_t *)axutil_strdup(env, arg_launchIndex); ++ if(NULL == _instanceType->property_launchIndex) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for launchIndex"); ++ return AXIS2_FAILURE; ++ } ++ _instanceType->is_valid_launchIndex = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for launchIndex ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_launchIndex( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_launchIndex != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _instanceType->property_launchIndex); ++ _instanceType->property_launchIndex = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_launchIndex = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether launchIndex is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_launchIndex_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_launchIndex; ++ } ++ ++ /** ++ * Set launchIndex to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_launchIndex_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_launchIndex(_instanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for groupNames. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_instanceType_get_groupNames( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_groupNames; ++ } ++ ++ /** ++ * setter for groupNames ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_groupNames( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_groupNames) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_groupNames && ++ arg_groupNames == _instanceType->property_groupNames) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_groupNames, env); ++ ++ if (size > 64) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "groupNames has exceed the maxOccurs(64)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "groupNames has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_groupNames, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_instanceType_reset_groupNames(_instanceType, env); ++ ++ ++ if(NULL == arg_groupNames) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_groupNames = arg_groupNames; ++ if(non_nil_exists) ++ { ++ _instanceType->is_valid_groupNames = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of groupNames. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_groupNames_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i) ++ { ++ axis2_char_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ if(_instanceType->property_groupNames == NULL) ++ { ++ return (axis2_char_t*)0; ++ } ++ ret_val = (axis2_char_t*)axutil_array_list_get(_instanceType->property_groupNames, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of groupNames. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_groupNames_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_groupNames) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if( _instanceType->is_valid_groupNames && ++ _instanceType->property_groupNames && ++ ++ arg_groupNames == (axis2_char_t*)axutil_array_list_get(_instanceType->property_groupNames, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_groupNames) ++ { ++ if(_instanceType->property_groupNames != NULL) ++ { ++ size = axutil_array_list_size(_instanceType->property_groupNames, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_instanceType->property_groupNames, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of groupNames is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_instanceType->property_groupNames == NULL) ++ { ++ _instanceType->property_groupNames = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_instanceType->property_groupNames, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _instanceType->is_valid_groupNames = AXIS2_FALSE; ++ axutil_array_list_set(_instanceType->property_groupNames , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_instanceType->property_groupNames , env, i, axutil_strdup(env, arg_groupNames)); ++ _instanceType->is_valid_groupNames = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to groupNames. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_add_groupNames( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_groupNames) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_groupNames) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_instanceType->property_groupNames == NULL) ++ { ++ _instanceType->property_groupNames = axutil_array_list_create(env, 10); ++ } ++ if(_instanceType->property_groupNames == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for groupNames"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_instanceType->property_groupNames , env, axutil_strdup(env, arg_groupNames)); ++ _instanceType->is_valid_groupNames = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the groupNames array. ++ */ ++ int AXIS2_CALL ++ adb_instanceType_sizeof_groupNames( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, -1); ++ if(_instanceType->property_groupNames == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_instanceType->property_groupNames, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_remove_groupNames_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_instanceType_set_groupNames_nil_at(_instanceType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for groupNames ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_groupNames( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ if (_instanceType->property_groupNames != NULL) ++ { ++ count = axutil_array_list_size(_instanceType->property_groupNames, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_instanceType->property_groupNames, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_instanceType->property_groupNames, env); ++ } ++ _instanceType->is_valid_groupNames = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether groupNames is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_groupNames_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_groupNames; ++ } ++ ++ /** ++ * Set groupNames to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_groupNames_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_groupNames(_instanceType, env); ++ } ++ ++ ++ /** ++ * Check whether groupNames is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_groupNames_nil_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return (_instanceType->is_valid_groupNames == AXIS2_FALSE || ++ NULL == _instanceType->property_groupNames || ++ NULL == axutil_array_list_get(_instanceType->property_groupNames, env, i)); ++ } ++ ++ /** ++ * Set groupNames to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_groupNames_nil_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->property_groupNames == NULL || ++ _instanceType->is_valid_groupNames == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_instanceType->property_groupNames, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_instanceType->property_groupNames, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of groupNames is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_instanceType->property_groupNames == NULL) ++ { ++ _instanceType->is_valid_groupNames = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_instanceType->property_groupNames, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _instanceType->is_valid_groupNames = AXIS2_FALSE; ++ axutil_array_list_set(_instanceType->property_groupNames , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_instanceType->property_groupNames , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ ++ /** ++ * getter for volumes. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_instanceType_get_volumes( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_volumes; ++ } ++ ++ /** ++ * setter for volumes ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_volumes( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_volumes) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_volumes && ++ arg_volumes == _instanceType->property_volumes) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_volumes, env); ++ ++ if (size > 64) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "volumes has exceed the maxOccurs(64)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "volumes has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_volumes, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_instanceType_reset_volumes(_instanceType, env); ++ ++ ++ if(NULL == arg_volumes) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_volumes = arg_volumes; ++ if(non_nil_exists) ++ { ++ _instanceType->is_valid_volumes = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of volumes. ++ */ ++ adb_volumeType_t* AXIS2_CALL ++ adb_instanceType_get_volumes_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i) ++ { ++ adb_volumeType_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ if(_instanceType->property_volumes == NULL) ++ { ++ return (adb_volumeType_t*)0; ++ } ++ ret_val = (adb_volumeType_t*)axutil_array_list_get(_instanceType->property_volumes, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of volumes. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_volumes_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i, ++ adb_volumeType_t* arg_volumes) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if( _instanceType->is_valid_volumes && ++ _instanceType->property_volumes && ++ ++ arg_volumes == (adb_volumeType_t*)axutil_array_list_get(_instanceType->property_volumes, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_volumes) ++ { ++ if(_instanceType->property_volumes != NULL) ++ { ++ size = axutil_array_list_size(_instanceType->property_volumes, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_instanceType->property_volumes, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of volumes is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_instanceType->property_volumes == NULL) ++ { ++ _instanceType->property_volumes = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_instanceType->property_volumes, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ adb_volumeType_free((adb_volumeType_t*)element, env); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _instanceType->is_valid_volumes = AXIS2_FALSE; ++ axutil_array_list_set(_instanceType->property_volumes , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_instanceType->property_volumes , env, i, arg_volumes); ++ _instanceType->is_valid_volumes = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to volumes. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_add_volumes( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ adb_volumeType_t* arg_volumes) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_volumes) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_instanceType->property_volumes == NULL) ++ { ++ _instanceType->property_volumes = axutil_array_list_create(env, 10); ++ } ++ if(_instanceType->property_volumes == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for volumes"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_instanceType->property_volumes , env, arg_volumes); ++ _instanceType->is_valid_volumes = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the volumes array. ++ */ ++ int AXIS2_CALL ++ adb_instanceType_sizeof_volumes( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, -1); ++ if(_instanceType->property_volumes == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_instanceType->property_volumes, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_remove_volumes_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_instanceType_set_volumes_nil_at(_instanceType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for volumes ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_volumes( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ if (_instanceType->property_volumes != NULL) ++ { ++ count = axutil_array_list_size(_instanceType->property_volumes, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_instanceType->property_volumes, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ adb_volumeType_free((adb_volumeType_t*)element, env); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_instanceType->property_volumes, env); ++ } ++ _instanceType->is_valid_volumes = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether volumes is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_volumes_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_volumes; ++ } ++ ++ /** ++ * Set volumes to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_volumes_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_volumes(_instanceType, env); ++ } ++ ++ ++ /** ++ * Check whether volumes is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_volumes_nil_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return (_instanceType->is_valid_volumes == AXIS2_FALSE || ++ NULL == _instanceType->property_volumes || ++ NULL == axutil_array_list_get(_instanceType->property_volumes, env, i)); ++ } ++ ++ /** ++ * Set volumes to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_volumes_nil_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->property_volumes == NULL || ++ _instanceType->is_valid_volumes == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_instanceType->property_volumes, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_instanceType->property_volumes, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of volumes is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_instanceType->property_volumes == NULL) ++ { ++ _instanceType->is_valid_volumes = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_instanceType->property_volumes, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ adb_volumeType_free((adb_volumeType_t*)element, env); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _instanceType->is_valid_volumes = AXIS2_FALSE; ++ axutil_array_list_set(_instanceType->property_volumes , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_instanceType->property_volumes , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ ++ /** ++ * getter for serviceTag. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_serviceTag( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, NULL); ++ ++ ++ return _instanceType->property_serviceTag; ++ } ++ ++ /** ++ * setter for serviceTag ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_serviceTag( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_serviceTag) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ if(_instanceType->is_valid_serviceTag && ++ arg_serviceTag == _instanceType->property_serviceTag) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_instanceType_reset_serviceTag(_instanceType, env); ++ ++ ++ if(NULL == arg_serviceTag) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _instanceType->property_serviceTag = (axis2_char_t *)axutil_strdup(env, arg_serviceTag); ++ if(NULL == _instanceType->property_serviceTag) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for serviceTag"); ++ return AXIS2_FAILURE; ++ } ++ _instanceType->is_valid_serviceTag = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for serviceTag ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_serviceTag( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_instanceType->property_serviceTag != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _instanceType->property_serviceTag); ++ _instanceType->property_serviceTag = NULL; ++ } ++ ++ ++ ++ _instanceType->is_valid_serviceTag = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether serviceTag is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_serviceTag_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _instanceType, AXIS2_TRUE); ++ ++ return !_instanceType->is_valid_serviceTag; ++ } ++ ++ /** ++ * Set serviceTag to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_serviceTag_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env) ++ { ++ return adb_instanceType_reset_serviceTag(_instanceType, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_instanceType.h' +--- old/node/generated/adb_instanceType.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_instanceType.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,1199 @@ ++ ++ ++ #ifndef ADB_INSTANCETYPE_H ++ #define ADB_INSTANCETYPE_H ++ ++ /** ++ * adb_instanceType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_instanceType class ++ */ ++ typedef struct adb_instanceType adb_instanceType_t; ++ ++ ++ #include "adb_virtualMachineType.h" ++ ++ #include "adb_netConfigType.h" ++ ++ #include "adb_volumeType.h" ++ ++ #include ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_instanceType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_instanceType_t object ++ */ ++ adb_instanceType_t* AXIS2_CALL ++ adb_instanceType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_instanceType_t object ++ * @param _instanceType adb_instanceType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_free ( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for reservationId. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_reservationId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for reservationId. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_reservationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_reservationId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_reservationId); ++ ++ /** ++ * Resetter for reservationId ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_reservationId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceId. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_instanceId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceId. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_instanceId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId); ++ ++ /** ++ * Resetter for instanceId ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_instanceId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for imageId. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_imageId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for imageId. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_imageId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_imageId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_imageId); ++ ++ /** ++ * Resetter for imageId ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_imageId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for kernelId. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_kernelId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for kernelId. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_kernelId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_kernelId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_kernelId); ++ ++ /** ++ * Resetter for kernelId ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_kernelId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for ramdiskId. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_ramdiskId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ramdiskId. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_ramdiskId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_ramdiskId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_ramdiskId); ++ ++ /** ++ * Resetter for ramdiskId ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_ramdiskId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_userId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_userId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_userId( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for keyName. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_keyName( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for keyName. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_keyName axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_keyName( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_keyName); ++ ++ /** ++ * Resetter for keyName ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_keyName( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceType. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return adb_virtualMachineType_t* ++ */ ++ adb_virtualMachineType_t* AXIS2_CALL ++ adb_instanceType_get_instanceType( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceType. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceType adb_virtualMachineType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_instanceType( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ adb_virtualMachineType_t* arg_instanceType); ++ ++ /** ++ * Resetter for instanceType ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_instanceType( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for netParams. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return adb_netConfigType_t* ++ */ ++ adb_netConfigType_t* AXIS2_CALL ++ adb_instanceType_get_netParams( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for netParams. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_netParams adb_netConfigType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_netParams( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ adb_netConfigType_t* arg_netParams); ++ ++ /** ++ * Resetter for netParams ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_netParams( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for stateName. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_stateName( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for stateName. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_stateName axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_stateName( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_stateName); ++ ++ /** ++ * Resetter for stateName ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_stateName( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for launchTime. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return axutil_date_time_t* ++ */ ++ axutil_date_time_t* AXIS2_CALL ++ adb_instanceType_get_launchTime( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for launchTime. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_launchTime axutil_date_time_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_launchTime( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ axutil_date_time_t* arg_launchTime); ++ ++ /** ++ * Resetter for launchTime ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_launchTime( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userData. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_userData( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userData. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_userData axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_userData( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userData); ++ ++ /** ++ * Resetter for userData ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_userData( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for launchIndex. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_launchIndex( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for launchIndex. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_launchIndex axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_launchIndex( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_launchIndex); ++ ++ /** ++ * Resetter for launchIndex ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_launchIndex( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for groupNames. Deprecated for array types, Use adb_instanceType_get_groupNames_at instead ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return Array of axis2_char_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_instanceType_get_groupNames( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for groupNames.Deprecated for array types, Use adb_instanceType_set_groupNames_at ++ * or adb_instanceType_add_groupNames instead. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_groupNames Array of axis2_char_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_groupNames( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_groupNames); ++ ++ /** ++ * Resetter for groupNames ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_groupNames( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for volumes. Deprecated for array types, Use adb_instanceType_get_volumes_at instead ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return Array of adb_volumeType_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_instanceType_get_volumes( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for volumes.Deprecated for array types, Use adb_instanceType_set_volumes_at ++ * or adb_instanceType_add_volumes instead. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_volumes Array of adb_volumeType_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_volumes( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_volumes); ++ ++ /** ++ * Resetter for volumes ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_volumes( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for serviceTag. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_serviceTag( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for serviceTag. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_serviceTag axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_serviceTag( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_serviceTag); ++ ++ /** ++ * Resetter for serviceTag ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_reset_serviceTag( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of groupNames. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_instanceType_get_groupNames_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of groupNames. (If the ith already exist, it will be replaced) ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_groupNames element to set axis2_char_t* to the array ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_groupNames_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_groupNames); ++ ++ ++ /** ++ * Add to groupNames. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_groupNames element to add axis2_char_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_add_groupNames( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_groupNames); ++ ++ /** ++ * Get the size of the groupNames array. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the groupNames array. ++ */ ++ int AXIS2_CALL ++ adb_instanceType_sizeof_groupNames( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of groupNames. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_remove_groupNames_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /** ++ * Get the ith element of volumes. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith adb_volumeType_t* of the array ++ */ ++ adb_volumeType_t* AXIS2_CALL ++ adb_instanceType_get_volumes_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of volumes. (If the ith already exist, it will be replaced) ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_volumes element to set adb_volumeType_t* to the array ++ * @return ith adb_volumeType_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_volumes_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i, ++ adb_volumeType_t* arg_volumes); ++ ++ ++ /** ++ * Add to volumes. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_volumes element to add adb_volumeType_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_add_volumes( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ adb_volumeType_t* arg_volumes); ++ ++ /** ++ * Get the size of the volumes array. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the volumes array. ++ */ ++ int AXIS2_CALL ++ adb_instanceType_sizeof_volumes( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of volumes. ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_remove_volumes_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether reservationId is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_reservationId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether instanceId is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_instanceId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether imageId is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_imageId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether kernelId is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_kernelId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether ramdiskId is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_ramdiskId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_userId_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether keyName is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_keyName_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether instanceType is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_instanceType_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether netParams is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_netParams_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether stateName is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_stateName_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether launchTime is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_launchTime_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userData is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_userData_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether launchIndex is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_launchIndex_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether groupNames is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_groupNames_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether volumes is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_volumes_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether serviceTag is nill ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_serviceTag_nil( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether groupNames is nill at i ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_groupNames_nil_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set groupNames to nill at i ++ * @param _instanceType _ adb_instanceType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_groupNames_nil_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Check whether volumes is nill at i ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_volumes_nil_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set volumes to nill at i ++ * @param _instanceType _ adb_instanceType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_set_volumes_nil_at( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_instanceType_deserialize( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_instanceType_declare_parent_namespaces( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _instanceType adb_instanceType_t object ++ * @param env pointer to environment struct ++ * @param instanceType_om_node node to serialize from ++ * @param instanceType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_instanceType_serialize( ++ adb_instanceType_t* _instanceType, ++ const axutil_env_t *env, ++ axiom_node_t* instanceType_om_node, axiom_element_t *instanceType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_instanceType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_instanceType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_INSTANCETYPE_H */ ++ ++ + +=== added file 'node/generated/adb_ncAttachVolume.c' +--- old/node/generated/adb_ncAttachVolume.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncAttachVolume.c 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncAttachVolume.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncAttachVolume.h" ++ ++ /* ++ * implmentation of the ncAttachVolume|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncAttachVolume ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncAttachVolumeType_t* property_ncAttachVolume; ++ ++ ++ axis2_bool_t is_valid_ncAttachVolume; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncAttachVolume_t* AXIS2_CALL ++ adb_ncAttachVolume_create( ++ const axutil_env_t *env) ++ { ++ adb_ncAttachVolume_t *_ncAttachVolume = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncAttachVolume = (adb_ncAttachVolume_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncAttachVolume_t)); ++ ++ if(NULL == _ncAttachVolume) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncAttachVolume, 0, sizeof(adb_ncAttachVolume_t)); ++ ++ _ncAttachVolume->property_ncAttachVolume = NULL; ++ _ncAttachVolume->is_valid_ncAttachVolume = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncAttachVolume", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncAttachVolume->qname = qname; ++ ++ ++ return _ncAttachVolume; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolume_free ( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolume, AXIS2_FAILURE); ++ ++ adb_ncAttachVolume_reset_ncAttachVolume(_ncAttachVolume, env); ++ ++ if(_ncAttachVolume->qname) ++ { ++ axutil_qname_free (_ncAttachVolume->qname, env); ++ _ncAttachVolume->qname = NULL; ++ } ++ ++ ++ if(_ncAttachVolume) ++ { ++ AXIS2_FREE(env->allocator, _ncAttachVolume); ++ _ncAttachVolume = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolume_deserialize( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolume, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncAttachVolume : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncAttachVolume-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncAttachVolume : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncAttachVolume-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncAttachVolume element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncAttachVolume", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncAttachVolumeType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncAttachVolumeType_create(env); ++ ++ status = adb_ncAttachVolumeType_deserialize((adb_ncAttachVolumeType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncAttachVolume"); ++ } ++ else ++ { ++ status = adb_ncAttachVolume_set_ncAttachVolume(_ncAttachVolume, env, ++ (adb_ncAttachVolumeType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncAttachVolume "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncAttachVolume missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolume_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncAttachVolume_declare_parent_namespaces( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncAttachVolume_serialize( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolume, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncAttachVolume", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolume->is_valid_ncAttachVolume) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncAttachVolume") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncAttachVolume xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncAttachVolume"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncAttachVolume"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncAttachVolume element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncAttachVolume", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncAttachVolumeType_serialize(_ncAttachVolume->property_ncAttachVolume, ++ env, current_node, parent_element, ++ adb_ncAttachVolumeType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncAttachVolume. ++ */ ++ adb_ncAttachVolumeType_t* AXIS2_CALL ++ adb_ncAttachVolume_get_ncAttachVolume( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolume, NULL); ++ ++ ++ return _ncAttachVolume->property_ncAttachVolume; ++ } ++ ++ /** ++ * setter for ncAttachVolume ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolume_set_ncAttachVolume( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env, ++ adb_ncAttachVolumeType_t* arg_ncAttachVolume) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolume, AXIS2_FAILURE); ++ ++ if(_ncAttachVolume->is_valid_ncAttachVolume && ++ arg_ncAttachVolume == _ncAttachVolume->property_ncAttachVolume) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolume_reset_ncAttachVolume(_ncAttachVolume, env); ++ ++ ++ if(NULL == arg_ncAttachVolume) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncAttachVolume->property_ncAttachVolume = arg_ncAttachVolume; ++ _ncAttachVolume->is_valid_ncAttachVolume = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncAttachVolume ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolume_reset_ncAttachVolume( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolume, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncAttachVolume->property_ncAttachVolume != NULL) ++ { ++ ++ ++ adb_ncAttachVolumeType_free(_ncAttachVolume->property_ncAttachVolume, env); ++ _ncAttachVolume->property_ncAttachVolume = NULL; ++ } ++ ++ ++ ++ _ncAttachVolume->is_valid_ncAttachVolume = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncAttachVolume is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolume_is_ncAttachVolume_nil( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolume, AXIS2_TRUE); ++ ++ return !_ncAttachVolume->is_valid_ncAttachVolume; ++ } ++ ++ /** ++ * Set ncAttachVolume to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolume_set_ncAttachVolume_nil( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolume_reset_ncAttachVolume(_ncAttachVolume, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncAttachVolume.h' +--- old/node/generated/adb_ncAttachVolume.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncAttachVolume.h 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCATTACHVOLUME_H ++ #define ADB_NCATTACHVOLUME_H ++ ++ /** ++ * adb_ncAttachVolume.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncAttachVolume class ++ */ ++ typedef struct adb_ncAttachVolume adb_ncAttachVolume_t; ++ ++ ++ #include "adb_ncAttachVolumeType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncAttachVolume_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncAttachVolume_t object ++ */ ++ adb_ncAttachVolume_t* AXIS2_CALL ++ adb_ncAttachVolume_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncAttachVolume_t object ++ * @param _ncAttachVolume adb_ncAttachVolume_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolume_free ( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncAttachVolume. ++ * @param _ncAttachVolume adb_ncAttachVolume_t object ++ * @param env pointer to environment struct ++ * @return adb_ncAttachVolumeType_t* ++ */ ++ adb_ncAttachVolumeType_t* AXIS2_CALL ++ adb_ncAttachVolume_get_ncAttachVolume( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncAttachVolume. ++ * @param _ncAttachVolume adb_ncAttachVolume_t object ++ * @param env pointer to environment struct ++ * @param arg_ncAttachVolume adb_ncAttachVolumeType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolume_set_ncAttachVolume( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env, ++ adb_ncAttachVolumeType_t* arg_ncAttachVolume); ++ ++ /** ++ * Resetter for ncAttachVolume ++ * @param _ncAttachVolume adb_ncAttachVolume_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolume_reset_ncAttachVolume( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncAttachVolume is nill ++ * @param _ncAttachVolume adb_ncAttachVolume_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolume_is_ncAttachVolume_nil( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncAttachVolume to nill (currently the same as reset) ++ * @param _ncAttachVolume adb_ncAttachVolume_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolume_set_ncAttachVolume_nil( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncAttachVolume adb_ncAttachVolume_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolume_deserialize( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncAttachVolume adb_ncAttachVolume_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncAttachVolume_declare_parent_namespaces( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncAttachVolume adb_ncAttachVolume_t object ++ * @param env pointer to environment struct ++ * @param ncAttachVolume_om_node node to serialize from ++ * @param ncAttachVolume_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncAttachVolume_serialize( ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ const axutil_env_t *env, ++ axiom_node_t* ncAttachVolume_om_node, axiom_element_t *ncAttachVolume_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncAttachVolume is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolume_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCATTACHVOLUME_H */ ++ ++ + +=== added file 'node/generated/adb_ncAttachVolumeResponse.c' +--- old/node/generated/adb_ncAttachVolumeResponse.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncAttachVolumeResponse.c 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncAttachVolumeResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncAttachVolumeResponse.h" ++ ++ /* ++ * implmentation of the ncAttachVolumeResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncAttachVolumeResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncAttachVolumeResponseType_t* property_ncAttachVolumeResponse; ++ ++ ++ axis2_bool_t is_valid_ncAttachVolumeResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncAttachVolumeResponse_t* AXIS2_CALL ++ adb_ncAttachVolumeResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_ncAttachVolumeResponse_t *_ncAttachVolumeResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncAttachVolumeResponse = (adb_ncAttachVolumeResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncAttachVolumeResponse_t)); ++ ++ if(NULL == _ncAttachVolumeResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncAttachVolumeResponse, 0, sizeof(adb_ncAttachVolumeResponse_t)); ++ ++ _ncAttachVolumeResponse->property_ncAttachVolumeResponse = NULL; ++ _ncAttachVolumeResponse->is_valid_ncAttachVolumeResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncAttachVolumeResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncAttachVolumeResponse->qname = qname; ++ ++ ++ return _ncAttachVolumeResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_free ( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponse, AXIS2_FAILURE); ++ ++ adb_ncAttachVolumeResponse_reset_ncAttachVolumeResponse(_ncAttachVolumeResponse, env); ++ ++ if(_ncAttachVolumeResponse->qname) ++ { ++ axutil_qname_free (_ncAttachVolumeResponse->qname, env); ++ _ncAttachVolumeResponse->qname = NULL; ++ } ++ ++ ++ if(_ncAttachVolumeResponse) ++ { ++ AXIS2_FREE(env->allocator, _ncAttachVolumeResponse); ++ _ncAttachVolumeResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_deserialize( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncAttachVolumeResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncAttachVolumeResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncAttachVolumeResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncAttachVolumeResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncAttachVolumeResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncAttachVolumeResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncAttachVolumeResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncAttachVolumeResponseType_create(env); ++ ++ status = adb_ncAttachVolumeResponseType_deserialize((adb_ncAttachVolumeResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncAttachVolumeResponse"); ++ } ++ else ++ { ++ status = adb_ncAttachVolumeResponse_set_ncAttachVolumeResponse(_ncAttachVolumeResponse, env, ++ (adb_ncAttachVolumeResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncAttachVolumeResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncAttachVolumeResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncAttachVolumeResponse_declare_parent_namespaces( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncAttachVolumeResponse_serialize( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncAttachVolumeResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeResponse->is_valid_ncAttachVolumeResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncAttachVolumeResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncAttachVolumeResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncAttachVolumeResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncAttachVolumeResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncAttachVolumeResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncAttachVolumeResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncAttachVolumeResponseType_serialize(_ncAttachVolumeResponse->property_ncAttachVolumeResponse, ++ env, current_node, parent_element, ++ adb_ncAttachVolumeResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncAttachVolumeResponse. ++ */ ++ adb_ncAttachVolumeResponseType_t* AXIS2_CALL ++ adb_ncAttachVolumeResponse_get_ncAttachVolumeResponse( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponse, NULL); ++ ++ ++ return _ncAttachVolumeResponse->property_ncAttachVolumeResponse; ++ } ++ ++ /** ++ * setter for ncAttachVolumeResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_set_ncAttachVolumeResponse( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env, ++ adb_ncAttachVolumeResponseType_t* arg_ncAttachVolumeResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponse, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeResponse->is_valid_ncAttachVolumeResponse && ++ arg_ncAttachVolumeResponse == _ncAttachVolumeResponse->property_ncAttachVolumeResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeResponse_reset_ncAttachVolumeResponse(_ncAttachVolumeResponse, env); ++ ++ ++ if(NULL == arg_ncAttachVolumeResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncAttachVolumeResponse->property_ncAttachVolumeResponse = arg_ncAttachVolumeResponse; ++ _ncAttachVolumeResponse->is_valid_ncAttachVolumeResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncAttachVolumeResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_reset_ncAttachVolumeResponse( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncAttachVolumeResponse->property_ncAttachVolumeResponse != NULL) ++ { ++ ++ ++ adb_ncAttachVolumeResponseType_free(_ncAttachVolumeResponse->property_ncAttachVolumeResponse, env); ++ _ncAttachVolumeResponse->property_ncAttachVolumeResponse = NULL; ++ } ++ ++ ++ ++ _ncAttachVolumeResponse->is_valid_ncAttachVolumeResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncAttachVolumeResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_is_ncAttachVolumeResponse_nil( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponse, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeResponse->is_valid_ncAttachVolumeResponse; ++ } ++ ++ /** ++ * Set ncAttachVolumeResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_set_ncAttachVolumeResponse_nil( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeResponse_reset_ncAttachVolumeResponse(_ncAttachVolumeResponse, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncAttachVolumeResponse.h' +--- old/node/generated/adb_ncAttachVolumeResponse.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncAttachVolumeResponse.h 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCATTACHVOLUMERESPONSE_H ++ #define ADB_NCATTACHVOLUMERESPONSE_H ++ ++ /** ++ * adb_ncAttachVolumeResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncAttachVolumeResponse class ++ */ ++ typedef struct adb_ncAttachVolumeResponse adb_ncAttachVolumeResponse_t; ++ ++ ++ #include "adb_ncAttachVolumeResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncAttachVolumeResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncAttachVolumeResponse_t object ++ */ ++ adb_ncAttachVolumeResponse_t* AXIS2_CALL ++ adb_ncAttachVolumeResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncAttachVolumeResponse_t object ++ * @param _ncAttachVolumeResponse adb_ncAttachVolumeResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_free ( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncAttachVolumeResponse. ++ * @param _ncAttachVolumeResponse adb_ncAttachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_ncAttachVolumeResponseType_t* ++ */ ++ adb_ncAttachVolumeResponseType_t* AXIS2_CALL ++ adb_ncAttachVolumeResponse_get_ncAttachVolumeResponse( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncAttachVolumeResponse. ++ * @param _ncAttachVolumeResponse adb_ncAttachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_ncAttachVolumeResponse adb_ncAttachVolumeResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_set_ncAttachVolumeResponse( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env, ++ adb_ncAttachVolumeResponseType_t* arg_ncAttachVolumeResponse); ++ ++ /** ++ * Resetter for ncAttachVolumeResponse ++ * @param _ncAttachVolumeResponse adb_ncAttachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_reset_ncAttachVolumeResponse( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncAttachVolumeResponse is nill ++ * @param _ncAttachVolumeResponse adb_ncAttachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_is_ncAttachVolumeResponse_nil( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncAttachVolumeResponse to nill (currently the same as reset) ++ * @param _ncAttachVolumeResponse adb_ncAttachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_set_ncAttachVolumeResponse_nil( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncAttachVolumeResponse adb_ncAttachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_deserialize( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncAttachVolumeResponse adb_ncAttachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncAttachVolumeResponse_declare_parent_namespaces( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncAttachVolumeResponse adb_ncAttachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @param ncAttachVolumeResponse_om_node node to serialize from ++ * @param ncAttachVolumeResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncAttachVolumeResponse_serialize( ++ adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, ++ const axutil_env_t *env, ++ axiom_node_t* ncAttachVolumeResponse_om_node, axiom_element_t *ncAttachVolumeResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncAttachVolumeResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCATTACHVOLUMERESPONSE_H */ ++ ++ + +=== added file 'node/generated/adb_ncAttachVolumeResponseType.c' +--- old/node/generated/adb_ncAttachVolumeResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncAttachVolumeResponseType.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,1365 @@ ++ ++ ++ /** ++ * adb_ncAttachVolumeResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncAttachVolumeResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncAttachVolumeResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncAttachVolumeResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_correlationId_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_userId_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_return_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncAttachVolumeResponseType_t* AXIS2_CALL ++ adb_ncAttachVolumeResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncAttachVolumeResponseType_t *_ncAttachVolumeResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncAttachVolumeResponseType = (adb_ncAttachVolumeResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncAttachVolumeResponseType_t)); ++ ++ if(NULL == _ncAttachVolumeResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncAttachVolumeResponseType, 0, sizeof(adb_ncAttachVolumeResponseType_t)); ++ ++ _ncAttachVolumeResponseType->property_correlationId = NULL; ++ _ncAttachVolumeResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _ncAttachVolumeResponseType->property_userId = NULL; ++ _ncAttachVolumeResponseType->is_valid_userId = AXIS2_FALSE; ++ _ncAttachVolumeResponseType->is_valid_return = AXIS2_FALSE; ++ _ncAttachVolumeResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ ++ ++ return _ncAttachVolumeResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_free ( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_FAILURE); ++ ++ adb_ncAttachVolumeResponseType_reset_correlationId(_ncAttachVolumeResponseType, env); ++ adb_ncAttachVolumeResponseType_reset_userId(_ncAttachVolumeResponseType, env); ++ adb_ncAttachVolumeResponseType_reset_return(_ncAttachVolumeResponseType, env); ++ adb_ncAttachVolumeResponseType_reset_statusMessage(_ncAttachVolumeResponseType, env); ++ ++ ++ if(_ncAttachVolumeResponseType) ++ { ++ AXIS2_FREE(env->allocator, _ncAttachVolumeResponseType); ++ _ncAttachVolumeResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_deserialize( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncAttachVolumeResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncAttachVolumeResponseType_set_correlationId(_ncAttachVolumeResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncAttachVolumeResponseType_set_correlationId(_ncAttachVolumeResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncAttachVolumeResponseType_set_userId(_ncAttachVolumeResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncAttachVolumeResponseType_set_userId(_ncAttachVolumeResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncAttachVolumeResponseType_set_return(_ncAttachVolumeResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncAttachVolumeResponseType_set_return(_ncAttachVolumeResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncAttachVolumeResponseType_set_statusMessage(_ncAttachVolumeResponseType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncAttachVolumeResponseType_declare_parent_namespaces( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncAttachVolumeResponseType_serialize( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncAttachVolumeResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncAttachVolumeResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncAttachVolumeResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncAttachVolumeResponseType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeResponseType_get_correlationId( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, NULL); ++ ++ ++ return _ncAttachVolumeResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_correlationId( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeResponseType->is_valid_correlationId && ++ arg_correlationId == _ncAttachVolumeResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeResponseType_reset_correlationId(_ncAttachVolumeResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncAttachVolumeResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncAttachVolumeResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncAttachVolumeResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_reset_correlationId( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncAttachVolumeResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncAttachVolumeResponseType->property_correlationId); ++ _ncAttachVolumeResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncAttachVolumeResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_is_correlationId_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_correlationId_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeResponseType_reset_correlationId(_ncAttachVolumeResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeResponseType_get_userId( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, NULL); ++ ++ ++ return _ncAttachVolumeResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_userId( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeResponseType->is_valid_userId && ++ arg_userId == _ncAttachVolumeResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeResponseType_reset_userId(_ncAttachVolumeResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncAttachVolumeResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncAttachVolumeResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncAttachVolumeResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_reset_userId( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncAttachVolumeResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncAttachVolumeResponseType->property_userId); ++ _ncAttachVolumeResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncAttachVolumeResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_is_userId_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_userId_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeResponseType_reset_userId(_ncAttachVolumeResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_get_return( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, (axis2_bool_t)0); ++ ++ ++ return _ncAttachVolumeResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_return( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeResponseType->is_valid_return && ++ arg_return == _ncAttachVolumeResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeResponseType_reset_return(_ncAttachVolumeResponseType, env); ++ ++ _ncAttachVolumeResponseType->property_return = arg_return; ++ _ncAttachVolumeResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_reset_return( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ _ncAttachVolumeResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_is_return_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_return_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeResponseType_reset_return(_ncAttachVolumeResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncAttachVolumeResponseType_get_statusMessage( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, (int)0); ++ ++ ++ return _ncAttachVolumeResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_statusMessage( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeResponseType->is_valid_statusMessage && ++ arg_statusMessage == _ncAttachVolumeResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeResponseType_reset_statusMessage(_ncAttachVolumeResponseType, env); ++ ++ _ncAttachVolumeResponseType->property_statusMessage = arg_statusMessage; ++ _ncAttachVolumeResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_reset_statusMessage( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ _ncAttachVolumeResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_is_statusMessage_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeResponseType, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_statusMessage_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeResponseType_reset_statusMessage(_ncAttachVolumeResponseType, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncAttachVolumeResponseType.h' +--- old/node/generated/adb_ncAttachVolumeResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncAttachVolumeResponseType.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,362 @@ ++ ++ ++ #ifndef ADB_NCATTACHVOLUMERESPONSETYPE_H ++ #define ADB_NCATTACHVOLUMERESPONSETYPE_H ++ ++ /** ++ * adb_ncAttachVolumeResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncAttachVolumeResponseType class ++ */ ++ typedef struct adb_ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncAttachVolumeResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncAttachVolumeResponseType_t object ++ */ ++ adb_ncAttachVolumeResponseType_t* AXIS2_CALL ++ adb_ncAttachVolumeResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncAttachVolumeResponseType_t object ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_free ( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeResponseType_get_correlationId( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_correlationId( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_reset_correlationId( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeResponseType_get_userId( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_userId( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_reset_userId( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_get_return( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_return( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_reset_return( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncAttachVolumeResponseType_get_statusMessage( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_statusMessage( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_reset_statusMessage( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_is_correlationId_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_is_userId_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_is_return_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_is_statusMessage_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_set_statusMessage_nil( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_deserialize( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncAttachVolumeResponseType_declare_parent_namespaces( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncAttachVolumeResponseType adb_ncAttachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param ncAttachVolumeResponseType_om_node node to serialize from ++ * @param ncAttachVolumeResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncAttachVolumeResponseType_serialize( ++ adb_ncAttachVolumeResponseType_t* _ncAttachVolumeResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* ncAttachVolumeResponseType_om_node, axiom_element_t *ncAttachVolumeResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncAttachVolumeResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCATTACHVOLUMERESPONSETYPE_H */ ++ ++ + +=== added file 'node/generated/adb_ncAttachVolumeType.c' +--- old/node/generated/adb_ncAttachVolumeType.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncAttachVolumeType.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,2713 @@ ++ ++ ++ /** ++ * adb_ncAttachVolumeType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncAttachVolumeType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncAttachVolumeType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncAttachVolumeType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_char_t* property_volumeId; ++ ++ ++ axis2_bool_t is_valid_volumeId; ++ ++ ++ axis2_char_t* property_instanceId; ++ ++ ++ axis2_bool_t is_valid_instanceId; ++ ++ ++ axis2_char_t* property_remoteDev; ++ ++ ++ axis2_bool_t is_valid_remoteDev; ++ ++ ++ axis2_char_t* property_localDev; ++ ++ ++ axis2_bool_t is_valid_localDev; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_correlationId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_userId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_return_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_volumeId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_instanceId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_remoteDev_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_localDev_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncAttachVolumeType_t* AXIS2_CALL ++ adb_ncAttachVolumeType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncAttachVolumeType_t *_ncAttachVolumeType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncAttachVolumeType = (adb_ncAttachVolumeType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncAttachVolumeType_t)); ++ ++ if(NULL == _ncAttachVolumeType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncAttachVolumeType, 0, sizeof(adb_ncAttachVolumeType_t)); ++ ++ _ncAttachVolumeType->property_correlationId = NULL; ++ _ncAttachVolumeType->is_valid_correlationId = AXIS2_FALSE; ++ _ncAttachVolumeType->property_userId = NULL; ++ _ncAttachVolumeType->is_valid_userId = AXIS2_FALSE; ++ _ncAttachVolumeType->is_valid_return = AXIS2_FALSE; ++ _ncAttachVolumeType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncAttachVolumeType->property_volumeId = NULL; ++ _ncAttachVolumeType->is_valid_volumeId = AXIS2_FALSE; ++ _ncAttachVolumeType->property_instanceId = NULL; ++ _ncAttachVolumeType->is_valid_instanceId = AXIS2_FALSE; ++ _ncAttachVolumeType->property_remoteDev = NULL; ++ _ncAttachVolumeType->is_valid_remoteDev = AXIS2_FALSE; ++ _ncAttachVolumeType->property_localDev = NULL; ++ _ncAttachVolumeType->is_valid_localDev = AXIS2_FALSE; ++ ++ ++ return _ncAttachVolumeType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_free ( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ adb_ncAttachVolumeType_reset_correlationId(_ncAttachVolumeType, env); ++ adb_ncAttachVolumeType_reset_userId(_ncAttachVolumeType, env); ++ adb_ncAttachVolumeType_reset_return(_ncAttachVolumeType, env); ++ adb_ncAttachVolumeType_reset_statusMessage(_ncAttachVolumeType, env); ++ adb_ncAttachVolumeType_reset_volumeId(_ncAttachVolumeType, env); ++ adb_ncAttachVolumeType_reset_instanceId(_ncAttachVolumeType, env); ++ adb_ncAttachVolumeType_reset_remoteDev(_ncAttachVolumeType, env); ++ adb_ncAttachVolumeType_reset_localDev(_ncAttachVolumeType, env); ++ ++ ++ if(_ncAttachVolumeType) ++ { ++ AXIS2_FREE(env->allocator, _ncAttachVolumeType); ++ _ncAttachVolumeType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_deserialize( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncAttachVolumeType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncAttachVolumeType_set_correlationId(_ncAttachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncAttachVolumeType_set_correlationId(_ncAttachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncAttachVolumeType_set_userId(_ncAttachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncAttachVolumeType_set_userId(_ncAttachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncAttachVolumeType_set_return(_ncAttachVolumeType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncAttachVolumeType_set_return(_ncAttachVolumeType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncAttachVolumeType_set_statusMessage(_ncAttachVolumeType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building volumeId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "volumeId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncAttachVolumeType_set_volumeId(_ncAttachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element volumeId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncAttachVolumeType_set_volumeId(_ncAttachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for volumeId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncAttachVolumeType_set_instanceId(_ncAttachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncAttachVolumeType_set_instanceId(_ncAttachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building remoteDev element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "remoteDev", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncAttachVolumeType_set_remoteDev(_ncAttachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element remoteDev"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncAttachVolumeType_set_remoteDev(_ncAttachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for remoteDev "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building localDev element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "localDev", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncAttachVolumeType_set_localDev(_ncAttachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element localDev"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncAttachVolumeType_set_localDev(_ncAttachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for localDev "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncAttachVolumeType_declare_parent_namespaces( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncAttachVolumeType_serialize( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *text_value_6; ++ axis2_char_t *text_value_6_temp; ++ ++ axis2_char_t *text_value_7; ++ axis2_char_t *text_value_7_temp; ++ ++ axis2_char_t *text_value_8; ++ axis2_char_t *text_value_8_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncAttachVolumeType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncAttachVolumeType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncAttachVolumeType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncAttachVolumeType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeType->is_valid_volumeId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("volumeId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("volumeId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing volumeId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%svolumeId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _ncAttachVolumeType->property_volumeId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeType->is_valid_instanceId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_6 = _ncAttachVolumeType->property_instanceId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE); ++ if (text_value_6_temp) ++ { ++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp)); ++ AXIS2_FREE(env->allocator, text_value_6_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeType->is_valid_remoteDev) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("remoteDev"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("remoteDev"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing remoteDev element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sremoteDev>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_7 = _ncAttachVolumeType->property_remoteDev; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE); ++ if (text_value_7_temp) ++ { ++ axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp)); ++ AXIS2_FREE(env->allocator, text_value_7_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncAttachVolumeType->is_valid_localDev) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("localDev"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("localDev"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing localDev element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%slocalDev>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_8 = _ncAttachVolumeType->property_localDev; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE); ++ if (text_value_8_temp) ++ { ++ axutil_stream_write(stream, env, text_value_8_temp, axutil_strlen(text_value_8_temp)); ++ AXIS2_FREE(env->allocator, text_value_8_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeType_get_correlationId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL); ++ ++ ++ return _ncAttachVolumeType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_correlationId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeType->is_valid_correlationId && ++ arg_correlationId == _ncAttachVolumeType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeType_reset_correlationId(_ncAttachVolumeType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncAttachVolumeType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncAttachVolumeType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncAttachVolumeType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_correlationId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncAttachVolumeType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_correlationId); ++ _ncAttachVolumeType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncAttachVolumeType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_correlationId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_correlationId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeType_reset_correlationId(_ncAttachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeType_get_userId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL); ++ ++ ++ return _ncAttachVolumeType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_userId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeType->is_valid_userId && ++ arg_userId == _ncAttachVolumeType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeType_reset_userId(_ncAttachVolumeType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncAttachVolumeType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncAttachVolumeType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncAttachVolumeType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_userId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncAttachVolumeType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_userId); ++ _ncAttachVolumeType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncAttachVolumeType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_userId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_userId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeType_reset_userId(_ncAttachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_get_return( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, (axis2_bool_t)0); ++ ++ ++ return _ncAttachVolumeType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_return( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeType->is_valid_return && ++ arg_return == _ncAttachVolumeType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeType_reset_return(_ncAttachVolumeType, env); ++ ++ _ncAttachVolumeType->property_return = arg_return; ++ _ncAttachVolumeType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_return( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ ++ _ncAttachVolumeType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_return_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_return_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeType_reset_return(_ncAttachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncAttachVolumeType_get_statusMessage( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, (int)0); ++ ++ ++ return _ncAttachVolumeType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_statusMessage( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeType->is_valid_statusMessage && ++ arg_statusMessage == _ncAttachVolumeType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeType_reset_statusMessage(_ncAttachVolumeType, env); ++ ++ _ncAttachVolumeType->property_statusMessage = arg_statusMessage; ++ _ncAttachVolumeType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_statusMessage( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ ++ _ncAttachVolumeType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_statusMessage_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_statusMessage_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeType_reset_statusMessage(_ncAttachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for volumeId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeType_get_volumeId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL); ++ ++ ++ return _ncAttachVolumeType->property_volumeId; ++ } ++ ++ /** ++ * setter for volumeId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_volumeId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_volumeId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeType->is_valid_volumeId && ++ arg_volumeId == _ncAttachVolumeType->property_volumeId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeType_reset_volumeId(_ncAttachVolumeType, env); ++ ++ ++ if(NULL == arg_volumeId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncAttachVolumeType->property_volumeId = (axis2_char_t *)axutil_strdup(env, arg_volumeId); ++ if(NULL == _ncAttachVolumeType->property_volumeId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for volumeId"); ++ return AXIS2_FAILURE; ++ } ++ _ncAttachVolumeType->is_valid_volumeId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for volumeId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_volumeId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncAttachVolumeType->property_volumeId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_volumeId); ++ _ncAttachVolumeType->property_volumeId = NULL; ++ } ++ ++ ++ ++ _ncAttachVolumeType->is_valid_volumeId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether volumeId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_volumeId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeType->is_valid_volumeId; ++ } ++ ++ /** ++ * Set volumeId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_volumeId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeType_reset_volumeId(_ncAttachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeType_get_instanceId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL); ++ ++ ++ return _ncAttachVolumeType->property_instanceId; ++ } ++ ++ /** ++ * setter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_instanceId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeType->is_valid_instanceId && ++ arg_instanceId == _ncAttachVolumeType->property_instanceId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeType_reset_instanceId(_ncAttachVolumeType, env); ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncAttachVolumeType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId); ++ if(NULL == _ncAttachVolumeType->property_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId"); ++ return AXIS2_FAILURE; ++ } ++ _ncAttachVolumeType->is_valid_instanceId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_instanceId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncAttachVolumeType->property_instanceId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_instanceId); ++ _ncAttachVolumeType->property_instanceId = NULL; ++ } ++ ++ ++ ++ _ncAttachVolumeType->is_valid_instanceId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_instanceId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeType->is_valid_instanceId; ++ } ++ ++ /** ++ * Set instanceId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_instanceId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeType_reset_instanceId(_ncAttachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for remoteDev. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeType_get_remoteDev( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL); ++ ++ ++ return _ncAttachVolumeType->property_remoteDev; ++ } ++ ++ /** ++ * setter for remoteDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_remoteDev( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_remoteDev) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeType->is_valid_remoteDev && ++ arg_remoteDev == _ncAttachVolumeType->property_remoteDev) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeType_reset_remoteDev(_ncAttachVolumeType, env); ++ ++ ++ if(NULL == arg_remoteDev) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncAttachVolumeType->property_remoteDev = (axis2_char_t *)axutil_strdup(env, arg_remoteDev); ++ if(NULL == _ncAttachVolumeType->property_remoteDev) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for remoteDev"); ++ return AXIS2_FAILURE; ++ } ++ _ncAttachVolumeType->is_valid_remoteDev = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for remoteDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_remoteDev( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncAttachVolumeType->property_remoteDev != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_remoteDev); ++ _ncAttachVolumeType->property_remoteDev = NULL; ++ } ++ ++ ++ ++ _ncAttachVolumeType->is_valid_remoteDev = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether remoteDev is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_remoteDev_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeType->is_valid_remoteDev; ++ } ++ ++ /** ++ * Set remoteDev to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_remoteDev_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeType_reset_remoteDev(_ncAttachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for localDev. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeType_get_localDev( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL); ++ ++ ++ return _ncAttachVolumeType->property_localDev; ++ } ++ ++ /** ++ * setter for localDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_localDev( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_localDev) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncAttachVolumeType->is_valid_localDev && ++ arg_localDev == _ncAttachVolumeType->property_localDev) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncAttachVolumeType_reset_localDev(_ncAttachVolumeType, env); ++ ++ ++ if(NULL == arg_localDev) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncAttachVolumeType->property_localDev = (axis2_char_t *)axutil_strdup(env, arg_localDev); ++ if(NULL == _ncAttachVolumeType->property_localDev) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for localDev"); ++ return AXIS2_FAILURE; ++ } ++ _ncAttachVolumeType->is_valid_localDev = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for localDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_localDev( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncAttachVolumeType->property_localDev != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_localDev); ++ _ncAttachVolumeType->property_localDev = NULL; ++ } ++ ++ ++ ++ _ncAttachVolumeType->is_valid_localDev = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether localDev is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_localDev_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE); ++ ++ return !_ncAttachVolumeType->is_valid_localDev; ++ } ++ ++ /** ++ * Set localDev to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_localDev_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncAttachVolumeType_reset_localDev(_ncAttachVolumeType, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncAttachVolumeType.h' +--- old/node/generated/adb_ncAttachVolumeType.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncAttachVolumeType.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,570 @@ ++ ++ ++ #ifndef ADB_NCATTACHVOLUMETYPE_H ++ #define ADB_NCATTACHVOLUMETYPE_H ++ ++ /** ++ * adb_ncAttachVolumeType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncAttachVolumeType class ++ */ ++ typedef struct adb_ncAttachVolumeType adb_ncAttachVolumeType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncAttachVolumeType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncAttachVolumeType_t object ++ */ ++ adb_ncAttachVolumeType_t* AXIS2_CALL ++ adb_ncAttachVolumeType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncAttachVolumeType_t object ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_free ( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeType_get_correlationId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_correlationId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_correlationId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeType_get_userId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_userId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_userId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_get_return( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_return( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_return( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncAttachVolumeType_get_statusMessage( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_statusMessage( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_statusMessage( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for volumeId. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeType_get_volumeId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for volumeId. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_volumeId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_volumeId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_volumeId); ++ ++ /** ++ * Resetter for volumeId ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_volumeId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceId. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeType_get_instanceId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceId. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_instanceId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId); ++ ++ /** ++ * Resetter for instanceId ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_instanceId( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for remoteDev. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeType_get_remoteDev( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for remoteDev. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_remoteDev axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_remoteDev( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_remoteDev); ++ ++ /** ++ * Resetter for remoteDev ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_remoteDev( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for localDev. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncAttachVolumeType_get_localDev( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for localDev. ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_localDev axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_localDev( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_localDev); ++ ++ /** ++ * Resetter for localDev ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_reset_localDev( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_correlationId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_userId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_return_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_statusMessage_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_set_statusMessage_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether volumeId is nill ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_volumeId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether instanceId is nill ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_instanceId_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether remoteDev is nill ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_remoteDev_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether localDev is nill ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_localDev_nil( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncAttachVolumeType_deserialize( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncAttachVolumeType_declare_parent_namespaces( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncAttachVolumeType adb_ncAttachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param ncAttachVolumeType_om_node node to serialize from ++ * @param ncAttachVolumeType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncAttachVolumeType_serialize( ++ adb_ncAttachVolumeType_t* _ncAttachVolumeType, ++ const axutil_env_t *env, ++ axiom_node_t* ncAttachVolumeType_om_node, axiom_element_t *ncAttachVolumeType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncAttachVolumeType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncAttachVolumeType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCATTACHVOLUMETYPE_H */ ++ ++ + +=== added file 'node/generated/adb_ncDescribeInstances.c' +--- old/node/generated/adb_ncDescribeInstances.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncDescribeInstances.c 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncDescribeInstances.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncDescribeInstances.h" ++ ++ /* ++ * implmentation of the ncDescribeInstances|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncDescribeInstances ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncDescribeInstancesType_t* property_ncDescribeInstances; ++ ++ ++ axis2_bool_t is_valid_ncDescribeInstances; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncDescribeInstances_t* AXIS2_CALL ++ adb_ncDescribeInstances_create( ++ const axutil_env_t *env) ++ { ++ adb_ncDescribeInstances_t *_ncDescribeInstances = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncDescribeInstances = (adb_ncDescribeInstances_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncDescribeInstances_t)); ++ ++ if(NULL == _ncDescribeInstances) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncDescribeInstances, 0, sizeof(adb_ncDescribeInstances_t)); ++ ++ _ncDescribeInstances->property_ncDescribeInstances = NULL; ++ _ncDescribeInstances->is_valid_ncDescribeInstances = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncDescribeInstances", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncDescribeInstances->qname = qname; ++ ++ ++ return _ncDescribeInstances; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstances_free ( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstances, AXIS2_FAILURE); ++ ++ adb_ncDescribeInstances_reset_ncDescribeInstances(_ncDescribeInstances, env); ++ ++ if(_ncDescribeInstances->qname) ++ { ++ axutil_qname_free (_ncDescribeInstances->qname, env); ++ _ncDescribeInstances->qname = NULL; ++ } ++ ++ ++ if(_ncDescribeInstances) ++ { ++ AXIS2_FREE(env->allocator, _ncDescribeInstances); ++ _ncDescribeInstances = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstances_deserialize( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstances, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDescribeInstances : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncDescribeInstances-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDescribeInstances : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncDescribeInstances-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncDescribeInstances element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncDescribeInstances", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncDescribeInstancesType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncDescribeInstancesType_create(env); ++ ++ status = adb_ncDescribeInstancesType_deserialize((adb_ncDescribeInstancesType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncDescribeInstances"); ++ } ++ else ++ { ++ status = adb_ncDescribeInstances_set_ncDescribeInstances(_ncDescribeInstances, env, ++ (adb_ncDescribeInstancesType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncDescribeInstances "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncDescribeInstances missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstances_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncDescribeInstances_declare_parent_namespaces( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeInstances_serialize( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstances, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncDescribeInstances", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeInstances->is_valid_ncDescribeInstances) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncDescribeInstances") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncDescribeInstances xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncDescribeInstances"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncDescribeInstances"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncDescribeInstances element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncDescribeInstances", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncDescribeInstancesType_serialize(_ncDescribeInstances->property_ncDescribeInstances, ++ env, current_node, parent_element, ++ adb_ncDescribeInstancesType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncDescribeInstances. ++ */ ++ adb_ncDescribeInstancesType_t* AXIS2_CALL ++ adb_ncDescribeInstances_get_ncDescribeInstances( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstances, NULL); ++ ++ ++ return _ncDescribeInstances->property_ncDescribeInstances; ++ } ++ ++ /** ++ * setter for ncDescribeInstances ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstances_set_ncDescribeInstances( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env, ++ adb_ncDescribeInstancesType_t* arg_ncDescribeInstances) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstances, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstances->is_valid_ncDescribeInstances && ++ arg_ncDescribeInstances == _ncDescribeInstances->property_ncDescribeInstances) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeInstances_reset_ncDescribeInstances(_ncDescribeInstances, env); ++ ++ ++ if(NULL == arg_ncDescribeInstances) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeInstances->property_ncDescribeInstances = arg_ncDescribeInstances; ++ _ncDescribeInstances->is_valid_ncDescribeInstances = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncDescribeInstances ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstances_reset_ncDescribeInstances( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstances, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeInstances->property_ncDescribeInstances != NULL) ++ { ++ ++ ++ adb_ncDescribeInstancesType_free(_ncDescribeInstances->property_ncDescribeInstances, env); ++ _ncDescribeInstances->property_ncDescribeInstances = NULL; ++ } ++ ++ ++ ++ _ncDescribeInstances->is_valid_ncDescribeInstances = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncDescribeInstances is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstances_is_ncDescribeInstances_nil( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstances, AXIS2_TRUE); ++ ++ return !_ncDescribeInstances->is_valid_ncDescribeInstances; ++ } ++ ++ /** ++ * Set ncDescribeInstances to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstances_set_ncDescribeInstances_nil( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeInstances_reset_ncDescribeInstances(_ncDescribeInstances, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncDescribeInstances.h' +--- old/node/generated/adb_ncDescribeInstances.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncDescribeInstances.h 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCDESCRIBEINSTANCES_H ++ #define ADB_NCDESCRIBEINSTANCES_H ++ ++ /** ++ * adb_ncDescribeInstances.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncDescribeInstances class ++ */ ++ typedef struct adb_ncDescribeInstances adb_ncDescribeInstances_t; ++ ++ ++ #include "adb_ncDescribeInstancesType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncDescribeInstances_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncDescribeInstances_t object ++ */ ++ adb_ncDescribeInstances_t* AXIS2_CALL ++ adb_ncDescribeInstances_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncDescribeInstances_t object ++ * @param _ncDescribeInstances adb_ncDescribeInstances_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstances_free ( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncDescribeInstances. ++ * @param _ncDescribeInstances adb_ncDescribeInstances_t object ++ * @param env pointer to environment struct ++ * @return adb_ncDescribeInstancesType_t* ++ */ ++ adb_ncDescribeInstancesType_t* AXIS2_CALL ++ adb_ncDescribeInstances_get_ncDescribeInstances( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncDescribeInstances. ++ * @param _ncDescribeInstances adb_ncDescribeInstances_t object ++ * @param env pointer to environment struct ++ * @param arg_ncDescribeInstances adb_ncDescribeInstancesType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstances_set_ncDescribeInstances( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env, ++ adb_ncDescribeInstancesType_t* arg_ncDescribeInstances); ++ ++ /** ++ * Resetter for ncDescribeInstances ++ * @param _ncDescribeInstances adb_ncDescribeInstances_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstances_reset_ncDescribeInstances( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncDescribeInstances is nill ++ * @param _ncDescribeInstances adb_ncDescribeInstances_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstances_is_ncDescribeInstances_nil( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncDescribeInstances to nill (currently the same as reset) ++ * @param _ncDescribeInstances adb_ncDescribeInstances_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstances_set_ncDescribeInstances_nil( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncDescribeInstances adb_ncDescribeInstances_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstances_deserialize( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncDescribeInstances adb_ncDescribeInstances_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncDescribeInstances_declare_parent_namespaces( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncDescribeInstances adb_ncDescribeInstances_t object ++ * @param env pointer to environment struct ++ * @param ncDescribeInstances_om_node node to serialize from ++ * @param ncDescribeInstances_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeInstances_serialize( ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ const axutil_env_t *env, ++ axiom_node_t* ncDescribeInstances_om_node, axiom_element_t *ncDescribeInstances_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncDescribeInstances is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstances_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCDESCRIBEINSTANCES_H */ ++ ++ + +=== added file 'node/generated/adb_ncDescribeInstancesResponse.c' +--- old/node/generated/adb_ncDescribeInstancesResponse.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncDescribeInstancesResponse.c 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncDescribeInstancesResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncDescribeInstancesResponse.h" ++ ++ /* ++ * implmentation of the ncDescribeInstancesResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncDescribeInstancesResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncDescribeInstancesResponseType_t* property_ncDescribeInstancesResponse; ++ ++ ++ axis2_bool_t is_valid_ncDescribeInstancesResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncDescribeInstancesResponse_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_ncDescribeInstancesResponse_t *_ncDescribeInstancesResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncDescribeInstancesResponse = (adb_ncDescribeInstancesResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncDescribeInstancesResponse_t)); ++ ++ if(NULL == _ncDescribeInstancesResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncDescribeInstancesResponse, 0, sizeof(adb_ncDescribeInstancesResponse_t)); ++ ++ _ncDescribeInstancesResponse->property_ncDescribeInstancesResponse = NULL; ++ _ncDescribeInstancesResponse->is_valid_ncDescribeInstancesResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncDescribeInstancesResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncDescribeInstancesResponse->qname = qname; ++ ++ ++ return _ncDescribeInstancesResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_free ( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponse, AXIS2_FAILURE); ++ ++ adb_ncDescribeInstancesResponse_reset_ncDescribeInstancesResponse(_ncDescribeInstancesResponse, env); ++ ++ if(_ncDescribeInstancesResponse->qname) ++ { ++ axutil_qname_free (_ncDescribeInstancesResponse->qname, env); ++ _ncDescribeInstancesResponse->qname = NULL; ++ } ++ ++ ++ if(_ncDescribeInstancesResponse) ++ { ++ AXIS2_FREE(env->allocator, _ncDescribeInstancesResponse); ++ _ncDescribeInstancesResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_deserialize( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDescribeInstancesResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncDescribeInstancesResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDescribeInstancesResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncDescribeInstancesResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncDescribeInstancesResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncDescribeInstancesResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncDescribeInstancesResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncDescribeInstancesResponseType_create(env); ++ ++ status = adb_ncDescribeInstancesResponseType_deserialize((adb_ncDescribeInstancesResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncDescribeInstancesResponse"); ++ } ++ else ++ { ++ status = adb_ncDescribeInstancesResponse_set_ncDescribeInstancesResponse(_ncDescribeInstancesResponse, env, ++ (adb_ncDescribeInstancesResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncDescribeInstancesResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncDescribeInstancesResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncDescribeInstancesResponse_declare_parent_namespaces( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponse_serialize( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncDescribeInstancesResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeInstancesResponse->is_valid_ncDescribeInstancesResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncDescribeInstancesResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncDescribeInstancesResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncDescribeInstancesResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncDescribeInstancesResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncDescribeInstancesResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncDescribeInstancesResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncDescribeInstancesResponseType_serialize(_ncDescribeInstancesResponse->property_ncDescribeInstancesResponse, ++ env, current_node, parent_element, ++ adb_ncDescribeInstancesResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncDescribeInstancesResponse. ++ */ ++ adb_ncDescribeInstancesResponseType_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponse_get_ncDescribeInstancesResponse( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponse, NULL); ++ ++ ++ return _ncDescribeInstancesResponse->property_ncDescribeInstancesResponse; ++ } ++ ++ /** ++ * setter for ncDescribeInstancesResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_set_ncDescribeInstancesResponse( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env, ++ adb_ncDescribeInstancesResponseType_t* arg_ncDescribeInstancesResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponse, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesResponse->is_valid_ncDescribeInstancesResponse && ++ arg_ncDescribeInstancesResponse == _ncDescribeInstancesResponse->property_ncDescribeInstancesResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeInstancesResponse_reset_ncDescribeInstancesResponse(_ncDescribeInstancesResponse, env); ++ ++ ++ if(NULL == arg_ncDescribeInstancesResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeInstancesResponse->property_ncDescribeInstancesResponse = arg_ncDescribeInstancesResponse; ++ _ncDescribeInstancesResponse->is_valid_ncDescribeInstancesResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncDescribeInstancesResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_reset_ncDescribeInstancesResponse( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeInstancesResponse->property_ncDescribeInstancesResponse != NULL) ++ { ++ ++ ++ adb_ncDescribeInstancesResponseType_free(_ncDescribeInstancesResponse->property_ncDescribeInstancesResponse, env); ++ _ncDescribeInstancesResponse->property_ncDescribeInstancesResponse = NULL; ++ } ++ ++ ++ ++ _ncDescribeInstancesResponse->is_valid_ncDescribeInstancesResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncDescribeInstancesResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_is_ncDescribeInstancesResponse_nil( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponse, AXIS2_TRUE); ++ ++ return !_ncDescribeInstancesResponse->is_valid_ncDescribeInstancesResponse; ++ } ++ ++ /** ++ * Set ncDescribeInstancesResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_set_ncDescribeInstancesResponse_nil( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeInstancesResponse_reset_ncDescribeInstancesResponse(_ncDescribeInstancesResponse, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncDescribeInstancesResponse.h' +--- old/node/generated/adb_ncDescribeInstancesResponse.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncDescribeInstancesResponse.h 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCDESCRIBEINSTANCESRESPONSE_H ++ #define ADB_NCDESCRIBEINSTANCESRESPONSE_H ++ ++ /** ++ * adb_ncDescribeInstancesResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncDescribeInstancesResponse class ++ */ ++ typedef struct adb_ncDescribeInstancesResponse adb_ncDescribeInstancesResponse_t; ++ ++ ++ #include "adb_ncDescribeInstancesResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncDescribeInstancesResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncDescribeInstancesResponse_t object ++ */ ++ adb_ncDescribeInstancesResponse_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncDescribeInstancesResponse_t object ++ * @param _ncDescribeInstancesResponse adb_ncDescribeInstancesResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_free ( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncDescribeInstancesResponse. ++ * @param _ncDescribeInstancesResponse adb_ncDescribeInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_ncDescribeInstancesResponseType_t* ++ */ ++ adb_ncDescribeInstancesResponseType_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponse_get_ncDescribeInstancesResponse( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncDescribeInstancesResponse. ++ * @param _ncDescribeInstancesResponse adb_ncDescribeInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_ncDescribeInstancesResponse adb_ncDescribeInstancesResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_set_ncDescribeInstancesResponse( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env, ++ adb_ncDescribeInstancesResponseType_t* arg_ncDescribeInstancesResponse); ++ ++ /** ++ * Resetter for ncDescribeInstancesResponse ++ * @param _ncDescribeInstancesResponse adb_ncDescribeInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_reset_ncDescribeInstancesResponse( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncDescribeInstancesResponse is nill ++ * @param _ncDescribeInstancesResponse adb_ncDescribeInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_is_ncDescribeInstancesResponse_nil( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncDescribeInstancesResponse to nill (currently the same as reset) ++ * @param _ncDescribeInstancesResponse adb_ncDescribeInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_set_ncDescribeInstancesResponse_nil( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncDescribeInstancesResponse adb_ncDescribeInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_deserialize( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncDescribeInstancesResponse adb_ncDescribeInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncDescribeInstancesResponse_declare_parent_namespaces( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncDescribeInstancesResponse adb_ncDescribeInstancesResponse_t object ++ * @param env pointer to environment struct ++ * @param ncDescribeInstancesResponse_om_node node to serialize from ++ * @param ncDescribeInstancesResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponse_serialize( ++ adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, ++ const axutil_env_t *env, ++ axiom_node_t* ncDescribeInstancesResponse_om_node, axiom_element_t *ncDescribeInstancesResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncDescribeInstancesResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCDESCRIBEINSTANCESRESPONSE_H */ ++ ++ + +=== added file 'node/generated/adb_ncDescribeInstancesResponseType.c' +--- old/node/generated/adb_ncDescribeInstancesResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncDescribeInstancesResponseType.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,2040 @@ ++ ++ ++ /** ++ * adb_ncDescribeInstancesResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncDescribeInstancesResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncDescribeInstancesResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncDescribeInstancesResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axutil_array_list_t* property_instances; ++ ++ ++ axis2_bool_t is_valid_instances; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_correlationId_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_userId_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_return_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_instances_nil_at( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_instances_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncDescribeInstancesResponseType_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncDescribeInstancesResponseType_t *_ncDescribeInstancesResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncDescribeInstancesResponseType = (adb_ncDescribeInstancesResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncDescribeInstancesResponseType_t)); ++ ++ if(NULL == _ncDescribeInstancesResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncDescribeInstancesResponseType, 0, sizeof(adb_ncDescribeInstancesResponseType_t)); ++ ++ _ncDescribeInstancesResponseType->property_correlationId = NULL; ++ _ncDescribeInstancesResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _ncDescribeInstancesResponseType->property_userId = NULL; ++ _ncDescribeInstancesResponseType->is_valid_userId = AXIS2_FALSE; ++ _ncDescribeInstancesResponseType->is_valid_return = AXIS2_FALSE; ++ _ncDescribeInstancesResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncDescribeInstancesResponseType->property_instances = NULL; ++ _ncDescribeInstancesResponseType->is_valid_instances = AXIS2_FALSE; ++ ++ ++ return _ncDescribeInstancesResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_free ( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ adb_ncDescribeInstancesResponseType_reset_correlationId(_ncDescribeInstancesResponseType, env); ++ adb_ncDescribeInstancesResponseType_reset_userId(_ncDescribeInstancesResponseType, env); ++ adb_ncDescribeInstancesResponseType_reset_return(_ncDescribeInstancesResponseType, env); ++ adb_ncDescribeInstancesResponseType_reset_statusMessage(_ncDescribeInstancesResponseType, env); ++ adb_ncDescribeInstancesResponseType_reset_instances(_ncDescribeInstancesResponseType, env); ++ ++ ++ if(_ncDescribeInstancesResponseType) ++ { ++ AXIS2_FREE(env->allocator, _ncDescribeInstancesResponseType); ++ _ncDescribeInstancesResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_deserialize( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDescribeInstancesResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeInstancesResponseType_set_correlationId(_ncDescribeInstancesResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDescribeInstancesResponseType_set_correlationId(_ncDescribeInstancesResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeInstancesResponseType_set_userId(_ncDescribeInstancesResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDescribeInstancesResponseType_set_userId(_ncDescribeInstancesResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncDescribeInstancesResponseType_set_return(_ncDescribeInstancesResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncDescribeInstancesResponseType_set_return(_ncDescribeInstancesResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeInstancesResponseType_set_statusMessage(_ncDescribeInstancesResponseType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building instances array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building instances element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "instances", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ element = (void*)adb_instanceType_create(env); ++ ++ status = adb_instanceType_deserialize((adb_instanceType_t*)element, env, ++ ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building element instances "); ++ } ++ else ++ { ++ axutil_array_list_add_at(arr_list, env, i, element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instances "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instances (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_ncDescribeInstancesResponseType_set_instances(_ncDescribeInstancesResponseType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_declare_parent_namespaces( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_serialize( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t text_value_5[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeInstancesResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncDescribeInstancesResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeInstancesResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncDescribeInstancesResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeInstancesResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncDescribeInstancesResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeInstancesResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDescribeInstancesResponseType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeInstancesResponseType->is_valid_instances) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instances"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instances"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing instances array ++ */ ++ if (_ncDescribeInstancesResponseType->property_instances != NULL) ++ { ++ ++ ++ sprintf(start_input_str, "<%s%sinstances", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_ncDescribeInstancesResponseType->property_instances, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_ncDescribeInstancesResponseType->property_instances, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing instances element ++ */ ++ ++ ++ ++ if(!adb_instanceType_is_particle()) ++ { ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ } ++ ++ adb_instanceType_serialize((adb_instanceType_t*)element, ++ env, current_node, parent_element, ++ adb_instanceType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index); ++ ++ if(!adb_instanceType_is_particle()) ++ { ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ } ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_get_correlationId( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, NULL); ++ ++ ++ return _ncDescribeInstancesResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_correlationId( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesResponseType->is_valid_correlationId && ++ arg_correlationId == _ncDescribeInstancesResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeInstancesResponseType_reset_correlationId(_ncDescribeInstancesResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeInstancesResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncDescribeInstancesResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDescribeInstancesResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_reset_correlationId( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeInstancesResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDescribeInstancesResponseType->property_correlationId); ++ _ncDescribeInstancesResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncDescribeInstancesResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_correlationId_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeInstancesResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_correlationId_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeInstancesResponseType_reset_correlationId(_ncDescribeInstancesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_get_userId( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, NULL); ++ ++ ++ return _ncDescribeInstancesResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_userId( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesResponseType->is_valid_userId && ++ arg_userId == _ncDescribeInstancesResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeInstancesResponseType_reset_userId(_ncDescribeInstancesResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeInstancesResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncDescribeInstancesResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDescribeInstancesResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_reset_userId( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeInstancesResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDescribeInstancesResponseType->property_userId); ++ _ncDescribeInstancesResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncDescribeInstancesResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_userId_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeInstancesResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_userId_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeInstancesResponseType_reset_userId(_ncDescribeInstancesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_get_return( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, (axis2_bool_t)0); ++ ++ ++ return _ncDescribeInstancesResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_return( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesResponseType->is_valid_return && ++ arg_return == _ncDescribeInstancesResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeInstancesResponseType_reset_return(_ncDescribeInstancesResponseType, env); ++ ++ _ncDescribeInstancesResponseType->property_return = arg_return; ++ _ncDescribeInstancesResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_reset_return( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeInstancesResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_return_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeInstancesResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_return_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeInstancesResponseType_reset_return(_ncDescribeInstancesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_get_statusMessage( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, (int)0); ++ ++ ++ return _ncDescribeInstancesResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_statusMessage( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesResponseType->is_valid_statusMessage && ++ arg_statusMessage == _ncDescribeInstancesResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeInstancesResponseType_reset_statusMessage(_ncDescribeInstancesResponseType, env); ++ ++ _ncDescribeInstancesResponseType->property_statusMessage = arg_statusMessage; ++ _ncDescribeInstancesResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_reset_statusMessage( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeInstancesResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_statusMessage_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeInstancesResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_statusMessage_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeInstancesResponseType_reset_statusMessage(_ncDescribeInstancesResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instances. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_get_instances( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, NULL); ++ ++ ++ return _ncDescribeInstancesResponseType->property_instances; ++ } ++ ++ /** ++ * setter for instances ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_instances( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_instances) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesResponseType->is_valid_instances && ++ arg_instances == _ncDescribeInstancesResponseType->property_instances) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_instances, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instances has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_instances, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_ncDescribeInstancesResponseType_reset_instances(_ncDescribeInstancesResponseType, env); ++ ++ ++ if(NULL == arg_instances) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeInstancesResponseType->property_instances = arg_instances; ++ if(non_nil_exists) ++ { ++ _ncDescribeInstancesResponseType->is_valid_instances = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of instances. ++ */ ++ adb_instanceType_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_get_instances_at( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ adb_instanceType_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, NULL); ++ ++ ++ if(_ncDescribeInstancesResponseType->property_instances == NULL) ++ { ++ return (adb_instanceType_t*)0; ++ } ++ ret_val = (adb_instanceType_t*)axutil_array_list_get(_ncDescribeInstancesResponseType->property_instances, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of instances. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_instances_at( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, int i, ++ adb_instanceType_t* arg_instances) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ if( _ncDescribeInstancesResponseType->is_valid_instances && ++ _ncDescribeInstancesResponseType->property_instances && ++ ++ arg_instances == (adb_instanceType_t*)axutil_array_list_get(_ncDescribeInstancesResponseType->property_instances, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instances) ++ { ++ if(_ncDescribeInstancesResponseType->property_instances != NULL) ++ { ++ size = axutil_array_list_size(_ncDescribeInstancesResponseType->property_instances, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_ncDescribeInstancesResponseType->property_instances, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instances is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_ncDescribeInstancesResponseType->property_instances == NULL) ++ { ++ _ncDescribeInstancesResponseType->property_instances = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_ncDescribeInstancesResponseType->property_instances, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ adb_instanceType_free((adb_instanceType_t*)element, env); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _ncDescribeInstancesResponseType->is_valid_instances = AXIS2_FALSE; ++ axutil_array_list_set(_ncDescribeInstancesResponseType->property_instances , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_ncDescribeInstancesResponseType->property_instances , env, i, arg_instances); ++ _ncDescribeInstancesResponseType->is_valid_instances = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to instances. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_add_instances( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ adb_instanceType_t* arg_instances) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_instances) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_ncDescribeInstancesResponseType->property_instances == NULL) ++ { ++ _ncDescribeInstancesResponseType->property_instances = axutil_array_list_create(env, 10); ++ } ++ if(_ncDescribeInstancesResponseType->property_instances == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for instances"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_ncDescribeInstancesResponseType->property_instances , env, arg_instances); ++ _ncDescribeInstancesResponseType->is_valid_instances = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the instances array. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_sizeof_instances( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, -1); ++ if(_ncDescribeInstancesResponseType->property_instances == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_ncDescribeInstancesResponseType->property_instances, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_remove_instances_at( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_ncDescribeInstancesResponseType_set_instances_nil_at(_ncDescribeInstancesResponseType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for instances ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_reset_instances( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ ++ ++ if (_ncDescribeInstancesResponseType->property_instances != NULL) ++ { ++ count = axutil_array_list_size(_ncDescribeInstancesResponseType->property_instances, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_ncDescribeInstancesResponseType->property_instances, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ adb_instanceType_free((adb_instanceType_t*)element, env); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_ncDescribeInstancesResponseType->property_instances, env); ++ } ++ _ncDescribeInstancesResponseType->is_valid_instances = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instances is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_instances_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeInstancesResponseType->is_valid_instances; ++ } ++ ++ /** ++ * Set instances to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_instances_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeInstancesResponseType_reset_instances(_ncDescribeInstancesResponseType, env); ++ } ++ ++ ++ /** ++ * Check whether instances is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_instances_nil_at( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_TRUE); ++ ++ return (_ncDescribeInstancesResponseType->is_valid_instances == AXIS2_FALSE || ++ NULL == _ncDescribeInstancesResponseType->property_instances || ++ NULL == axutil_array_list_get(_ncDescribeInstancesResponseType->property_instances, env, i)); ++ } ++ ++ /** ++ * Set instances to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_instances_nil_at( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesResponseType->property_instances == NULL || ++ _ncDescribeInstancesResponseType->is_valid_instances == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_ncDescribeInstancesResponseType->property_instances, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_ncDescribeInstancesResponseType->property_instances, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instances is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_ncDescribeInstancesResponseType->property_instances == NULL) ++ { ++ _ncDescribeInstancesResponseType->is_valid_instances = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_ncDescribeInstancesResponseType->property_instances, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ adb_instanceType_free((adb_instanceType_t*)element, env); ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _ncDescribeInstancesResponseType->is_valid_instances = AXIS2_FALSE; ++ axutil_array_list_set(_ncDescribeInstancesResponseType->property_instances , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_ncDescribeInstancesResponseType->property_instances , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncDescribeInstancesResponseType.h' +--- old/node/generated/adb_ncDescribeInstancesResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncDescribeInstancesResponseType.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,540 @@ ++ ++ ++ #ifndef ADB_NCDESCRIBEINSTANCESRESPONSETYPE_H ++ #define ADB_NCDESCRIBEINSTANCESRESPONSETYPE_H ++ ++ /** ++ * adb_ncDescribeInstancesResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncDescribeInstancesResponseType class ++ */ ++ typedef struct adb_ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t; ++ ++ ++ #include "adb_instanceType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncDescribeInstancesResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncDescribeInstancesResponseType_t object ++ */ ++ adb_ncDescribeInstancesResponseType_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncDescribeInstancesResponseType_t object ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_free ( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_get_correlationId( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_correlationId( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_reset_correlationId( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_get_userId( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_userId( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_reset_userId( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_get_return( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_return( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_reset_return( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_get_statusMessage( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_statusMessage( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_reset_statusMessage( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instances. Deprecated for array types, Use adb_ncDescribeInstancesResponseType_get_instances_at instead ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return Array of adb_instanceType_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_get_instances( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instances.Deprecated for array types, Use adb_ncDescribeInstancesResponseType_set_instances_at ++ * or adb_ncDescribeInstancesResponseType_add_instances instead. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_instances Array of adb_instanceType_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_instances( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_instances); ++ ++ /** ++ * Resetter for instances ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_reset_instances( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of instances. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith adb_instanceType_t* of the array ++ */ ++ adb_instanceType_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_get_instances_at( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of instances. (If the ith already exist, it will be replaced) ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_instances element to set adb_instanceType_t* to the array ++ * @return ith adb_instanceType_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_instances_at( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, int i, ++ adb_instanceType_t* arg_instances); ++ ++ ++ /** ++ * Add to instances. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_instances element to add adb_instanceType_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_add_instances( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ adb_instanceType_t* arg_instances); ++ ++ /** ++ * Get the size of the instances array. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the instances array. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_sizeof_instances( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of instances. ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_remove_instances_at( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_correlationId_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_userId_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_return_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_statusMessage_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_statusMessage_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether instances is nill ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_instances_nil( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether instances is nill at i ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_instances_nil_at( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set instances to nill at i ++ * @param _ncDescribeInstancesResponseType _ adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_set_instances_nil_at( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_deserialize( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_declare_parent_namespaces( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncDescribeInstancesResponseType adb_ncDescribeInstancesResponseType_t object ++ * @param env pointer to environment struct ++ * @param ncDescribeInstancesResponseType_om_node node to serialize from ++ * @param ncDescribeInstancesResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_serialize( ++ adb_ncDescribeInstancesResponseType_t* _ncDescribeInstancesResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* ncDescribeInstancesResponseType_om_node, axiom_element_t *ncDescribeInstancesResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncDescribeInstancesResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCDESCRIBEINSTANCESRESPONSETYPE_H */ ++ ++ + +=== added file 'node/generated/adb_ncDescribeInstancesType.c' +--- old/node/generated/adb_ncDescribeInstancesType.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncDescribeInstancesType.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,2095 @@ ++ ++ ++ /** ++ * adb_ncDescribeInstancesType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncDescribeInstancesType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncDescribeInstancesType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncDescribeInstancesType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axutil_array_list_t* property_instanceIds; ++ ++ ++ axis2_bool_t is_valid_instanceIds; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_correlationId_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_userId_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_return_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_instanceIds_nil_at( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_instanceIds_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncDescribeInstancesType_t* AXIS2_CALL ++ adb_ncDescribeInstancesType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncDescribeInstancesType_t *_ncDescribeInstancesType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncDescribeInstancesType = (adb_ncDescribeInstancesType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncDescribeInstancesType_t)); ++ ++ if(NULL == _ncDescribeInstancesType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncDescribeInstancesType, 0, sizeof(adb_ncDescribeInstancesType_t)); ++ ++ _ncDescribeInstancesType->property_correlationId = NULL; ++ _ncDescribeInstancesType->is_valid_correlationId = AXIS2_FALSE; ++ _ncDescribeInstancesType->property_userId = NULL; ++ _ncDescribeInstancesType->is_valid_userId = AXIS2_FALSE; ++ _ncDescribeInstancesType->is_valid_return = AXIS2_FALSE; ++ _ncDescribeInstancesType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncDescribeInstancesType->property_instanceIds = NULL; ++ _ncDescribeInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ ++ ++ return _ncDescribeInstancesType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_free ( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ adb_ncDescribeInstancesType_reset_correlationId(_ncDescribeInstancesType, env); ++ adb_ncDescribeInstancesType_reset_userId(_ncDescribeInstancesType, env); ++ adb_ncDescribeInstancesType_reset_return(_ncDescribeInstancesType, env); ++ adb_ncDescribeInstancesType_reset_statusMessage(_ncDescribeInstancesType, env); ++ adb_ncDescribeInstancesType_reset_instanceIds(_ncDescribeInstancesType, env); ++ ++ ++ if(_ncDescribeInstancesType) ++ { ++ AXIS2_FREE(env->allocator, _ncDescribeInstancesType); ++ _ncDescribeInstancesType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_deserialize( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDescribeInstancesType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeInstancesType_set_correlationId(_ncDescribeInstancesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDescribeInstancesType_set_correlationId(_ncDescribeInstancesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeInstancesType_set_userId(_ncDescribeInstancesType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDescribeInstancesType_set_userId(_ncDescribeInstancesType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncDescribeInstancesType_set_return(_ncDescribeInstancesType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncDescribeInstancesType_set_return(_ncDescribeInstancesType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeInstancesType_set_statusMessage(_ncDescribeInstancesType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building instanceIds array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building instanceIds element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "instanceIds", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value)); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceIds"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, "")); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceIds "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceIds (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_ncDescribeInstancesType_set_instanceIds(_ncDescribeInstancesType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncDescribeInstancesType_declare_parent_namespaces( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeInstancesType_serialize( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeInstancesType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncDescribeInstancesType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeInstancesType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncDescribeInstancesType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeInstancesType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncDescribeInstancesType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeInstancesType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDescribeInstancesType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeInstancesType->is_valid_instanceIds) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceIds"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceIds"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing instanceIds array ++ */ ++ if (_ncDescribeInstancesType->property_instanceIds != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%sinstanceIds>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_ncDescribeInstancesType->property_instanceIds, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_ncDescribeInstancesType->property_instanceIds, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing instanceIds element ++ */ ++ ++ ++ ++ text_value_5 = (axis2_char_t*)element; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeInstancesType_get_correlationId( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, NULL); ++ ++ ++ return _ncDescribeInstancesType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_correlationId( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesType->is_valid_correlationId && ++ arg_correlationId == _ncDescribeInstancesType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeInstancesType_reset_correlationId(_ncDescribeInstancesType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeInstancesType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncDescribeInstancesType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDescribeInstancesType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_reset_correlationId( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeInstancesType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDescribeInstancesType->property_correlationId); ++ _ncDescribeInstancesType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncDescribeInstancesType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_correlationId_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_TRUE); ++ ++ return !_ncDescribeInstancesType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_correlationId_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeInstancesType_reset_correlationId(_ncDescribeInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeInstancesType_get_userId( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, NULL); ++ ++ ++ return _ncDescribeInstancesType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_userId( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesType->is_valid_userId && ++ arg_userId == _ncDescribeInstancesType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeInstancesType_reset_userId(_ncDescribeInstancesType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeInstancesType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncDescribeInstancesType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDescribeInstancesType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_reset_userId( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeInstancesType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDescribeInstancesType->property_userId); ++ _ncDescribeInstancesType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncDescribeInstancesType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_userId_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_TRUE); ++ ++ return !_ncDescribeInstancesType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_userId_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeInstancesType_reset_userId(_ncDescribeInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_get_return( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, (axis2_bool_t)0); ++ ++ ++ return _ncDescribeInstancesType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_return( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesType->is_valid_return && ++ arg_return == _ncDescribeInstancesType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeInstancesType_reset_return(_ncDescribeInstancesType, env); ++ ++ _ncDescribeInstancesType->property_return = arg_return; ++ _ncDescribeInstancesType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_reset_return( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeInstancesType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_return_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_TRUE); ++ ++ return !_ncDescribeInstancesType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_return_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeInstancesType_reset_return(_ncDescribeInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeInstancesType_get_statusMessage( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, (int)0); ++ ++ ++ return _ncDescribeInstancesType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_statusMessage( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesType->is_valid_statusMessage && ++ arg_statusMessage == _ncDescribeInstancesType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeInstancesType_reset_statusMessage(_ncDescribeInstancesType, env); ++ ++ _ncDescribeInstancesType->property_statusMessage = arg_statusMessage; ++ _ncDescribeInstancesType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_reset_statusMessage( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeInstancesType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_statusMessage_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_TRUE); ++ ++ return !_ncDescribeInstancesType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_statusMessage_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeInstancesType_reset_statusMessage(_ncDescribeInstancesType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceIds. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_ncDescribeInstancesType_get_instanceIds( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, NULL); ++ ++ ++ return _ncDescribeInstancesType->property_instanceIds; ++ } ++ ++ /** ++ * setter for instanceIds ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_instanceIds( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_instanceIds) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesType->is_valid_instanceIds && ++ arg_instanceIds == _ncDescribeInstancesType->property_instanceIds) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_instanceIds, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceIds has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_instanceIds, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_ncDescribeInstancesType_reset_instanceIds(_ncDescribeInstancesType, env); ++ ++ ++ if(NULL == arg_instanceIds) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeInstancesType->property_instanceIds = arg_instanceIds; ++ if(non_nil_exists) ++ { ++ _ncDescribeInstancesType->is_valid_instanceIds = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of instanceIds. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeInstancesType_get_instanceIds_at( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ axis2_char_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, NULL); ++ ++ ++ if(_ncDescribeInstancesType->property_instanceIds == NULL) ++ { ++ return (axis2_char_t*)0; ++ } ++ ret_val = (axis2_char_t*)axutil_array_list_get(_ncDescribeInstancesType->property_instanceIds, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of instanceIds. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_instanceIds_at( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_instanceIds) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ if( _ncDescribeInstancesType->is_valid_instanceIds && ++ _ncDescribeInstancesType->property_instanceIds && ++ ++ arg_instanceIds == (axis2_char_t*)axutil_array_list_get(_ncDescribeInstancesType->property_instanceIds, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instanceIds) ++ { ++ if(_ncDescribeInstancesType->property_instanceIds != NULL) ++ { ++ size = axutil_array_list_size(_ncDescribeInstancesType->property_instanceIds, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_ncDescribeInstancesType->property_instanceIds, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instanceIds is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_ncDescribeInstancesType->property_instanceIds == NULL) ++ { ++ _ncDescribeInstancesType->property_instanceIds = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_ncDescribeInstancesType->property_instanceIds, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _ncDescribeInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ axutil_array_list_set(_ncDescribeInstancesType->property_instanceIds , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_ncDescribeInstancesType->property_instanceIds , env, i, axutil_strdup(env, arg_instanceIds)); ++ _ncDescribeInstancesType->is_valid_instanceIds = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to instanceIds. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_add_instanceIds( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceIds) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_instanceIds) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_ncDescribeInstancesType->property_instanceIds == NULL) ++ { ++ _ncDescribeInstancesType->property_instanceIds = axutil_array_list_create(env, 10); ++ } ++ if(_ncDescribeInstancesType->property_instanceIds == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for instanceIds"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_ncDescribeInstancesType->property_instanceIds , env, axutil_strdup(env, arg_instanceIds)); ++ _ncDescribeInstancesType->is_valid_instanceIds = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the instanceIds array. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeInstancesType_sizeof_instanceIds( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, -1); ++ if(_ncDescribeInstancesType->property_instanceIds == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_ncDescribeInstancesType->property_instanceIds, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_remove_instanceIds_at( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_ncDescribeInstancesType_set_instanceIds_nil_at(_ncDescribeInstancesType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for instanceIds ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_reset_instanceIds( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ ++ ++ if (_ncDescribeInstancesType->property_instanceIds != NULL) ++ { ++ count = axutil_array_list_size(_ncDescribeInstancesType->property_instanceIds, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_ncDescribeInstancesType->property_instanceIds, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_ncDescribeInstancesType->property_instanceIds, env); ++ } ++ _ncDescribeInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceIds is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_instanceIds_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_TRUE); ++ ++ return !_ncDescribeInstancesType->is_valid_instanceIds; ++ } ++ ++ /** ++ * Set instanceIds to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_instanceIds_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeInstancesType_reset_instanceIds(_ncDescribeInstancesType, env); ++ } ++ ++ ++ /** ++ * Check whether instanceIds is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_instanceIds_nil_at( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_TRUE); ++ ++ return (_ncDescribeInstancesType->is_valid_instanceIds == AXIS2_FALSE || ++ NULL == _ncDescribeInstancesType->property_instanceIds || ++ NULL == axutil_array_list_get(_ncDescribeInstancesType->property_instanceIds, env, i)); ++ } ++ ++ /** ++ * Set instanceIds to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_instanceIds_nil_at( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeInstancesType, AXIS2_FAILURE); ++ ++ if(_ncDescribeInstancesType->property_instanceIds == NULL || ++ _ncDescribeInstancesType->is_valid_instanceIds == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_ncDescribeInstancesType->property_instanceIds, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_ncDescribeInstancesType->property_instanceIds, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instanceIds is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_ncDescribeInstancesType->property_instanceIds == NULL) ++ { ++ _ncDescribeInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_ncDescribeInstancesType->property_instanceIds, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _ncDescribeInstancesType->is_valid_instanceIds = AXIS2_FALSE; ++ axutil_array_list_set(_ncDescribeInstancesType->property_instanceIds , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_ncDescribeInstancesType->property_instanceIds , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncDescribeInstancesType.h' +--- old/node/generated/adb_ncDescribeInstancesType.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncDescribeInstancesType.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,538 @@ ++ ++ ++ #ifndef ADB_NCDESCRIBEINSTANCESTYPE_H ++ #define ADB_NCDESCRIBEINSTANCESTYPE_H ++ ++ /** ++ * adb_ncDescribeInstancesType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncDescribeInstancesType class ++ */ ++ typedef struct adb_ncDescribeInstancesType adb_ncDescribeInstancesType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncDescribeInstancesType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncDescribeInstancesType_t object ++ */ ++ adb_ncDescribeInstancesType_t* AXIS2_CALL ++ adb_ncDescribeInstancesType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncDescribeInstancesType_t object ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_free ( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeInstancesType_get_correlationId( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_correlationId( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_reset_correlationId( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeInstancesType_get_userId( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_userId( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_reset_userId( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_get_return( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_return( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_reset_return( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeInstancesType_get_statusMessage( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_statusMessage( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_reset_statusMessage( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceIds. Deprecated for array types, Use adb_ncDescribeInstancesType_get_instanceIds_at instead ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return Array of axis2_char_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_ncDescribeInstancesType_get_instanceIds( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceIds.Deprecated for array types, Use adb_ncDescribeInstancesType_set_instanceIds_at ++ * or adb_ncDescribeInstancesType_add_instanceIds instead. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceIds Array of axis2_char_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_instanceIds( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_instanceIds); ++ ++ /** ++ * Resetter for instanceIds ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_reset_instanceIds( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of instanceIds. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeInstancesType_get_instanceIds_at( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of instanceIds. (If the ith already exist, it will be replaced) ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_instanceIds element to set axis2_char_t* to the array ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_instanceIds_at( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_instanceIds); ++ ++ ++ /** ++ * Add to instanceIds. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceIds element to add axis2_char_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_add_instanceIds( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceIds); ++ ++ /** ++ * Get the size of the instanceIds array. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the instanceIds array. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeInstancesType_sizeof_instanceIds( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of instanceIds. ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_remove_instanceIds_at( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_correlationId_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_userId_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_return_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_statusMessage_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_statusMessage_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether instanceIds is nill ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_instanceIds_nil( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env); ++ ++ ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether instanceIds is nill at i ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_instanceIds_nil_at( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set instanceIds to nill at i ++ * @param _ncDescribeInstancesType _ adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_set_instanceIds_nil_at( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeInstancesType_deserialize( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncDescribeInstancesType_declare_parent_namespaces( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncDescribeInstancesType adb_ncDescribeInstancesType_t object ++ * @param env pointer to environment struct ++ * @param ncDescribeInstancesType_om_node node to serialize from ++ * @param ncDescribeInstancesType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeInstancesType_serialize( ++ adb_ncDescribeInstancesType_t* _ncDescribeInstancesType, ++ const axutil_env_t *env, ++ axiom_node_t* ncDescribeInstancesType_om_node, axiom_element_t *ncDescribeInstancesType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncDescribeInstancesType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeInstancesType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCDESCRIBEINSTANCESTYPE_H */ ++ ++ + +=== added file 'node/generated/adb_ncDescribeResource.c' +--- old/node/generated/adb_ncDescribeResource.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncDescribeResource.c 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncDescribeResource.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncDescribeResource.h" ++ ++ /* ++ * implmentation of the ncDescribeResource|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncDescribeResource ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncDescribeResourceType_t* property_ncDescribeResource; ++ ++ ++ axis2_bool_t is_valid_ncDescribeResource; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncDescribeResource_t* AXIS2_CALL ++ adb_ncDescribeResource_create( ++ const axutil_env_t *env) ++ { ++ adb_ncDescribeResource_t *_ncDescribeResource = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncDescribeResource = (adb_ncDescribeResource_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncDescribeResource_t)); ++ ++ if(NULL == _ncDescribeResource) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncDescribeResource, 0, sizeof(adb_ncDescribeResource_t)); ++ ++ _ncDescribeResource->property_ncDescribeResource = NULL; ++ _ncDescribeResource->is_valid_ncDescribeResource = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncDescribeResource", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncDescribeResource->qname = qname; ++ ++ ++ return _ncDescribeResource; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResource_free ( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResource, AXIS2_FAILURE); ++ ++ adb_ncDescribeResource_reset_ncDescribeResource(_ncDescribeResource, env); ++ ++ if(_ncDescribeResource->qname) ++ { ++ axutil_qname_free (_ncDescribeResource->qname, env); ++ _ncDescribeResource->qname = NULL; ++ } ++ ++ ++ if(_ncDescribeResource) ++ { ++ AXIS2_FREE(env->allocator, _ncDescribeResource); ++ _ncDescribeResource = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResource_deserialize( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResource, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDescribeResource : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncDescribeResource-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDescribeResource : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncDescribeResource-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncDescribeResource element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncDescribeResource", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncDescribeResourceType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncDescribeResourceType_create(env); ++ ++ status = adb_ncDescribeResourceType_deserialize((adb_ncDescribeResourceType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncDescribeResource"); ++ } ++ else ++ { ++ status = adb_ncDescribeResource_set_ncDescribeResource(_ncDescribeResource, env, ++ (adb_ncDescribeResourceType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncDescribeResource "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncDescribeResource missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResource_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncDescribeResource_declare_parent_namespaces( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeResource_serialize( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResource, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncDescribeResource", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResource->is_valid_ncDescribeResource) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncDescribeResource") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncDescribeResource xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncDescribeResource"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncDescribeResource"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncDescribeResource element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncDescribeResource", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncDescribeResourceType_serialize(_ncDescribeResource->property_ncDescribeResource, ++ env, current_node, parent_element, ++ adb_ncDescribeResourceType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncDescribeResource. ++ */ ++ adb_ncDescribeResourceType_t* AXIS2_CALL ++ adb_ncDescribeResource_get_ncDescribeResource( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResource, NULL); ++ ++ ++ return _ncDescribeResource->property_ncDescribeResource; ++ } ++ ++ /** ++ * setter for ncDescribeResource ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResource_set_ncDescribeResource( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env, ++ adb_ncDescribeResourceType_t* arg_ncDescribeResource) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResource, AXIS2_FAILURE); ++ ++ if(_ncDescribeResource->is_valid_ncDescribeResource && ++ arg_ncDescribeResource == _ncDescribeResource->property_ncDescribeResource) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResource_reset_ncDescribeResource(_ncDescribeResource, env); ++ ++ ++ if(NULL == arg_ncDescribeResource) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeResource->property_ncDescribeResource = arg_ncDescribeResource; ++ _ncDescribeResource->is_valid_ncDescribeResource = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncDescribeResource ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResource_reset_ncDescribeResource( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResource, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeResource->property_ncDescribeResource != NULL) ++ { ++ ++ ++ adb_ncDescribeResourceType_free(_ncDescribeResource->property_ncDescribeResource, env); ++ _ncDescribeResource->property_ncDescribeResource = NULL; ++ } ++ ++ ++ ++ _ncDescribeResource->is_valid_ncDescribeResource = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncDescribeResource is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResource_is_ncDescribeResource_nil( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResource, AXIS2_TRUE); ++ ++ return !_ncDescribeResource->is_valid_ncDescribeResource; ++ } ++ ++ /** ++ * Set ncDescribeResource to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResource_set_ncDescribeResource_nil( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResource_reset_ncDescribeResource(_ncDescribeResource, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncDescribeResource.h' +--- old/node/generated/adb_ncDescribeResource.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncDescribeResource.h 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCDESCRIBERESOURCE_H ++ #define ADB_NCDESCRIBERESOURCE_H ++ ++ /** ++ * adb_ncDescribeResource.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncDescribeResource class ++ */ ++ typedef struct adb_ncDescribeResource adb_ncDescribeResource_t; ++ ++ ++ #include "adb_ncDescribeResourceType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncDescribeResource_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncDescribeResource_t object ++ */ ++ adb_ncDescribeResource_t* AXIS2_CALL ++ adb_ncDescribeResource_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncDescribeResource_t object ++ * @param _ncDescribeResource adb_ncDescribeResource_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResource_free ( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncDescribeResource. ++ * @param _ncDescribeResource adb_ncDescribeResource_t object ++ * @param env pointer to environment struct ++ * @return adb_ncDescribeResourceType_t* ++ */ ++ adb_ncDescribeResourceType_t* AXIS2_CALL ++ adb_ncDescribeResource_get_ncDescribeResource( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncDescribeResource. ++ * @param _ncDescribeResource adb_ncDescribeResource_t object ++ * @param env pointer to environment struct ++ * @param arg_ncDescribeResource adb_ncDescribeResourceType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResource_set_ncDescribeResource( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env, ++ adb_ncDescribeResourceType_t* arg_ncDescribeResource); ++ ++ /** ++ * Resetter for ncDescribeResource ++ * @param _ncDescribeResource adb_ncDescribeResource_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResource_reset_ncDescribeResource( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncDescribeResource is nill ++ * @param _ncDescribeResource adb_ncDescribeResource_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResource_is_ncDescribeResource_nil( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncDescribeResource to nill (currently the same as reset) ++ * @param _ncDescribeResource adb_ncDescribeResource_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResource_set_ncDescribeResource_nil( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncDescribeResource adb_ncDescribeResource_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResource_deserialize( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncDescribeResource adb_ncDescribeResource_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncDescribeResource_declare_parent_namespaces( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncDescribeResource adb_ncDescribeResource_t object ++ * @param env pointer to environment struct ++ * @param ncDescribeResource_om_node node to serialize from ++ * @param ncDescribeResource_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeResource_serialize( ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ const axutil_env_t *env, ++ axiom_node_t* ncDescribeResource_om_node, axiom_element_t *ncDescribeResource_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncDescribeResource is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResource_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCDESCRIBERESOURCE_H */ ++ ++ + +=== added file 'node/generated/adb_ncDescribeResourceResponse.c' +--- old/node/generated/adb_ncDescribeResourceResponse.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncDescribeResourceResponse.c 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncDescribeResourceResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncDescribeResourceResponse.h" ++ ++ /* ++ * implmentation of the ncDescribeResourceResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncDescribeResourceResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncDescribeResourceResponseType_t* property_ncDescribeResourceResponse; ++ ++ ++ axis2_bool_t is_valid_ncDescribeResourceResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncDescribeResourceResponse_t* AXIS2_CALL ++ adb_ncDescribeResourceResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_ncDescribeResourceResponse_t *_ncDescribeResourceResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncDescribeResourceResponse = (adb_ncDescribeResourceResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncDescribeResourceResponse_t)); ++ ++ if(NULL == _ncDescribeResourceResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncDescribeResourceResponse, 0, sizeof(adb_ncDescribeResourceResponse_t)); ++ ++ _ncDescribeResourceResponse->property_ncDescribeResourceResponse = NULL; ++ _ncDescribeResourceResponse->is_valid_ncDescribeResourceResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncDescribeResourceResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncDescribeResourceResponse->qname = qname; ++ ++ ++ return _ncDescribeResourceResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_free ( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponse, AXIS2_FAILURE); ++ ++ adb_ncDescribeResourceResponse_reset_ncDescribeResourceResponse(_ncDescribeResourceResponse, env); ++ ++ if(_ncDescribeResourceResponse->qname) ++ { ++ axutil_qname_free (_ncDescribeResourceResponse->qname, env); ++ _ncDescribeResourceResponse->qname = NULL; ++ } ++ ++ ++ if(_ncDescribeResourceResponse) ++ { ++ AXIS2_FREE(env->allocator, _ncDescribeResourceResponse); ++ _ncDescribeResourceResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_deserialize( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDescribeResourceResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncDescribeResourceResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDescribeResourceResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncDescribeResourceResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncDescribeResourceResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncDescribeResourceResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncDescribeResourceResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncDescribeResourceResponseType_create(env); ++ ++ status = adb_ncDescribeResourceResponseType_deserialize((adb_ncDescribeResourceResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncDescribeResourceResponse"); ++ } ++ else ++ { ++ status = adb_ncDescribeResourceResponse_set_ncDescribeResourceResponse(_ncDescribeResourceResponse, env, ++ (adb_ncDescribeResourceResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncDescribeResourceResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncDescribeResourceResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncDescribeResourceResponse_declare_parent_namespaces( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeResourceResponse_serialize( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncDescribeResourceResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponse->is_valid_ncDescribeResourceResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncDescribeResourceResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncDescribeResourceResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncDescribeResourceResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncDescribeResourceResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncDescribeResourceResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncDescribeResourceResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncDescribeResourceResponseType_serialize(_ncDescribeResourceResponse->property_ncDescribeResourceResponse, ++ env, current_node, parent_element, ++ adb_ncDescribeResourceResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncDescribeResourceResponse. ++ */ ++ adb_ncDescribeResourceResponseType_t* AXIS2_CALL ++ adb_ncDescribeResourceResponse_get_ncDescribeResourceResponse( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponse, NULL); ++ ++ ++ return _ncDescribeResourceResponse->property_ncDescribeResourceResponse; ++ } ++ ++ /** ++ * setter for ncDescribeResourceResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_set_ncDescribeResourceResponse( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env, ++ adb_ncDescribeResourceResponseType_t* arg_ncDescribeResourceResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponse, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponse->is_valid_ncDescribeResourceResponse && ++ arg_ncDescribeResourceResponse == _ncDescribeResourceResponse->property_ncDescribeResourceResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceResponse_reset_ncDescribeResourceResponse(_ncDescribeResourceResponse, env); ++ ++ ++ if(NULL == arg_ncDescribeResourceResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeResourceResponse->property_ncDescribeResourceResponse = arg_ncDescribeResourceResponse; ++ _ncDescribeResourceResponse->is_valid_ncDescribeResourceResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncDescribeResourceResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_reset_ncDescribeResourceResponse( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeResourceResponse->property_ncDescribeResourceResponse != NULL) ++ { ++ ++ ++ adb_ncDescribeResourceResponseType_free(_ncDescribeResourceResponse->property_ncDescribeResourceResponse, env); ++ _ncDescribeResourceResponse->property_ncDescribeResourceResponse = NULL; ++ } ++ ++ ++ ++ _ncDescribeResourceResponse->is_valid_ncDescribeResourceResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncDescribeResourceResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_is_ncDescribeResourceResponse_nil( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponse, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponse->is_valid_ncDescribeResourceResponse; ++ } ++ ++ /** ++ * Set ncDescribeResourceResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_set_ncDescribeResourceResponse_nil( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponse_reset_ncDescribeResourceResponse(_ncDescribeResourceResponse, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncDescribeResourceResponse.h' +--- old/node/generated/adb_ncDescribeResourceResponse.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncDescribeResourceResponse.h 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCDESCRIBERESOURCERESPONSE_H ++ #define ADB_NCDESCRIBERESOURCERESPONSE_H ++ ++ /** ++ * adb_ncDescribeResourceResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncDescribeResourceResponse class ++ */ ++ typedef struct adb_ncDescribeResourceResponse adb_ncDescribeResourceResponse_t; ++ ++ ++ #include "adb_ncDescribeResourceResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncDescribeResourceResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncDescribeResourceResponse_t object ++ */ ++ adb_ncDescribeResourceResponse_t* AXIS2_CALL ++ adb_ncDescribeResourceResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncDescribeResourceResponse_t object ++ * @param _ncDescribeResourceResponse adb_ncDescribeResourceResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_free ( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncDescribeResourceResponse. ++ * @param _ncDescribeResourceResponse adb_ncDescribeResourceResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_ncDescribeResourceResponseType_t* ++ */ ++ adb_ncDescribeResourceResponseType_t* AXIS2_CALL ++ adb_ncDescribeResourceResponse_get_ncDescribeResourceResponse( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncDescribeResourceResponse. ++ * @param _ncDescribeResourceResponse adb_ncDescribeResourceResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_ncDescribeResourceResponse adb_ncDescribeResourceResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_set_ncDescribeResourceResponse( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env, ++ adb_ncDescribeResourceResponseType_t* arg_ncDescribeResourceResponse); ++ ++ /** ++ * Resetter for ncDescribeResourceResponse ++ * @param _ncDescribeResourceResponse adb_ncDescribeResourceResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_reset_ncDescribeResourceResponse( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncDescribeResourceResponse is nill ++ * @param _ncDescribeResourceResponse adb_ncDescribeResourceResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_is_ncDescribeResourceResponse_nil( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncDescribeResourceResponse to nill (currently the same as reset) ++ * @param _ncDescribeResourceResponse adb_ncDescribeResourceResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_set_ncDescribeResourceResponse_nil( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncDescribeResourceResponse adb_ncDescribeResourceResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_deserialize( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncDescribeResourceResponse adb_ncDescribeResourceResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncDescribeResourceResponse_declare_parent_namespaces( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncDescribeResourceResponse adb_ncDescribeResourceResponse_t object ++ * @param env pointer to environment struct ++ * @param ncDescribeResourceResponse_om_node node to serialize from ++ * @param ncDescribeResourceResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeResourceResponse_serialize( ++ adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, ++ const axutil_env_t *env, ++ axiom_node_t* ncDescribeResourceResponse_om_node, axiom_element_t *ncDescribeResourceResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncDescribeResourceResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCDESCRIBERESOURCERESPONSE_H */ ++ ++ + +=== added file 'node/generated/adb_ncDescribeResourceResponseType.c' +--- old/node/generated/adb_ncDescribeResourceResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncDescribeResourceResponseType.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,3635 @@ ++ ++ ++ /** ++ * adb_ncDescribeResourceResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncDescribeResourceResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncDescribeResourceResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncDescribeResourceResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_char_t* property_nodeStatus; ++ ++ ++ axis2_bool_t is_valid_nodeStatus; ++ ++ ++ int property_memorySizeMax; ++ ++ ++ axis2_bool_t is_valid_memorySizeMax; ++ ++ ++ int property_memorySizeAvailable; ++ ++ ++ axis2_bool_t is_valid_memorySizeAvailable; ++ ++ ++ int property_diskSizeMax; ++ ++ ++ axis2_bool_t is_valid_diskSizeMax; ++ ++ ++ int property_diskSizeAvailable; ++ ++ ++ axis2_bool_t is_valid_diskSizeAvailable; ++ ++ ++ int property_numberOfCoresMax; ++ ++ ++ axis2_bool_t is_valid_numberOfCoresMax; ++ ++ ++ int property_numberOfCoresAvailable; ++ ++ ++ axis2_bool_t is_valid_numberOfCoresAvailable; ++ ++ ++ axis2_char_t* property_publicSubnets; ++ ++ ++ axis2_bool_t is_valid_publicSubnets; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_correlationId_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_userId_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_return_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_nodeStatus_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_memorySizeMax_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_memorySizeAvailable_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_diskSizeMax_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_diskSizeAvailable_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_numberOfCoresMax_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_numberOfCoresAvailable_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_publicSubnets_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncDescribeResourceResponseType_t* AXIS2_CALL ++ adb_ncDescribeResourceResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncDescribeResourceResponseType_t *_ncDescribeResourceResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncDescribeResourceResponseType = (adb_ncDescribeResourceResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncDescribeResourceResponseType_t)); ++ ++ if(NULL == _ncDescribeResourceResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncDescribeResourceResponseType, 0, sizeof(adb_ncDescribeResourceResponseType_t)); ++ ++ _ncDescribeResourceResponseType->property_correlationId = NULL; ++ _ncDescribeResourceResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _ncDescribeResourceResponseType->property_userId = NULL; ++ _ncDescribeResourceResponseType->is_valid_userId = AXIS2_FALSE; ++ _ncDescribeResourceResponseType->is_valid_return = AXIS2_FALSE; ++ _ncDescribeResourceResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncDescribeResourceResponseType->property_nodeStatus = NULL; ++ _ncDescribeResourceResponseType->is_valid_nodeStatus = AXIS2_FALSE; ++ _ncDescribeResourceResponseType->is_valid_memorySizeMax = AXIS2_FALSE; ++ _ncDescribeResourceResponseType->is_valid_memorySizeAvailable = AXIS2_FALSE; ++ _ncDescribeResourceResponseType->is_valid_diskSizeMax = AXIS2_FALSE; ++ _ncDescribeResourceResponseType->is_valid_diskSizeAvailable = AXIS2_FALSE; ++ _ncDescribeResourceResponseType->is_valid_numberOfCoresMax = AXIS2_FALSE; ++ _ncDescribeResourceResponseType->is_valid_numberOfCoresAvailable = AXIS2_FALSE; ++ _ncDescribeResourceResponseType->property_publicSubnets = NULL; ++ _ncDescribeResourceResponseType->is_valid_publicSubnets = AXIS2_FALSE; ++ ++ ++ return _ncDescribeResourceResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_free ( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ adb_ncDescribeResourceResponseType_reset_correlationId(_ncDescribeResourceResponseType, env); ++ adb_ncDescribeResourceResponseType_reset_userId(_ncDescribeResourceResponseType, env); ++ adb_ncDescribeResourceResponseType_reset_return(_ncDescribeResourceResponseType, env); ++ adb_ncDescribeResourceResponseType_reset_statusMessage(_ncDescribeResourceResponseType, env); ++ adb_ncDescribeResourceResponseType_reset_nodeStatus(_ncDescribeResourceResponseType, env); ++ adb_ncDescribeResourceResponseType_reset_memorySizeMax(_ncDescribeResourceResponseType, env); ++ adb_ncDescribeResourceResponseType_reset_memorySizeAvailable(_ncDescribeResourceResponseType, env); ++ adb_ncDescribeResourceResponseType_reset_diskSizeMax(_ncDescribeResourceResponseType, env); ++ adb_ncDescribeResourceResponseType_reset_diskSizeAvailable(_ncDescribeResourceResponseType, env); ++ adb_ncDescribeResourceResponseType_reset_numberOfCoresMax(_ncDescribeResourceResponseType, env); ++ adb_ncDescribeResourceResponseType_reset_numberOfCoresAvailable(_ncDescribeResourceResponseType, env); ++ adb_ncDescribeResourceResponseType_reset_publicSubnets(_ncDescribeResourceResponseType, env); ++ ++ ++ if(_ncDescribeResourceResponseType) ++ { ++ AXIS2_FREE(env->allocator, _ncDescribeResourceResponseType); ++ _ncDescribeResourceResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_deserialize( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDescribeResourceResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceResponseType_set_correlationId(_ncDescribeResourceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDescribeResourceResponseType_set_correlationId(_ncDescribeResourceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceResponseType_set_userId(_ncDescribeResourceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDescribeResourceResponseType_set_userId(_ncDescribeResourceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncDescribeResourceResponseType_set_return(_ncDescribeResourceResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncDescribeResourceResponseType_set_return(_ncDescribeResourceResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceResponseType_set_statusMessage(_ncDescribeResourceResponseType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building nodeStatus element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "nodeStatus", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceResponseType_set_nodeStatus(_ncDescribeResourceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element nodeStatus"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDescribeResourceResponseType_set_nodeStatus(_ncDescribeResourceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for nodeStatus "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element nodeStatus missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building memorySizeMax element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "memorySizeMax", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceResponseType_set_memorySizeMax(_ncDescribeResourceResponseType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element memorySizeMax"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for memorySizeMax "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element memorySizeMax missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building memorySizeAvailable element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "memorySizeAvailable", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceResponseType_set_memorySizeAvailable(_ncDescribeResourceResponseType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element memorySizeAvailable"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for memorySizeAvailable "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element memorySizeAvailable missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building diskSizeMax element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "diskSizeMax", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceResponseType_set_diskSizeMax(_ncDescribeResourceResponseType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element diskSizeMax"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for diskSizeMax "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element diskSizeMax missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building diskSizeAvailable element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "diskSizeAvailable", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceResponseType_set_diskSizeAvailable(_ncDescribeResourceResponseType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element diskSizeAvailable"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for diskSizeAvailable "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element diskSizeAvailable missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building numberOfCoresMax element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "numberOfCoresMax", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceResponseType_set_numberOfCoresMax(_ncDescribeResourceResponseType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element numberOfCoresMax"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for numberOfCoresMax "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element numberOfCoresMax missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building numberOfCoresAvailable element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "numberOfCoresAvailable", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceResponseType_set_numberOfCoresAvailable(_ncDescribeResourceResponseType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element numberOfCoresAvailable"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for numberOfCoresAvailable "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element numberOfCoresAvailable missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building publicSubnets element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "publicSubnets", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceResponseType_set_publicSubnets(_ncDescribeResourceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element publicSubnets"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDescribeResourceResponseType_set_publicSubnets(_ncDescribeResourceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for publicSubnets "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element publicSubnets missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncDescribeResourceResponseType_declare_parent_namespaces( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeResourceResponseType_serialize( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t text_value_6[64]; ++ ++ axis2_char_t text_value_7[64]; ++ ++ axis2_char_t text_value_8[64]; ++ ++ axis2_char_t text_value_9[64]; ++ ++ axis2_char_t text_value_10[64]; ++ ++ axis2_char_t text_value_11[64]; ++ ++ axis2_char_t *text_value_12; ++ axis2_char_t *text_value_12_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncDescribeResourceResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncDescribeResourceResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncDescribeResourceResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDescribeResourceResponseType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponseType->is_valid_nodeStatus) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property nodeStatus"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("nodeStatus"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("nodeStatus"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing nodeStatus element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%snodeStatus>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _ncDescribeResourceResponseType->property_nodeStatus; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponseType->is_valid_memorySizeMax) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property memorySizeMax"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("memorySizeMax"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("memorySizeMax"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing memorySizeMax element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%smemorySizeMax>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_6, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDescribeResourceResponseType->property_memorySizeMax); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponseType->is_valid_memorySizeAvailable) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property memorySizeAvailable"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("memorySizeAvailable"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("memorySizeAvailable"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing memorySizeAvailable element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%smemorySizeAvailable>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_7, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDescribeResourceResponseType->property_memorySizeAvailable); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponseType->is_valid_diskSizeMax) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property diskSizeMax"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("diskSizeMax"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("diskSizeMax"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing diskSizeMax element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sdiskSizeMax>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_8, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDescribeResourceResponseType->property_diskSizeMax); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponseType->is_valid_diskSizeAvailable) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property diskSizeAvailable"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("diskSizeAvailable"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("diskSizeAvailable"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing diskSizeAvailable element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sdiskSizeAvailable>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_9, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDescribeResourceResponseType->property_diskSizeAvailable); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_9, axutil_strlen(text_value_9)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponseType->is_valid_numberOfCoresMax) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property numberOfCoresMax"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("numberOfCoresMax"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("numberOfCoresMax"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing numberOfCoresMax element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%snumberOfCoresMax>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_10, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDescribeResourceResponseType->property_numberOfCoresMax); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_10, axutil_strlen(text_value_10)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponseType->is_valid_numberOfCoresAvailable) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property numberOfCoresAvailable"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("numberOfCoresAvailable"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("numberOfCoresAvailable"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing numberOfCoresAvailable element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%snumberOfCoresAvailable>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_11, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDescribeResourceResponseType->property_numberOfCoresAvailable); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_11, axutil_strlen(text_value_11)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceResponseType->is_valid_publicSubnets) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property publicSubnets"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("publicSubnets"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("publicSubnets"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing publicSubnets element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%spublicSubnets>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_12 = _ncDescribeResourceResponseType->property_publicSubnets; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_12_temp = axutil_xml_quote_string(env, text_value_12, AXIS2_TRUE); ++ if (text_value_12_temp) ++ { ++ axutil_stream_write(stream, env, text_value_12_temp, axutil_strlen(text_value_12_temp)); ++ AXIS2_FREE(env->allocator, text_value_12_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_12, axutil_strlen(text_value_12)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_correlationId( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, NULL); ++ ++ ++ return _ncDescribeResourceResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_correlationId( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponseType->is_valid_correlationId && ++ arg_correlationId == _ncDescribeResourceResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceResponseType_reset_correlationId(_ncDescribeResourceResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeResourceResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncDescribeResourceResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDescribeResourceResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_correlationId( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeResourceResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDescribeResourceResponseType->property_correlationId); ++ _ncDescribeResourceResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncDescribeResourceResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_correlationId_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_correlationId_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponseType_reset_correlationId(_ncDescribeResourceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_userId( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, NULL); ++ ++ ++ return _ncDescribeResourceResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_userId( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponseType->is_valid_userId && ++ arg_userId == _ncDescribeResourceResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceResponseType_reset_userId(_ncDescribeResourceResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeResourceResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncDescribeResourceResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDescribeResourceResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_userId( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeResourceResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDescribeResourceResponseType->property_userId); ++ _ncDescribeResourceResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncDescribeResourceResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_userId_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_userId_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponseType_reset_userId(_ncDescribeResourceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_return( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, (axis2_bool_t)0); ++ ++ ++ return _ncDescribeResourceResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_return( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponseType->is_valid_return && ++ arg_return == _ncDescribeResourceResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceResponseType_reset_return(_ncDescribeResourceResponseType, env); ++ ++ _ncDescribeResourceResponseType->property_return = arg_return; ++ _ncDescribeResourceResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_return( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeResourceResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_return_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_return_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponseType_reset_return(_ncDescribeResourceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_statusMessage( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, (int)0); ++ ++ ++ return _ncDescribeResourceResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_statusMessage( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponseType->is_valid_statusMessage && ++ arg_statusMessage == _ncDescribeResourceResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceResponseType_reset_statusMessage(_ncDescribeResourceResponseType, env); ++ ++ _ncDescribeResourceResponseType->property_statusMessage = arg_statusMessage; ++ _ncDescribeResourceResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_statusMessage( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeResourceResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_statusMessage_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_statusMessage_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponseType_reset_statusMessage(_ncDescribeResourceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for nodeStatus. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_nodeStatus( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, NULL); ++ ++ ++ return _ncDescribeResourceResponseType->property_nodeStatus; ++ } ++ ++ /** ++ * setter for nodeStatus ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_nodeStatus( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_nodeStatus) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponseType->is_valid_nodeStatus && ++ arg_nodeStatus == _ncDescribeResourceResponseType->property_nodeStatus) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_nodeStatus) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "nodeStatus is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncDescribeResourceResponseType_reset_nodeStatus(_ncDescribeResourceResponseType, env); ++ ++ ++ if(NULL == arg_nodeStatus) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeResourceResponseType->property_nodeStatus = (axis2_char_t *)axutil_strdup(env, arg_nodeStatus); ++ if(NULL == _ncDescribeResourceResponseType->property_nodeStatus) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for nodeStatus"); ++ return AXIS2_FAILURE; ++ } ++ _ncDescribeResourceResponseType->is_valid_nodeStatus = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for nodeStatus ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_nodeStatus( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeResourceResponseType->property_nodeStatus != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDescribeResourceResponseType->property_nodeStatus); ++ _ncDescribeResourceResponseType->property_nodeStatus = NULL; ++ } ++ ++ ++ ++ _ncDescribeResourceResponseType->is_valid_nodeStatus = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether nodeStatus is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_nodeStatus_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponseType->is_valid_nodeStatus; ++ } ++ ++ /** ++ * Set nodeStatus to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_nodeStatus_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponseType_reset_nodeStatus(_ncDescribeResourceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for memorySizeMax. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_memorySizeMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, (int)0); ++ ++ ++ return _ncDescribeResourceResponseType->property_memorySizeMax; ++ } ++ ++ /** ++ * setter for memorySizeMax ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_memorySizeMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_memorySizeMax) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponseType->is_valid_memorySizeMax && ++ arg_memorySizeMax == _ncDescribeResourceResponseType->property_memorySizeMax) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceResponseType_reset_memorySizeMax(_ncDescribeResourceResponseType, env); ++ ++ _ncDescribeResourceResponseType->property_memorySizeMax = arg_memorySizeMax; ++ _ncDescribeResourceResponseType->is_valid_memorySizeMax = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for memorySizeMax ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_memorySizeMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeResourceResponseType->is_valid_memorySizeMax = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether memorySizeMax is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_memorySizeMax_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponseType->is_valid_memorySizeMax; ++ } ++ ++ /** ++ * Set memorySizeMax to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_memorySizeMax_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponseType_reset_memorySizeMax(_ncDescribeResourceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for memorySizeAvailable. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_memorySizeAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, (int)0); ++ ++ ++ return _ncDescribeResourceResponseType->property_memorySizeAvailable; ++ } ++ ++ /** ++ * setter for memorySizeAvailable ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_memorySizeAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_memorySizeAvailable) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponseType->is_valid_memorySizeAvailable && ++ arg_memorySizeAvailable == _ncDescribeResourceResponseType->property_memorySizeAvailable) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceResponseType_reset_memorySizeAvailable(_ncDescribeResourceResponseType, env); ++ ++ _ncDescribeResourceResponseType->property_memorySizeAvailable = arg_memorySizeAvailable; ++ _ncDescribeResourceResponseType->is_valid_memorySizeAvailable = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for memorySizeAvailable ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_memorySizeAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeResourceResponseType->is_valid_memorySizeAvailable = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether memorySizeAvailable is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_memorySizeAvailable_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponseType->is_valid_memorySizeAvailable; ++ } ++ ++ /** ++ * Set memorySizeAvailable to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_memorySizeAvailable_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponseType_reset_memorySizeAvailable(_ncDescribeResourceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for diskSizeMax. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_diskSizeMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, (int)0); ++ ++ ++ return _ncDescribeResourceResponseType->property_diskSizeMax; ++ } ++ ++ /** ++ * setter for diskSizeMax ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_diskSizeMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_diskSizeMax) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponseType->is_valid_diskSizeMax && ++ arg_diskSizeMax == _ncDescribeResourceResponseType->property_diskSizeMax) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceResponseType_reset_diskSizeMax(_ncDescribeResourceResponseType, env); ++ ++ _ncDescribeResourceResponseType->property_diskSizeMax = arg_diskSizeMax; ++ _ncDescribeResourceResponseType->is_valid_diskSizeMax = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for diskSizeMax ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_diskSizeMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeResourceResponseType->is_valid_diskSizeMax = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether diskSizeMax is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_diskSizeMax_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponseType->is_valid_diskSizeMax; ++ } ++ ++ /** ++ * Set diskSizeMax to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_diskSizeMax_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponseType_reset_diskSizeMax(_ncDescribeResourceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for diskSizeAvailable. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_diskSizeAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, (int)0); ++ ++ ++ return _ncDescribeResourceResponseType->property_diskSizeAvailable; ++ } ++ ++ /** ++ * setter for diskSizeAvailable ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_diskSizeAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_diskSizeAvailable) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponseType->is_valid_diskSizeAvailable && ++ arg_diskSizeAvailable == _ncDescribeResourceResponseType->property_diskSizeAvailable) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceResponseType_reset_diskSizeAvailable(_ncDescribeResourceResponseType, env); ++ ++ _ncDescribeResourceResponseType->property_diskSizeAvailable = arg_diskSizeAvailable; ++ _ncDescribeResourceResponseType->is_valid_diskSizeAvailable = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for diskSizeAvailable ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_diskSizeAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeResourceResponseType->is_valid_diskSizeAvailable = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether diskSizeAvailable is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_diskSizeAvailable_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponseType->is_valid_diskSizeAvailable; ++ } ++ ++ /** ++ * Set diskSizeAvailable to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_diskSizeAvailable_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponseType_reset_diskSizeAvailable(_ncDescribeResourceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for numberOfCoresMax. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_numberOfCoresMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, (int)0); ++ ++ ++ return _ncDescribeResourceResponseType->property_numberOfCoresMax; ++ } ++ ++ /** ++ * setter for numberOfCoresMax ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_numberOfCoresMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_numberOfCoresMax) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponseType->is_valid_numberOfCoresMax && ++ arg_numberOfCoresMax == _ncDescribeResourceResponseType->property_numberOfCoresMax) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceResponseType_reset_numberOfCoresMax(_ncDescribeResourceResponseType, env); ++ ++ _ncDescribeResourceResponseType->property_numberOfCoresMax = arg_numberOfCoresMax; ++ _ncDescribeResourceResponseType->is_valid_numberOfCoresMax = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for numberOfCoresMax ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_numberOfCoresMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeResourceResponseType->is_valid_numberOfCoresMax = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether numberOfCoresMax is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_numberOfCoresMax_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponseType->is_valid_numberOfCoresMax; ++ } ++ ++ /** ++ * Set numberOfCoresMax to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_numberOfCoresMax_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponseType_reset_numberOfCoresMax(_ncDescribeResourceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for numberOfCoresAvailable. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_numberOfCoresAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, (int)0); ++ ++ ++ return _ncDescribeResourceResponseType->property_numberOfCoresAvailable; ++ } ++ ++ /** ++ * setter for numberOfCoresAvailable ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_numberOfCoresAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_numberOfCoresAvailable) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponseType->is_valid_numberOfCoresAvailable && ++ arg_numberOfCoresAvailable == _ncDescribeResourceResponseType->property_numberOfCoresAvailable) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceResponseType_reset_numberOfCoresAvailable(_ncDescribeResourceResponseType, env); ++ ++ _ncDescribeResourceResponseType->property_numberOfCoresAvailable = arg_numberOfCoresAvailable; ++ _ncDescribeResourceResponseType->is_valid_numberOfCoresAvailable = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for numberOfCoresAvailable ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_numberOfCoresAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeResourceResponseType->is_valid_numberOfCoresAvailable = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether numberOfCoresAvailable is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_numberOfCoresAvailable_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponseType->is_valid_numberOfCoresAvailable; ++ } ++ ++ /** ++ * Set numberOfCoresAvailable to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_numberOfCoresAvailable_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponseType_reset_numberOfCoresAvailable(_ncDescribeResourceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for publicSubnets. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_publicSubnets( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, NULL); ++ ++ ++ return _ncDescribeResourceResponseType->property_publicSubnets; ++ } ++ ++ /** ++ * setter for publicSubnets ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_publicSubnets( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_publicSubnets) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceResponseType->is_valid_publicSubnets && ++ arg_publicSubnets == _ncDescribeResourceResponseType->property_publicSubnets) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_publicSubnets) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "publicSubnets is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncDescribeResourceResponseType_reset_publicSubnets(_ncDescribeResourceResponseType, env); ++ ++ ++ if(NULL == arg_publicSubnets) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeResourceResponseType->property_publicSubnets = (axis2_char_t *)axutil_strdup(env, arg_publicSubnets); ++ if(NULL == _ncDescribeResourceResponseType->property_publicSubnets) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for publicSubnets"); ++ return AXIS2_FAILURE; ++ } ++ _ncDescribeResourceResponseType->is_valid_publicSubnets = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for publicSubnets ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_publicSubnets( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeResourceResponseType->property_publicSubnets != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDescribeResourceResponseType->property_publicSubnets); ++ _ncDescribeResourceResponseType->property_publicSubnets = NULL; ++ } ++ ++ ++ ++ _ncDescribeResourceResponseType->is_valid_publicSubnets = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether publicSubnets is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_publicSubnets_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceResponseType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceResponseType->is_valid_publicSubnets; ++ } ++ ++ /** ++ * Set publicSubnets to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_publicSubnets_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceResponseType_reset_publicSubnets(_ncDescribeResourceResponseType, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncDescribeResourceResponseType.h' +--- old/node/generated/adb_ncDescribeResourceResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncDescribeResourceResponseType.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,778 @@ ++ ++ ++ #ifndef ADB_NCDESCRIBERESOURCERESPONSETYPE_H ++ #define ADB_NCDESCRIBERESOURCERESPONSETYPE_H ++ ++ /** ++ * adb_ncDescribeResourceResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncDescribeResourceResponseType class ++ */ ++ typedef struct adb_ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncDescribeResourceResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncDescribeResourceResponseType_t object ++ */ ++ adb_ncDescribeResourceResponseType_t* AXIS2_CALL ++ adb_ncDescribeResourceResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncDescribeResourceResponseType_t object ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_free ( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_correlationId( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_correlationId( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_correlationId( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_userId( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_userId( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_userId( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_return( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_return( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_return( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_statusMessage( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_statusMessage( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_statusMessage( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for nodeStatus. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_nodeStatus( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for nodeStatus. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_nodeStatus axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_nodeStatus( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_nodeStatus); ++ ++ /** ++ * Resetter for nodeStatus ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_nodeStatus( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for memorySizeMax. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_memorySizeMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for memorySizeMax. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_memorySizeMax int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_memorySizeMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_memorySizeMax); ++ ++ /** ++ * Resetter for memorySizeMax ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_memorySizeMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for memorySizeAvailable. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_memorySizeAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for memorySizeAvailable. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_memorySizeAvailable int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_memorySizeAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_memorySizeAvailable); ++ ++ /** ++ * Resetter for memorySizeAvailable ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_memorySizeAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for diskSizeMax. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_diskSizeMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for diskSizeMax. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_diskSizeMax int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_diskSizeMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_diskSizeMax); ++ ++ /** ++ * Resetter for diskSizeMax ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_diskSizeMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for diskSizeAvailable. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_diskSizeAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for diskSizeAvailable. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_diskSizeAvailable int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_diskSizeAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_diskSizeAvailable); ++ ++ /** ++ * Resetter for diskSizeAvailable ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_diskSizeAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for numberOfCoresMax. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_numberOfCoresMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for numberOfCoresMax. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_numberOfCoresMax int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_numberOfCoresMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_numberOfCoresMax); ++ ++ /** ++ * Resetter for numberOfCoresMax ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_numberOfCoresMax( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for numberOfCoresAvailable. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_numberOfCoresAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for numberOfCoresAvailable. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_numberOfCoresAvailable int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_numberOfCoresAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const int arg_numberOfCoresAvailable); ++ ++ /** ++ * Resetter for numberOfCoresAvailable ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_numberOfCoresAvailable( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for publicSubnets. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceResponseType_get_publicSubnets( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for publicSubnets. ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_publicSubnets axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_publicSubnets( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_publicSubnets); ++ ++ /** ++ * Resetter for publicSubnets ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_reset_publicSubnets( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_correlationId_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_userId_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_return_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_statusMessage_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_set_statusMessage_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether nodeStatus is nill ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_nodeStatus_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether memorySizeMax is nill ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_memorySizeMax_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether memorySizeAvailable is nill ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_memorySizeAvailable_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether diskSizeMax is nill ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_diskSizeMax_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether diskSizeAvailable is nill ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_diskSizeAvailable_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether numberOfCoresMax is nill ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_numberOfCoresMax_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether numberOfCoresAvailable is nill ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_numberOfCoresAvailable_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether publicSubnets is nill ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_publicSubnets_nil( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_deserialize( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncDescribeResourceResponseType_declare_parent_namespaces( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncDescribeResourceResponseType adb_ncDescribeResourceResponseType_t object ++ * @param env pointer to environment struct ++ * @param ncDescribeResourceResponseType_om_node node to serialize from ++ * @param ncDescribeResourceResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeResourceResponseType_serialize( ++ adb_ncDescribeResourceResponseType_t* _ncDescribeResourceResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* ncDescribeResourceResponseType_om_node, axiom_element_t *ncDescribeResourceResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncDescribeResourceResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCDESCRIBERESOURCERESPONSETYPE_H */ ++ ++ + +=== added file 'node/generated/adb_ncDescribeResourceType.c' +--- old/node/generated/adb_ncDescribeResourceType.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncDescribeResourceType.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,1702 @@ ++ ++ ++ /** ++ * adb_ncDescribeResourceType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncDescribeResourceType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncDescribeResourceType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncDescribeResourceType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_char_t* property_resourceType; ++ ++ ++ axis2_bool_t is_valid_resourceType; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_correlationId_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_userId_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_return_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_resourceType_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncDescribeResourceType_t* AXIS2_CALL ++ adb_ncDescribeResourceType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncDescribeResourceType_t *_ncDescribeResourceType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncDescribeResourceType = (adb_ncDescribeResourceType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncDescribeResourceType_t)); ++ ++ if(NULL == _ncDescribeResourceType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncDescribeResourceType, 0, sizeof(adb_ncDescribeResourceType_t)); ++ ++ _ncDescribeResourceType->property_correlationId = NULL; ++ _ncDescribeResourceType->is_valid_correlationId = AXIS2_FALSE; ++ _ncDescribeResourceType->property_userId = NULL; ++ _ncDescribeResourceType->is_valid_userId = AXIS2_FALSE; ++ _ncDescribeResourceType->is_valid_return = AXIS2_FALSE; ++ _ncDescribeResourceType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncDescribeResourceType->property_resourceType = NULL; ++ _ncDescribeResourceType->is_valid_resourceType = AXIS2_FALSE; ++ ++ ++ return _ncDescribeResourceType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_free ( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_FAILURE); ++ ++ adb_ncDescribeResourceType_reset_correlationId(_ncDescribeResourceType, env); ++ adb_ncDescribeResourceType_reset_userId(_ncDescribeResourceType, env); ++ adb_ncDescribeResourceType_reset_return(_ncDescribeResourceType, env); ++ adb_ncDescribeResourceType_reset_statusMessage(_ncDescribeResourceType, env); ++ adb_ncDescribeResourceType_reset_resourceType(_ncDescribeResourceType, env); ++ ++ ++ if(_ncDescribeResourceType) ++ { ++ AXIS2_FREE(env->allocator, _ncDescribeResourceType); ++ _ncDescribeResourceType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_deserialize( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDescribeResourceType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceType_set_correlationId(_ncDescribeResourceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDescribeResourceType_set_correlationId(_ncDescribeResourceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceType_set_userId(_ncDescribeResourceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDescribeResourceType_set_userId(_ncDescribeResourceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncDescribeResourceType_set_return(_ncDescribeResourceType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncDescribeResourceType_set_return(_ncDescribeResourceType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceType_set_statusMessage(_ncDescribeResourceType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building resourceType element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "resourceType", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDescribeResourceType_set_resourceType(_ncDescribeResourceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element resourceType"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDescribeResourceType_set_resourceType(_ncDescribeResourceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for resourceType "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncDescribeResourceType_declare_parent_namespaces( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeResourceType_serialize( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncDescribeResourceType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncDescribeResourceType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncDescribeResourceType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDescribeResourceType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDescribeResourceType->is_valid_resourceType) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("resourceType"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("resourceType"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing resourceType element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sresourceType>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _ncDescribeResourceType->property_resourceType; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceType_get_correlationId( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, NULL); ++ ++ ++ return _ncDescribeResourceType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_correlationId( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceType->is_valid_correlationId && ++ arg_correlationId == _ncDescribeResourceType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceType_reset_correlationId(_ncDescribeResourceType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeResourceType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncDescribeResourceType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDescribeResourceType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_reset_correlationId( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeResourceType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDescribeResourceType->property_correlationId); ++ _ncDescribeResourceType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncDescribeResourceType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_is_correlationId_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_correlationId_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceType_reset_correlationId(_ncDescribeResourceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceType_get_userId( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, NULL); ++ ++ ++ return _ncDescribeResourceType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_userId( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceType->is_valid_userId && ++ arg_userId == _ncDescribeResourceType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceType_reset_userId(_ncDescribeResourceType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeResourceType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncDescribeResourceType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDescribeResourceType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_reset_userId( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeResourceType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDescribeResourceType->property_userId); ++ _ncDescribeResourceType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncDescribeResourceType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_is_userId_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_userId_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceType_reset_userId(_ncDescribeResourceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_get_return( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, (axis2_bool_t)0); ++ ++ ++ return _ncDescribeResourceType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_return( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceType->is_valid_return && ++ arg_return == _ncDescribeResourceType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceType_reset_return(_ncDescribeResourceType, env); ++ ++ _ncDescribeResourceType->property_return = arg_return; ++ _ncDescribeResourceType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_reset_return( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeResourceType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_is_return_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_return_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceType_reset_return(_ncDescribeResourceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceType_get_statusMessage( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, (int)0); ++ ++ ++ return _ncDescribeResourceType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_statusMessage( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceType->is_valid_statusMessage && ++ arg_statusMessage == _ncDescribeResourceType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceType_reset_statusMessage(_ncDescribeResourceType, env); ++ ++ _ncDescribeResourceType->property_statusMessage = arg_statusMessage; ++ _ncDescribeResourceType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_reset_statusMessage( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_FAILURE); ++ ++ ++ _ncDescribeResourceType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_is_statusMessage_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_statusMessage_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceType_reset_statusMessage(_ncDescribeResourceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for resourceType. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceType_get_resourceType( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, NULL); ++ ++ ++ return _ncDescribeResourceType->property_resourceType; ++ } ++ ++ /** ++ * setter for resourceType ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_resourceType( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_resourceType) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_FAILURE); ++ ++ if(_ncDescribeResourceType->is_valid_resourceType && ++ arg_resourceType == _ncDescribeResourceType->property_resourceType) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDescribeResourceType_reset_resourceType(_ncDescribeResourceType, env); ++ ++ ++ if(NULL == arg_resourceType) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDescribeResourceType->property_resourceType = (axis2_char_t *)axutil_strdup(env, arg_resourceType); ++ if(NULL == _ncDescribeResourceType->property_resourceType) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for resourceType"); ++ return AXIS2_FAILURE; ++ } ++ _ncDescribeResourceType->is_valid_resourceType = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for resourceType ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_reset_resourceType( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDescribeResourceType->property_resourceType != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDescribeResourceType->property_resourceType); ++ _ncDescribeResourceType->property_resourceType = NULL; ++ } ++ ++ ++ ++ _ncDescribeResourceType->is_valid_resourceType = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether resourceType is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_is_resourceType_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDescribeResourceType, AXIS2_TRUE); ++ ++ return !_ncDescribeResourceType->is_valid_resourceType; ++ } ++ ++ /** ++ * Set resourceType to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_resourceType_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDescribeResourceType_reset_resourceType(_ncDescribeResourceType, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncDescribeResourceType.h' +--- old/node/generated/adb_ncDescribeResourceType.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncDescribeResourceType.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,414 @@ ++ ++ ++ #ifndef ADB_NCDESCRIBERESOURCETYPE_H ++ #define ADB_NCDESCRIBERESOURCETYPE_H ++ ++ /** ++ * adb_ncDescribeResourceType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncDescribeResourceType class ++ */ ++ typedef struct adb_ncDescribeResourceType adb_ncDescribeResourceType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncDescribeResourceType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncDescribeResourceType_t object ++ */ ++ adb_ncDescribeResourceType_t* AXIS2_CALL ++ adb_ncDescribeResourceType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncDescribeResourceType_t object ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_free ( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceType_get_correlationId( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_correlationId( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_reset_correlationId( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceType_get_userId( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_userId( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_reset_userId( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_get_return( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_return( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_reset_return( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncDescribeResourceType_get_statusMessage( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_statusMessage( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_reset_statusMessage( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for resourceType. ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDescribeResourceType_get_resourceType( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for resourceType. ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @param arg_resourceType axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_resourceType( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_resourceType); ++ ++ /** ++ * Resetter for resourceType ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_reset_resourceType( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_is_correlationId_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_is_userId_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_is_return_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_is_statusMessage_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_set_statusMessage_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether resourceType is nill ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_is_resourceType_nil( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDescribeResourceType_deserialize( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncDescribeResourceType_declare_parent_namespaces( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncDescribeResourceType adb_ncDescribeResourceType_t object ++ * @param env pointer to environment struct ++ * @param ncDescribeResourceType_om_node node to serialize from ++ * @param ncDescribeResourceType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDescribeResourceType_serialize( ++ adb_ncDescribeResourceType_t* _ncDescribeResourceType, ++ const axutil_env_t *env, ++ axiom_node_t* ncDescribeResourceType_om_node, axiom_element_t *ncDescribeResourceType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncDescribeResourceType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDescribeResourceType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCDESCRIBERESOURCETYPE_H */ ++ ++ + +=== added file 'node/generated/adb_ncDetachVolume.c' +--- old/node/generated/adb_ncDetachVolume.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncDetachVolume.c 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncDetachVolume.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncDetachVolume.h" ++ ++ /* ++ * implmentation of the ncDetachVolume|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncDetachVolume ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncDetachVolumeType_t* property_ncDetachVolume; ++ ++ ++ axis2_bool_t is_valid_ncDetachVolume; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncDetachVolume_t* AXIS2_CALL ++ adb_ncDetachVolume_create( ++ const axutil_env_t *env) ++ { ++ adb_ncDetachVolume_t *_ncDetachVolume = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncDetachVolume = (adb_ncDetachVolume_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncDetachVolume_t)); ++ ++ if(NULL == _ncDetachVolume) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncDetachVolume, 0, sizeof(adb_ncDetachVolume_t)); ++ ++ _ncDetachVolume->property_ncDetachVolume = NULL; ++ _ncDetachVolume->is_valid_ncDetachVolume = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncDetachVolume", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncDetachVolume->qname = qname; ++ ++ ++ return _ncDetachVolume; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolume_free ( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolume, AXIS2_FAILURE); ++ ++ adb_ncDetachVolume_reset_ncDetachVolume(_ncDetachVolume, env); ++ ++ if(_ncDetachVolume->qname) ++ { ++ axutil_qname_free (_ncDetachVolume->qname, env); ++ _ncDetachVolume->qname = NULL; ++ } ++ ++ ++ if(_ncDetachVolume) ++ { ++ AXIS2_FREE(env->allocator, _ncDetachVolume); ++ _ncDetachVolume = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolume_deserialize( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolume, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDetachVolume : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncDetachVolume-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDetachVolume : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncDetachVolume-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncDetachVolume element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncDetachVolume", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncDetachVolumeType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncDetachVolumeType_create(env); ++ ++ status = adb_ncDetachVolumeType_deserialize((adb_ncDetachVolumeType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncDetachVolume"); ++ } ++ else ++ { ++ status = adb_ncDetachVolume_set_ncDetachVolume(_ncDetachVolume, env, ++ (adb_ncDetachVolumeType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncDetachVolume "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncDetachVolume missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolume_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncDetachVolume_declare_parent_namespaces( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDetachVolume_serialize( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolume, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncDetachVolume", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolume->is_valid_ncDetachVolume) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncDetachVolume") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncDetachVolume xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncDetachVolume"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncDetachVolume"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncDetachVolume element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncDetachVolume", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncDetachVolumeType_serialize(_ncDetachVolume->property_ncDetachVolume, ++ env, current_node, parent_element, ++ adb_ncDetachVolumeType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncDetachVolume. ++ */ ++ adb_ncDetachVolumeType_t* AXIS2_CALL ++ adb_ncDetachVolume_get_ncDetachVolume( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolume, NULL); ++ ++ ++ return _ncDetachVolume->property_ncDetachVolume; ++ } ++ ++ /** ++ * setter for ncDetachVolume ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolume_set_ncDetachVolume( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env, ++ adb_ncDetachVolumeType_t* arg_ncDetachVolume) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolume, AXIS2_FAILURE); ++ ++ if(_ncDetachVolume->is_valid_ncDetachVolume && ++ arg_ncDetachVolume == _ncDetachVolume->property_ncDetachVolume) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolume_reset_ncDetachVolume(_ncDetachVolume, env); ++ ++ ++ if(NULL == arg_ncDetachVolume) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDetachVolume->property_ncDetachVolume = arg_ncDetachVolume; ++ _ncDetachVolume->is_valid_ncDetachVolume = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncDetachVolume ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolume_reset_ncDetachVolume( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolume, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDetachVolume->property_ncDetachVolume != NULL) ++ { ++ ++ ++ adb_ncDetachVolumeType_free(_ncDetachVolume->property_ncDetachVolume, env); ++ _ncDetachVolume->property_ncDetachVolume = NULL; ++ } ++ ++ ++ ++ _ncDetachVolume->is_valid_ncDetachVolume = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncDetachVolume is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolume_is_ncDetachVolume_nil( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolume, AXIS2_TRUE); ++ ++ return !_ncDetachVolume->is_valid_ncDetachVolume; ++ } ++ ++ /** ++ * Set ncDetachVolume to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolume_set_ncDetachVolume_nil( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolume_reset_ncDetachVolume(_ncDetachVolume, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncDetachVolume.h' +--- old/node/generated/adb_ncDetachVolume.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncDetachVolume.h 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCDETACHVOLUME_H ++ #define ADB_NCDETACHVOLUME_H ++ ++ /** ++ * adb_ncDetachVolume.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncDetachVolume class ++ */ ++ typedef struct adb_ncDetachVolume adb_ncDetachVolume_t; ++ ++ ++ #include "adb_ncDetachVolumeType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncDetachVolume_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncDetachVolume_t object ++ */ ++ adb_ncDetachVolume_t* AXIS2_CALL ++ adb_ncDetachVolume_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncDetachVolume_t object ++ * @param _ncDetachVolume adb_ncDetachVolume_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolume_free ( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncDetachVolume. ++ * @param _ncDetachVolume adb_ncDetachVolume_t object ++ * @param env pointer to environment struct ++ * @return adb_ncDetachVolumeType_t* ++ */ ++ adb_ncDetachVolumeType_t* AXIS2_CALL ++ adb_ncDetachVolume_get_ncDetachVolume( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncDetachVolume. ++ * @param _ncDetachVolume adb_ncDetachVolume_t object ++ * @param env pointer to environment struct ++ * @param arg_ncDetachVolume adb_ncDetachVolumeType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolume_set_ncDetachVolume( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env, ++ adb_ncDetachVolumeType_t* arg_ncDetachVolume); ++ ++ /** ++ * Resetter for ncDetachVolume ++ * @param _ncDetachVolume adb_ncDetachVolume_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolume_reset_ncDetachVolume( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncDetachVolume is nill ++ * @param _ncDetachVolume adb_ncDetachVolume_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolume_is_ncDetachVolume_nil( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncDetachVolume to nill (currently the same as reset) ++ * @param _ncDetachVolume adb_ncDetachVolume_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolume_set_ncDetachVolume_nil( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncDetachVolume adb_ncDetachVolume_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolume_deserialize( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncDetachVolume adb_ncDetachVolume_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncDetachVolume_declare_parent_namespaces( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncDetachVolume adb_ncDetachVolume_t object ++ * @param env pointer to environment struct ++ * @param ncDetachVolume_om_node node to serialize from ++ * @param ncDetachVolume_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDetachVolume_serialize( ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ const axutil_env_t *env, ++ axiom_node_t* ncDetachVolume_om_node, axiom_element_t *ncDetachVolume_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncDetachVolume is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolume_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCDETACHVOLUME_H */ ++ ++ + +=== added file 'node/generated/adb_ncDetachVolumeResponse.c' +--- old/node/generated/adb_ncDetachVolumeResponse.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncDetachVolumeResponse.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncDetachVolumeResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncDetachVolumeResponse.h" ++ ++ /* ++ * implmentation of the ncDetachVolumeResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncDetachVolumeResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncDetachVolumeResponseType_t* property_ncDetachVolumeResponse; ++ ++ ++ axis2_bool_t is_valid_ncDetachVolumeResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncDetachVolumeResponse_t* AXIS2_CALL ++ adb_ncDetachVolumeResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_ncDetachVolumeResponse_t *_ncDetachVolumeResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncDetachVolumeResponse = (adb_ncDetachVolumeResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncDetachVolumeResponse_t)); ++ ++ if(NULL == _ncDetachVolumeResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncDetachVolumeResponse, 0, sizeof(adb_ncDetachVolumeResponse_t)); ++ ++ _ncDetachVolumeResponse->property_ncDetachVolumeResponse = NULL; ++ _ncDetachVolumeResponse->is_valid_ncDetachVolumeResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncDetachVolumeResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncDetachVolumeResponse->qname = qname; ++ ++ ++ return _ncDetachVolumeResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_free ( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponse, AXIS2_FAILURE); ++ ++ adb_ncDetachVolumeResponse_reset_ncDetachVolumeResponse(_ncDetachVolumeResponse, env); ++ ++ if(_ncDetachVolumeResponse->qname) ++ { ++ axutil_qname_free (_ncDetachVolumeResponse->qname, env); ++ _ncDetachVolumeResponse->qname = NULL; ++ } ++ ++ ++ if(_ncDetachVolumeResponse) ++ { ++ AXIS2_FREE(env->allocator, _ncDetachVolumeResponse); ++ _ncDetachVolumeResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_deserialize( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDetachVolumeResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncDetachVolumeResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDetachVolumeResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncDetachVolumeResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncDetachVolumeResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncDetachVolumeResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncDetachVolumeResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncDetachVolumeResponseType_create(env); ++ ++ status = adb_ncDetachVolumeResponseType_deserialize((adb_ncDetachVolumeResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncDetachVolumeResponse"); ++ } ++ else ++ { ++ status = adb_ncDetachVolumeResponse_set_ncDetachVolumeResponse(_ncDetachVolumeResponse, env, ++ (adb_ncDetachVolumeResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncDetachVolumeResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncDetachVolumeResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncDetachVolumeResponse_declare_parent_namespaces( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDetachVolumeResponse_serialize( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncDetachVolumeResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeResponse->is_valid_ncDetachVolumeResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncDetachVolumeResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncDetachVolumeResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncDetachVolumeResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncDetachVolumeResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncDetachVolumeResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncDetachVolumeResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncDetachVolumeResponseType_serialize(_ncDetachVolumeResponse->property_ncDetachVolumeResponse, ++ env, current_node, parent_element, ++ adb_ncDetachVolumeResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncDetachVolumeResponse. ++ */ ++ adb_ncDetachVolumeResponseType_t* AXIS2_CALL ++ adb_ncDetachVolumeResponse_get_ncDetachVolumeResponse( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponse, NULL); ++ ++ ++ return _ncDetachVolumeResponse->property_ncDetachVolumeResponse; ++ } ++ ++ /** ++ * setter for ncDetachVolumeResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_set_ncDetachVolumeResponse( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env, ++ adb_ncDetachVolumeResponseType_t* arg_ncDetachVolumeResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponse, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeResponse->is_valid_ncDetachVolumeResponse && ++ arg_ncDetachVolumeResponse == _ncDetachVolumeResponse->property_ncDetachVolumeResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeResponse_reset_ncDetachVolumeResponse(_ncDetachVolumeResponse, env); ++ ++ ++ if(NULL == arg_ncDetachVolumeResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDetachVolumeResponse->property_ncDetachVolumeResponse = arg_ncDetachVolumeResponse; ++ _ncDetachVolumeResponse->is_valid_ncDetachVolumeResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncDetachVolumeResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_reset_ncDetachVolumeResponse( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDetachVolumeResponse->property_ncDetachVolumeResponse != NULL) ++ { ++ ++ ++ adb_ncDetachVolumeResponseType_free(_ncDetachVolumeResponse->property_ncDetachVolumeResponse, env); ++ _ncDetachVolumeResponse->property_ncDetachVolumeResponse = NULL; ++ } ++ ++ ++ ++ _ncDetachVolumeResponse->is_valid_ncDetachVolumeResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncDetachVolumeResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_is_ncDetachVolumeResponse_nil( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponse, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeResponse->is_valid_ncDetachVolumeResponse; ++ } ++ ++ /** ++ * Set ncDetachVolumeResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_set_ncDetachVolumeResponse_nil( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeResponse_reset_ncDetachVolumeResponse(_ncDetachVolumeResponse, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncDetachVolumeResponse.h' +--- old/node/generated/adb_ncDetachVolumeResponse.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncDetachVolumeResponse.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCDETACHVOLUMERESPONSE_H ++ #define ADB_NCDETACHVOLUMERESPONSE_H ++ ++ /** ++ * adb_ncDetachVolumeResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncDetachVolumeResponse class ++ */ ++ typedef struct adb_ncDetachVolumeResponse adb_ncDetachVolumeResponse_t; ++ ++ ++ #include "adb_ncDetachVolumeResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncDetachVolumeResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncDetachVolumeResponse_t object ++ */ ++ adb_ncDetachVolumeResponse_t* AXIS2_CALL ++ adb_ncDetachVolumeResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncDetachVolumeResponse_t object ++ * @param _ncDetachVolumeResponse adb_ncDetachVolumeResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_free ( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncDetachVolumeResponse. ++ * @param _ncDetachVolumeResponse adb_ncDetachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_ncDetachVolumeResponseType_t* ++ */ ++ adb_ncDetachVolumeResponseType_t* AXIS2_CALL ++ adb_ncDetachVolumeResponse_get_ncDetachVolumeResponse( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncDetachVolumeResponse. ++ * @param _ncDetachVolumeResponse adb_ncDetachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_ncDetachVolumeResponse adb_ncDetachVolumeResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_set_ncDetachVolumeResponse( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env, ++ adb_ncDetachVolumeResponseType_t* arg_ncDetachVolumeResponse); ++ ++ /** ++ * Resetter for ncDetachVolumeResponse ++ * @param _ncDetachVolumeResponse adb_ncDetachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_reset_ncDetachVolumeResponse( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncDetachVolumeResponse is nill ++ * @param _ncDetachVolumeResponse adb_ncDetachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_is_ncDetachVolumeResponse_nil( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncDetachVolumeResponse to nill (currently the same as reset) ++ * @param _ncDetachVolumeResponse adb_ncDetachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_set_ncDetachVolumeResponse_nil( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncDetachVolumeResponse adb_ncDetachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_deserialize( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncDetachVolumeResponse adb_ncDetachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncDetachVolumeResponse_declare_parent_namespaces( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncDetachVolumeResponse adb_ncDetachVolumeResponse_t object ++ * @param env pointer to environment struct ++ * @param ncDetachVolumeResponse_om_node node to serialize from ++ * @param ncDetachVolumeResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDetachVolumeResponse_serialize( ++ adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, ++ const axutil_env_t *env, ++ axiom_node_t* ncDetachVolumeResponse_om_node, axiom_element_t *ncDetachVolumeResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncDetachVolumeResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCDETACHVOLUMERESPONSE_H */ ++ ++ + +=== added file 'node/generated/adb_ncDetachVolumeResponseType.c' +--- old/node/generated/adb_ncDetachVolumeResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncDetachVolumeResponseType.c 2010-01-05 01:00:34 +0000 +@@ -0,0 +1,1365 @@ ++ ++ ++ /** ++ * adb_ncDetachVolumeResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncDetachVolumeResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncDetachVolumeResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncDetachVolumeResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_correlationId_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_userId_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_return_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncDetachVolumeResponseType_t* AXIS2_CALL ++ adb_ncDetachVolumeResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncDetachVolumeResponseType_t *_ncDetachVolumeResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncDetachVolumeResponseType = (adb_ncDetachVolumeResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncDetachVolumeResponseType_t)); ++ ++ if(NULL == _ncDetachVolumeResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncDetachVolumeResponseType, 0, sizeof(adb_ncDetachVolumeResponseType_t)); ++ ++ _ncDetachVolumeResponseType->property_correlationId = NULL; ++ _ncDetachVolumeResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _ncDetachVolumeResponseType->property_userId = NULL; ++ _ncDetachVolumeResponseType->is_valid_userId = AXIS2_FALSE; ++ _ncDetachVolumeResponseType->is_valid_return = AXIS2_FALSE; ++ _ncDetachVolumeResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ ++ ++ return _ncDetachVolumeResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_free ( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE); ++ ++ adb_ncDetachVolumeResponseType_reset_correlationId(_ncDetachVolumeResponseType, env); ++ adb_ncDetachVolumeResponseType_reset_userId(_ncDetachVolumeResponseType, env); ++ adb_ncDetachVolumeResponseType_reset_return(_ncDetachVolumeResponseType, env); ++ adb_ncDetachVolumeResponseType_reset_statusMessage(_ncDetachVolumeResponseType, env); ++ ++ ++ if(_ncDetachVolumeResponseType) ++ { ++ AXIS2_FREE(env->allocator, _ncDetachVolumeResponseType); ++ _ncDetachVolumeResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_deserialize( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDetachVolumeResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDetachVolumeResponseType_set_correlationId(_ncDetachVolumeResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDetachVolumeResponseType_set_correlationId(_ncDetachVolumeResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDetachVolumeResponseType_set_userId(_ncDetachVolumeResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDetachVolumeResponseType_set_userId(_ncDetachVolumeResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncDetachVolumeResponseType_set_return(_ncDetachVolumeResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncDetachVolumeResponseType_set_return(_ncDetachVolumeResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDetachVolumeResponseType_set_statusMessage(_ncDetachVolumeResponseType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncDetachVolumeResponseType_declare_parent_namespaces( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDetachVolumeResponseType_serialize( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncDetachVolumeResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncDetachVolumeResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncDetachVolumeResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDetachVolumeResponseType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeResponseType_get_correlationId( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, NULL); ++ ++ ++ return _ncDetachVolumeResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_correlationId( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeResponseType->is_valid_correlationId && ++ arg_correlationId == _ncDetachVolumeResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeResponseType_reset_correlationId(_ncDetachVolumeResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDetachVolumeResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncDetachVolumeResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDetachVolumeResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_reset_correlationId( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDetachVolumeResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDetachVolumeResponseType->property_correlationId); ++ _ncDetachVolumeResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncDetachVolumeResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_is_correlationId_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_correlationId_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeResponseType_reset_correlationId(_ncDetachVolumeResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeResponseType_get_userId( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, NULL); ++ ++ ++ return _ncDetachVolumeResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_userId( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeResponseType->is_valid_userId && ++ arg_userId == _ncDetachVolumeResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeResponseType_reset_userId(_ncDetachVolumeResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDetachVolumeResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncDetachVolumeResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDetachVolumeResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_reset_userId( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDetachVolumeResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDetachVolumeResponseType->property_userId); ++ _ncDetachVolumeResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncDetachVolumeResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_is_userId_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_userId_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeResponseType_reset_userId(_ncDetachVolumeResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_get_return( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, (axis2_bool_t)0); ++ ++ ++ return _ncDetachVolumeResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_return( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeResponseType->is_valid_return && ++ arg_return == _ncDetachVolumeResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeResponseType_reset_return(_ncDetachVolumeResponseType, env); ++ ++ _ncDetachVolumeResponseType->property_return = arg_return; ++ _ncDetachVolumeResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_reset_return( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ _ncDetachVolumeResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_is_return_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_return_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeResponseType_reset_return(_ncDetachVolumeResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncDetachVolumeResponseType_get_statusMessage( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, (int)0); ++ ++ ++ return _ncDetachVolumeResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_statusMessage( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeResponseType->is_valid_statusMessage && ++ arg_statusMessage == _ncDetachVolumeResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeResponseType_reset_statusMessage(_ncDetachVolumeResponseType, env); ++ ++ _ncDetachVolumeResponseType->property_statusMessage = arg_statusMessage; ++ _ncDetachVolumeResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_reset_statusMessage( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE); ++ ++ ++ _ncDetachVolumeResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_is_statusMessage_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_statusMessage_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeResponseType_reset_statusMessage(_ncDetachVolumeResponseType, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncDetachVolumeResponseType.h' +--- old/node/generated/adb_ncDetachVolumeResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncDetachVolumeResponseType.h 2010-01-05 01:00:34 +0000 +@@ -0,0 +1,362 @@ ++ ++ ++ #ifndef ADB_NCDETACHVOLUMERESPONSETYPE_H ++ #define ADB_NCDETACHVOLUMERESPONSETYPE_H ++ ++ /** ++ * adb_ncDetachVolumeResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncDetachVolumeResponseType class ++ */ ++ typedef struct adb_ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncDetachVolumeResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncDetachVolumeResponseType_t object ++ */ ++ adb_ncDetachVolumeResponseType_t* AXIS2_CALL ++ adb_ncDetachVolumeResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncDetachVolumeResponseType_t object ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_free ( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeResponseType_get_correlationId( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_correlationId( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_reset_correlationId( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeResponseType_get_userId( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_userId( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_reset_userId( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_get_return( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_return( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_reset_return( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncDetachVolumeResponseType_get_statusMessage( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_statusMessage( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_reset_statusMessage( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_is_correlationId_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_is_userId_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_is_return_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_is_statusMessage_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_set_statusMessage_nil( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_deserialize( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncDetachVolumeResponseType_declare_parent_namespaces( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncDetachVolumeResponseType adb_ncDetachVolumeResponseType_t object ++ * @param env pointer to environment struct ++ * @param ncDetachVolumeResponseType_om_node node to serialize from ++ * @param ncDetachVolumeResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDetachVolumeResponseType_serialize( ++ adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* ncDetachVolumeResponseType_om_node, axiom_element_t *ncDetachVolumeResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncDetachVolumeResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCDETACHVOLUMERESPONSETYPE_H */ ++ ++ + +=== added file 'node/generated/adb_ncDetachVolumeType.c' +--- old/node/generated/adb_ncDetachVolumeType.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncDetachVolumeType.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,2969 @@ ++ ++ ++ /** ++ * adb_ncDetachVolumeType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncDetachVolumeType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncDetachVolumeType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncDetachVolumeType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_char_t* property_instanceId; ++ ++ ++ axis2_bool_t is_valid_instanceId; ++ ++ ++ axis2_char_t* property_volumeId; ++ ++ ++ axis2_bool_t is_valid_volumeId; ++ ++ ++ axis2_char_t* property_remoteDev; ++ ++ ++ axis2_bool_t is_valid_remoteDev; ++ ++ ++ axis2_char_t* property_localDev; ++ ++ ++ axis2_bool_t is_valid_localDev; ++ ++ ++ axis2_bool_t property_force; ++ ++ ++ axis2_bool_t is_valid_force; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_correlationId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_userId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_return_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_instanceId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_volumeId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_remoteDev_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_localDev_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_force_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncDetachVolumeType_t* AXIS2_CALL ++ adb_ncDetachVolumeType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncDetachVolumeType_t *_ncDetachVolumeType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncDetachVolumeType = (adb_ncDetachVolumeType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncDetachVolumeType_t)); ++ ++ if(NULL == _ncDetachVolumeType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncDetachVolumeType, 0, sizeof(adb_ncDetachVolumeType_t)); ++ ++ _ncDetachVolumeType->property_correlationId = NULL; ++ _ncDetachVolumeType->is_valid_correlationId = AXIS2_FALSE; ++ _ncDetachVolumeType->property_userId = NULL; ++ _ncDetachVolumeType->is_valid_userId = AXIS2_FALSE; ++ _ncDetachVolumeType->is_valid_return = AXIS2_FALSE; ++ _ncDetachVolumeType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncDetachVolumeType->property_instanceId = NULL; ++ _ncDetachVolumeType->is_valid_instanceId = AXIS2_FALSE; ++ _ncDetachVolumeType->property_volumeId = NULL; ++ _ncDetachVolumeType->is_valid_volumeId = AXIS2_FALSE; ++ _ncDetachVolumeType->property_remoteDev = NULL; ++ _ncDetachVolumeType->is_valid_remoteDev = AXIS2_FALSE; ++ _ncDetachVolumeType->property_localDev = NULL; ++ _ncDetachVolumeType->is_valid_localDev = AXIS2_FALSE; ++ _ncDetachVolumeType->is_valid_force = AXIS2_FALSE; ++ ++ ++ return _ncDetachVolumeType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_free ( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ adb_ncDetachVolumeType_reset_correlationId(_ncDetachVolumeType, env); ++ adb_ncDetachVolumeType_reset_userId(_ncDetachVolumeType, env); ++ adb_ncDetachVolumeType_reset_return(_ncDetachVolumeType, env); ++ adb_ncDetachVolumeType_reset_statusMessage(_ncDetachVolumeType, env); ++ adb_ncDetachVolumeType_reset_instanceId(_ncDetachVolumeType, env); ++ adb_ncDetachVolumeType_reset_volumeId(_ncDetachVolumeType, env); ++ adb_ncDetachVolumeType_reset_remoteDev(_ncDetachVolumeType, env); ++ adb_ncDetachVolumeType_reset_localDev(_ncDetachVolumeType, env); ++ adb_ncDetachVolumeType_reset_force(_ncDetachVolumeType, env); ++ ++ ++ if(_ncDetachVolumeType) ++ { ++ AXIS2_FREE(env->allocator, _ncDetachVolumeType); ++ _ncDetachVolumeType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_deserialize( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncDetachVolumeType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDetachVolumeType_set_correlationId(_ncDetachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDetachVolumeType_set_correlationId(_ncDetachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDetachVolumeType_set_userId(_ncDetachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDetachVolumeType_set_userId(_ncDetachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncDetachVolumeType_set_return(_ncDetachVolumeType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncDetachVolumeType_set_return(_ncDetachVolumeType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDetachVolumeType_set_statusMessage(_ncDetachVolumeType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDetachVolumeType_set_instanceId(_ncDetachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDetachVolumeType_set_instanceId(_ncDetachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building volumeId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "volumeId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDetachVolumeType_set_volumeId(_ncDetachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element volumeId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDetachVolumeType_set_volumeId(_ncDetachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for volumeId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building remoteDev element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "remoteDev", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDetachVolumeType_set_remoteDev(_ncDetachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element remoteDev"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDetachVolumeType_set_remoteDev(_ncDetachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for remoteDev "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building localDev element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "localDev", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncDetachVolumeType_set_localDev(_ncDetachVolumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element localDev"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncDetachVolumeType_set_localDev(_ncDetachVolumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for localDev "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building force element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "force", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncDetachVolumeType_set_force(_ncDetachVolumeType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncDetachVolumeType_set_force(_ncDetachVolumeType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element force"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for force "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncDetachVolumeType_declare_parent_namespaces( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDetachVolumeType_serialize( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *text_value_6; ++ axis2_char_t *text_value_6_temp; ++ ++ axis2_char_t *text_value_7; ++ axis2_char_t *text_value_7_temp; ++ ++ axis2_char_t *text_value_8; ++ axis2_char_t *text_value_8_temp; ++ ++ axis2_char_t text_value_9[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncDetachVolumeType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncDetachVolumeType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncDetachVolumeType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDetachVolumeType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeType->is_valid_instanceId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _ncDetachVolumeType->property_instanceId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeType->is_valid_volumeId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("volumeId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("volumeId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing volumeId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%svolumeId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_6 = _ncDetachVolumeType->property_volumeId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE); ++ if (text_value_6_temp) ++ { ++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp)); ++ AXIS2_FREE(env->allocator, text_value_6_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeType->is_valid_remoteDev) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("remoteDev"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("remoteDev"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing remoteDev element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sremoteDev>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_7 = _ncDetachVolumeType->property_remoteDev; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE); ++ if (text_value_7_temp) ++ { ++ axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp)); ++ AXIS2_FREE(env->allocator, text_value_7_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeType->is_valid_localDev) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("localDev"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("localDev"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing localDev element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%slocalDev>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_8 = _ncDetachVolumeType->property_localDev; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE); ++ if (text_value_8_temp) ++ { ++ axutil_stream_write(stream, env, text_value_8_temp, axutil_strlen(text_value_8_temp)); ++ AXIS2_FREE(env->allocator, text_value_8_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncDetachVolumeType->is_valid_force) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("force"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("force"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing force element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sforce>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_9, (_ncDetachVolumeType->property_force)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_9, axutil_strlen(text_value_9)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeType_get_correlationId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, NULL); ++ ++ ++ return _ncDetachVolumeType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_correlationId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeType->is_valid_correlationId && ++ arg_correlationId == _ncDetachVolumeType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeType_reset_correlationId(_ncDetachVolumeType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDetachVolumeType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncDetachVolumeType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDetachVolumeType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_correlationId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDetachVolumeType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDetachVolumeType->property_correlationId); ++ _ncDetachVolumeType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncDetachVolumeType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_correlationId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_correlationId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeType_reset_correlationId(_ncDetachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeType_get_userId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, NULL); ++ ++ ++ return _ncDetachVolumeType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_userId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeType->is_valid_userId && ++ arg_userId == _ncDetachVolumeType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeType_reset_userId(_ncDetachVolumeType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDetachVolumeType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncDetachVolumeType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDetachVolumeType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_userId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDetachVolumeType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDetachVolumeType->property_userId); ++ _ncDetachVolumeType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncDetachVolumeType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_userId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_userId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeType_reset_userId(_ncDetachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_get_return( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, (axis2_bool_t)0); ++ ++ ++ return _ncDetachVolumeType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_return( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeType->is_valid_return && ++ arg_return == _ncDetachVolumeType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeType_reset_return(_ncDetachVolumeType, env); ++ ++ _ncDetachVolumeType->property_return = arg_return; ++ _ncDetachVolumeType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_return( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ ++ _ncDetachVolumeType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_return_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_return_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeType_reset_return(_ncDetachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncDetachVolumeType_get_statusMessage( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, (int)0); ++ ++ ++ return _ncDetachVolumeType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_statusMessage( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeType->is_valid_statusMessage && ++ arg_statusMessage == _ncDetachVolumeType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeType_reset_statusMessage(_ncDetachVolumeType, env); ++ ++ _ncDetachVolumeType->property_statusMessage = arg_statusMessage; ++ _ncDetachVolumeType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_statusMessage( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ ++ _ncDetachVolumeType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_statusMessage_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_statusMessage_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeType_reset_statusMessage(_ncDetachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeType_get_instanceId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, NULL); ++ ++ ++ return _ncDetachVolumeType->property_instanceId; ++ } ++ ++ /** ++ * setter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_instanceId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeType->is_valid_instanceId && ++ arg_instanceId == _ncDetachVolumeType->property_instanceId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeType_reset_instanceId(_ncDetachVolumeType, env); ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDetachVolumeType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId); ++ if(NULL == _ncDetachVolumeType->property_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDetachVolumeType->is_valid_instanceId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_instanceId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDetachVolumeType->property_instanceId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDetachVolumeType->property_instanceId); ++ _ncDetachVolumeType->property_instanceId = NULL; ++ } ++ ++ ++ ++ _ncDetachVolumeType->is_valid_instanceId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_instanceId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeType->is_valid_instanceId; ++ } ++ ++ /** ++ * Set instanceId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_instanceId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeType_reset_instanceId(_ncDetachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for volumeId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeType_get_volumeId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, NULL); ++ ++ ++ return _ncDetachVolumeType->property_volumeId; ++ } ++ ++ /** ++ * setter for volumeId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_volumeId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_volumeId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeType->is_valid_volumeId && ++ arg_volumeId == _ncDetachVolumeType->property_volumeId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeType_reset_volumeId(_ncDetachVolumeType, env); ++ ++ ++ if(NULL == arg_volumeId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDetachVolumeType->property_volumeId = (axis2_char_t *)axutil_strdup(env, arg_volumeId); ++ if(NULL == _ncDetachVolumeType->property_volumeId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for volumeId"); ++ return AXIS2_FAILURE; ++ } ++ _ncDetachVolumeType->is_valid_volumeId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for volumeId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_volumeId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDetachVolumeType->property_volumeId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDetachVolumeType->property_volumeId); ++ _ncDetachVolumeType->property_volumeId = NULL; ++ } ++ ++ ++ ++ _ncDetachVolumeType->is_valid_volumeId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether volumeId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_volumeId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeType->is_valid_volumeId; ++ } ++ ++ /** ++ * Set volumeId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_volumeId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeType_reset_volumeId(_ncDetachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for remoteDev. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeType_get_remoteDev( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, NULL); ++ ++ ++ return _ncDetachVolumeType->property_remoteDev; ++ } ++ ++ /** ++ * setter for remoteDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_remoteDev( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_remoteDev) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeType->is_valid_remoteDev && ++ arg_remoteDev == _ncDetachVolumeType->property_remoteDev) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeType_reset_remoteDev(_ncDetachVolumeType, env); ++ ++ ++ if(NULL == arg_remoteDev) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDetachVolumeType->property_remoteDev = (axis2_char_t *)axutil_strdup(env, arg_remoteDev); ++ if(NULL == _ncDetachVolumeType->property_remoteDev) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for remoteDev"); ++ return AXIS2_FAILURE; ++ } ++ _ncDetachVolumeType->is_valid_remoteDev = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for remoteDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_remoteDev( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDetachVolumeType->property_remoteDev != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDetachVolumeType->property_remoteDev); ++ _ncDetachVolumeType->property_remoteDev = NULL; ++ } ++ ++ ++ ++ _ncDetachVolumeType->is_valid_remoteDev = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether remoteDev is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_remoteDev_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeType->is_valid_remoteDev; ++ } ++ ++ /** ++ * Set remoteDev to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_remoteDev_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeType_reset_remoteDev(_ncDetachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for localDev. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeType_get_localDev( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, NULL); ++ ++ ++ return _ncDetachVolumeType->property_localDev; ++ } ++ ++ /** ++ * setter for localDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_localDev( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_localDev) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeType->is_valid_localDev && ++ arg_localDev == _ncDetachVolumeType->property_localDev) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeType_reset_localDev(_ncDetachVolumeType, env); ++ ++ ++ if(NULL == arg_localDev) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncDetachVolumeType->property_localDev = (axis2_char_t *)axutil_strdup(env, arg_localDev); ++ if(NULL == _ncDetachVolumeType->property_localDev) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for localDev"); ++ return AXIS2_FAILURE; ++ } ++ _ncDetachVolumeType->is_valid_localDev = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for localDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_localDev( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncDetachVolumeType->property_localDev != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncDetachVolumeType->property_localDev); ++ _ncDetachVolumeType->property_localDev = NULL; ++ } ++ ++ ++ ++ _ncDetachVolumeType->is_valid_localDev = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether localDev is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_localDev_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeType->is_valid_localDev; ++ } ++ ++ /** ++ * Set localDev to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_localDev_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeType_reset_localDev(_ncDetachVolumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for force. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_get_force( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, (axis2_bool_t)0); ++ ++ ++ return _ncDetachVolumeType->property_force; ++ } ++ ++ /** ++ * setter for force ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_force( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_force) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ if(_ncDetachVolumeType->is_valid_force && ++ arg_force == _ncDetachVolumeType->property_force) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncDetachVolumeType_reset_force(_ncDetachVolumeType, env); ++ ++ _ncDetachVolumeType->property_force = arg_force; ++ _ncDetachVolumeType->is_valid_force = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for force ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_force( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_FAILURE); ++ ++ ++ _ncDetachVolumeType->is_valid_force = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether force is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_force_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeType, AXIS2_TRUE); ++ ++ return !_ncDetachVolumeType->is_valid_force; ++ } ++ ++ /** ++ * Set force to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_force_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env) ++ { ++ return adb_ncDetachVolumeType_reset_force(_ncDetachVolumeType, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncDetachVolumeType.h' +--- old/node/generated/adb_ncDetachVolumeType.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncDetachVolumeType.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,622 @@ ++ ++ ++ #ifndef ADB_NCDETACHVOLUMETYPE_H ++ #define ADB_NCDETACHVOLUMETYPE_H ++ ++ /** ++ * adb_ncDetachVolumeType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncDetachVolumeType class ++ */ ++ typedef struct adb_ncDetachVolumeType adb_ncDetachVolumeType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncDetachVolumeType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncDetachVolumeType_t object ++ */ ++ adb_ncDetachVolumeType_t* AXIS2_CALL ++ adb_ncDetachVolumeType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncDetachVolumeType_t object ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_free ( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeType_get_correlationId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_correlationId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_correlationId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeType_get_userId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_userId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_userId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_get_return( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_return( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_return( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncDetachVolumeType_get_statusMessage( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_statusMessage( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_statusMessage( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceId. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeType_get_instanceId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceId. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_instanceId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId); ++ ++ /** ++ * Resetter for instanceId ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_instanceId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for volumeId. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeType_get_volumeId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for volumeId. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_volumeId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_volumeId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_volumeId); ++ ++ /** ++ * Resetter for volumeId ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_volumeId( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for remoteDev. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeType_get_remoteDev( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for remoteDev. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_remoteDev axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_remoteDev( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_remoteDev); ++ ++ /** ++ * Resetter for remoteDev ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_remoteDev( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for localDev. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncDetachVolumeType_get_localDev( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for localDev. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_localDev axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_localDev( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_localDev); ++ ++ /** ++ * Resetter for localDev ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_localDev( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for force. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_get_force( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for force. ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_force axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_force( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_force); ++ ++ /** ++ * Resetter for force ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_reset_force( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_correlationId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_userId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_return_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_statusMessage_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_set_statusMessage_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether instanceId is nill ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_instanceId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether volumeId is nill ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_volumeId_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether remoteDev is nill ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_remoteDev_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether localDev is nill ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_localDev_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether force is nill ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_force_nil( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncDetachVolumeType_deserialize( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncDetachVolumeType_declare_parent_namespaces( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncDetachVolumeType adb_ncDetachVolumeType_t object ++ * @param env pointer to environment struct ++ * @param ncDetachVolumeType_om_node node to serialize from ++ * @param ncDetachVolumeType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncDetachVolumeType_serialize( ++ adb_ncDetachVolumeType_t* _ncDetachVolumeType, ++ const axutil_env_t *env, ++ axiom_node_t* ncDetachVolumeType_om_node, axiom_element_t *ncDetachVolumeType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncDetachVolumeType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncDetachVolumeType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCDETACHVOLUMETYPE_H */ ++ ++ + +=== added file 'node/generated/adb_ncGetConsoleOutput.c' +--- old/node/generated/adb_ncGetConsoleOutput.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncGetConsoleOutput.c 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncGetConsoleOutput.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncGetConsoleOutput.h" ++ ++ /* ++ * implmentation of the ncGetConsoleOutput|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncGetConsoleOutput ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncGetConsoleOutputType_t* property_ncGetConsoleOutput; ++ ++ ++ axis2_bool_t is_valid_ncGetConsoleOutput; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncGetConsoleOutput_t* AXIS2_CALL ++ adb_ncGetConsoleOutput_create( ++ const axutil_env_t *env) ++ { ++ adb_ncGetConsoleOutput_t *_ncGetConsoleOutput = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncGetConsoleOutput = (adb_ncGetConsoleOutput_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncGetConsoleOutput_t)); ++ ++ if(NULL == _ncGetConsoleOutput) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncGetConsoleOutput, 0, sizeof(adb_ncGetConsoleOutput_t)); ++ ++ _ncGetConsoleOutput->property_ncGetConsoleOutput = NULL; ++ _ncGetConsoleOutput->is_valid_ncGetConsoleOutput = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncGetConsoleOutput", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncGetConsoleOutput->qname = qname; ++ ++ ++ return _ncGetConsoleOutput; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutput_free ( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutput, AXIS2_FAILURE); ++ ++ adb_ncGetConsoleOutput_reset_ncGetConsoleOutput(_ncGetConsoleOutput, env); ++ ++ if(_ncGetConsoleOutput->qname) ++ { ++ axutil_qname_free (_ncGetConsoleOutput->qname, env); ++ _ncGetConsoleOutput->qname = NULL; ++ } ++ ++ ++ if(_ncGetConsoleOutput) ++ { ++ AXIS2_FREE(env->allocator, _ncGetConsoleOutput); ++ _ncGetConsoleOutput = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutput_deserialize( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutput, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncGetConsoleOutput : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncGetConsoleOutput-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncGetConsoleOutput : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncGetConsoleOutput-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncGetConsoleOutput element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncGetConsoleOutput", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncGetConsoleOutputType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncGetConsoleOutputType_create(env); ++ ++ status = adb_ncGetConsoleOutputType_deserialize((adb_ncGetConsoleOutputType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncGetConsoleOutput"); ++ } ++ else ++ { ++ status = adb_ncGetConsoleOutput_set_ncGetConsoleOutput(_ncGetConsoleOutput, env, ++ (adb_ncGetConsoleOutputType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncGetConsoleOutput "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncGetConsoleOutput missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutput_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncGetConsoleOutput_declare_parent_namespaces( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncGetConsoleOutput_serialize( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutput, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncGetConsoleOutput", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncGetConsoleOutput->is_valid_ncGetConsoleOutput) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncGetConsoleOutput") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncGetConsoleOutput xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncGetConsoleOutput"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncGetConsoleOutput"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncGetConsoleOutput element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncGetConsoleOutput", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncGetConsoleOutputType_serialize(_ncGetConsoleOutput->property_ncGetConsoleOutput, ++ env, current_node, parent_element, ++ adb_ncGetConsoleOutputType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncGetConsoleOutput. ++ */ ++ adb_ncGetConsoleOutputType_t* AXIS2_CALL ++ adb_ncGetConsoleOutput_get_ncGetConsoleOutput( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutput, NULL); ++ ++ ++ return _ncGetConsoleOutput->property_ncGetConsoleOutput; ++ } ++ ++ /** ++ * setter for ncGetConsoleOutput ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutput_set_ncGetConsoleOutput( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env, ++ adb_ncGetConsoleOutputType_t* arg_ncGetConsoleOutput) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutput, AXIS2_FAILURE); ++ ++ if(_ncGetConsoleOutput->is_valid_ncGetConsoleOutput && ++ arg_ncGetConsoleOutput == _ncGetConsoleOutput->property_ncGetConsoleOutput) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncGetConsoleOutput_reset_ncGetConsoleOutput(_ncGetConsoleOutput, env); ++ ++ ++ if(NULL == arg_ncGetConsoleOutput) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncGetConsoleOutput->property_ncGetConsoleOutput = arg_ncGetConsoleOutput; ++ _ncGetConsoleOutput->is_valid_ncGetConsoleOutput = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncGetConsoleOutput ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutput_reset_ncGetConsoleOutput( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutput, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncGetConsoleOutput->property_ncGetConsoleOutput != NULL) ++ { ++ ++ ++ adb_ncGetConsoleOutputType_free(_ncGetConsoleOutput->property_ncGetConsoleOutput, env); ++ _ncGetConsoleOutput->property_ncGetConsoleOutput = NULL; ++ } ++ ++ ++ ++ _ncGetConsoleOutput->is_valid_ncGetConsoleOutput = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncGetConsoleOutput is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutput_is_ncGetConsoleOutput_nil( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutput, AXIS2_TRUE); ++ ++ return !_ncGetConsoleOutput->is_valid_ncGetConsoleOutput; ++ } ++ ++ /** ++ * Set ncGetConsoleOutput to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutput_set_ncGetConsoleOutput_nil( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env) ++ { ++ return adb_ncGetConsoleOutput_reset_ncGetConsoleOutput(_ncGetConsoleOutput, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncGetConsoleOutput.h' +--- old/node/generated/adb_ncGetConsoleOutput.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncGetConsoleOutput.h 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCGETCONSOLEOUTPUT_H ++ #define ADB_NCGETCONSOLEOUTPUT_H ++ ++ /** ++ * adb_ncGetConsoleOutput.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncGetConsoleOutput class ++ */ ++ typedef struct adb_ncGetConsoleOutput adb_ncGetConsoleOutput_t; ++ ++ ++ #include "adb_ncGetConsoleOutputType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncGetConsoleOutput_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncGetConsoleOutput_t object ++ */ ++ adb_ncGetConsoleOutput_t* AXIS2_CALL ++ adb_ncGetConsoleOutput_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncGetConsoleOutput_t object ++ * @param _ncGetConsoleOutput adb_ncGetConsoleOutput_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutput_free ( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncGetConsoleOutput. ++ * @param _ncGetConsoleOutput adb_ncGetConsoleOutput_t object ++ * @param env pointer to environment struct ++ * @return adb_ncGetConsoleOutputType_t* ++ */ ++ adb_ncGetConsoleOutputType_t* AXIS2_CALL ++ adb_ncGetConsoleOutput_get_ncGetConsoleOutput( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncGetConsoleOutput. ++ * @param _ncGetConsoleOutput adb_ncGetConsoleOutput_t object ++ * @param env pointer to environment struct ++ * @param arg_ncGetConsoleOutput adb_ncGetConsoleOutputType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutput_set_ncGetConsoleOutput( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env, ++ adb_ncGetConsoleOutputType_t* arg_ncGetConsoleOutput); ++ ++ /** ++ * Resetter for ncGetConsoleOutput ++ * @param _ncGetConsoleOutput adb_ncGetConsoleOutput_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutput_reset_ncGetConsoleOutput( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncGetConsoleOutput is nill ++ * @param _ncGetConsoleOutput adb_ncGetConsoleOutput_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutput_is_ncGetConsoleOutput_nil( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncGetConsoleOutput to nill (currently the same as reset) ++ * @param _ncGetConsoleOutput adb_ncGetConsoleOutput_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutput_set_ncGetConsoleOutput_nil( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncGetConsoleOutput adb_ncGetConsoleOutput_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutput_deserialize( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncGetConsoleOutput adb_ncGetConsoleOutput_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncGetConsoleOutput_declare_parent_namespaces( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncGetConsoleOutput adb_ncGetConsoleOutput_t object ++ * @param env pointer to environment struct ++ * @param ncGetConsoleOutput_om_node node to serialize from ++ * @param ncGetConsoleOutput_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncGetConsoleOutput_serialize( ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ const axutil_env_t *env, ++ axiom_node_t* ncGetConsoleOutput_om_node, axiom_element_t *ncGetConsoleOutput_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncGetConsoleOutput is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutput_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCGETCONSOLEOUTPUT_H */ ++ ++ + +=== added file 'node/generated/adb_ncGetConsoleOutputResponse.c' +--- old/node/generated/adb_ncGetConsoleOutputResponse.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncGetConsoleOutputResponse.c 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncGetConsoleOutputResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncGetConsoleOutputResponse.h" ++ ++ /* ++ * implmentation of the ncGetConsoleOutputResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncGetConsoleOutputResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncGetConsoleOutputResponseType_t* property_ncGetConsoleOutputResponse; ++ ++ ++ axis2_bool_t is_valid_ncGetConsoleOutputResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncGetConsoleOutputResponse_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_ncGetConsoleOutputResponse_t *_ncGetConsoleOutputResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncGetConsoleOutputResponse = (adb_ncGetConsoleOutputResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncGetConsoleOutputResponse_t)); ++ ++ if(NULL == _ncGetConsoleOutputResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncGetConsoleOutputResponse, 0, sizeof(adb_ncGetConsoleOutputResponse_t)); ++ ++ _ncGetConsoleOutputResponse->property_ncGetConsoleOutputResponse = NULL; ++ _ncGetConsoleOutputResponse->is_valid_ncGetConsoleOutputResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncGetConsoleOutputResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncGetConsoleOutputResponse->qname = qname; ++ ++ ++ return _ncGetConsoleOutputResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_free ( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponse, AXIS2_FAILURE); ++ ++ adb_ncGetConsoleOutputResponse_reset_ncGetConsoleOutputResponse(_ncGetConsoleOutputResponse, env); ++ ++ if(_ncGetConsoleOutputResponse->qname) ++ { ++ axutil_qname_free (_ncGetConsoleOutputResponse->qname, env); ++ _ncGetConsoleOutputResponse->qname = NULL; ++ } ++ ++ ++ if(_ncGetConsoleOutputResponse) ++ { ++ AXIS2_FREE(env->allocator, _ncGetConsoleOutputResponse); ++ _ncGetConsoleOutputResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_deserialize( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncGetConsoleOutputResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncGetConsoleOutputResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncGetConsoleOutputResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncGetConsoleOutputResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncGetConsoleOutputResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncGetConsoleOutputResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncGetConsoleOutputResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncGetConsoleOutputResponseType_create(env); ++ ++ status = adb_ncGetConsoleOutputResponseType_deserialize((adb_ncGetConsoleOutputResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncGetConsoleOutputResponse"); ++ } ++ else ++ { ++ status = adb_ncGetConsoleOutputResponse_set_ncGetConsoleOutputResponse(_ncGetConsoleOutputResponse, env, ++ (adb_ncGetConsoleOutputResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncGetConsoleOutputResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncGetConsoleOutputResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_declare_parent_namespaces( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_serialize( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncGetConsoleOutputResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncGetConsoleOutputResponse->is_valid_ncGetConsoleOutputResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncGetConsoleOutputResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncGetConsoleOutputResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncGetConsoleOutputResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncGetConsoleOutputResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncGetConsoleOutputResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncGetConsoleOutputResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncGetConsoleOutputResponseType_serialize(_ncGetConsoleOutputResponse->property_ncGetConsoleOutputResponse, ++ env, current_node, parent_element, ++ adb_ncGetConsoleOutputResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncGetConsoleOutputResponse. ++ */ ++ adb_ncGetConsoleOutputResponseType_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_get_ncGetConsoleOutputResponse( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponse, NULL); ++ ++ ++ return _ncGetConsoleOutputResponse->property_ncGetConsoleOutputResponse; ++ } ++ ++ /** ++ * setter for ncGetConsoleOutputResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_set_ncGetConsoleOutputResponse( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env, ++ adb_ncGetConsoleOutputResponseType_t* arg_ncGetConsoleOutputResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponse, AXIS2_FAILURE); ++ ++ if(_ncGetConsoleOutputResponse->is_valid_ncGetConsoleOutputResponse && ++ arg_ncGetConsoleOutputResponse == _ncGetConsoleOutputResponse->property_ncGetConsoleOutputResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncGetConsoleOutputResponse_reset_ncGetConsoleOutputResponse(_ncGetConsoleOutputResponse, env); ++ ++ ++ if(NULL == arg_ncGetConsoleOutputResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncGetConsoleOutputResponse->property_ncGetConsoleOutputResponse = arg_ncGetConsoleOutputResponse; ++ _ncGetConsoleOutputResponse->is_valid_ncGetConsoleOutputResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncGetConsoleOutputResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_reset_ncGetConsoleOutputResponse( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncGetConsoleOutputResponse->property_ncGetConsoleOutputResponse != NULL) ++ { ++ ++ ++ adb_ncGetConsoleOutputResponseType_free(_ncGetConsoleOutputResponse->property_ncGetConsoleOutputResponse, env); ++ _ncGetConsoleOutputResponse->property_ncGetConsoleOutputResponse = NULL; ++ } ++ ++ ++ ++ _ncGetConsoleOutputResponse->is_valid_ncGetConsoleOutputResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncGetConsoleOutputResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_is_ncGetConsoleOutputResponse_nil( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponse, AXIS2_TRUE); ++ ++ return !_ncGetConsoleOutputResponse->is_valid_ncGetConsoleOutputResponse; ++ } ++ ++ /** ++ * Set ncGetConsoleOutputResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_set_ncGetConsoleOutputResponse_nil( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env) ++ { ++ return adb_ncGetConsoleOutputResponse_reset_ncGetConsoleOutputResponse(_ncGetConsoleOutputResponse, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncGetConsoleOutputResponse.h' +--- old/node/generated/adb_ncGetConsoleOutputResponse.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncGetConsoleOutputResponse.h 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCGETCONSOLEOUTPUTRESPONSE_H ++ #define ADB_NCGETCONSOLEOUTPUTRESPONSE_H ++ ++ /** ++ * adb_ncGetConsoleOutputResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncGetConsoleOutputResponse class ++ */ ++ typedef struct adb_ncGetConsoleOutputResponse adb_ncGetConsoleOutputResponse_t; ++ ++ ++ #include "adb_ncGetConsoleOutputResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncGetConsoleOutputResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncGetConsoleOutputResponse_t object ++ */ ++ adb_ncGetConsoleOutputResponse_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncGetConsoleOutputResponse_t object ++ * @param _ncGetConsoleOutputResponse adb_ncGetConsoleOutputResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_free ( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncGetConsoleOutputResponse. ++ * @param _ncGetConsoleOutputResponse adb_ncGetConsoleOutputResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_ncGetConsoleOutputResponseType_t* ++ */ ++ adb_ncGetConsoleOutputResponseType_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_get_ncGetConsoleOutputResponse( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncGetConsoleOutputResponse. ++ * @param _ncGetConsoleOutputResponse adb_ncGetConsoleOutputResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_ncGetConsoleOutputResponse adb_ncGetConsoleOutputResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_set_ncGetConsoleOutputResponse( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env, ++ adb_ncGetConsoleOutputResponseType_t* arg_ncGetConsoleOutputResponse); ++ ++ /** ++ * Resetter for ncGetConsoleOutputResponse ++ * @param _ncGetConsoleOutputResponse adb_ncGetConsoleOutputResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_reset_ncGetConsoleOutputResponse( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncGetConsoleOutputResponse is nill ++ * @param _ncGetConsoleOutputResponse adb_ncGetConsoleOutputResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_is_ncGetConsoleOutputResponse_nil( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncGetConsoleOutputResponse to nill (currently the same as reset) ++ * @param _ncGetConsoleOutputResponse adb_ncGetConsoleOutputResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_set_ncGetConsoleOutputResponse_nil( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncGetConsoleOutputResponse adb_ncGetConsoleOutputResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_deserialize( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncGetConsoleOutputResponse adb_ncGetConsoleOutputResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_declare_parent_namespaces( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncGetConsoleOutputResponse adb_ncGetConsoleOutputResponse_t object ++ * @param env pointer to environment struct ++ * @param ncGetConsoleOutputResponse_om_node node to serialize from ++ * @param ncGetConsoleOutputResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_serialize( ++ adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, ++ const axutil_env_t *env, ++ axiom_node_t* ncGetConsoleOutputResponse_om_node, axiom_element_t *ncGetConsoleOutputResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncGetConsoleOutputResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCGETCONSOLEOUTPUTRESPONSE_H */ ++ ++ + +=== added file 'node/generated/adb_ncGetConsoleOutputResponseType.c' +--- old/node/generated/adb_ncGetConsoleOutputResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncGetConsoleOutputResponseType.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,1720 @@ ++ ++ ++ /** ++ * adb_ncGetConsoleOutputResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncGetConsoleOutputResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncGetConsoleOutputResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncGetConsoleOutputResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_char_t* property_consoleOutput; ++ ++ ++ axis2_bool_t is_valid_consoleOutput; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_correlationId_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_userId_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_return_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_consoleOutput_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncGetConsoleOutputResponseType_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncGetConsoleOutputResponseType_t *_ncGetConsoleOutputResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncGetConsoleOutputResponseType = (adb_ncGetConsoleOutputResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncGetConsoleOutputResponseType_t)); ++ ++ if(NULL == _ncGetConsoleOutputResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncGetConsoleOutputResponseType, 0, sizeof(adb_ncGetConsoleOutputResponseType_t)); ++ ++ _ncGetConsoleOutputResponseType->property_correlationId = NULL; ++ _ncGetConsoleOutputResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _ncGetConsoleOutputResponseType->property_userId = NULL; ++ _ncGetConsoleOutputResponseType->is_valid_userId = AXIS2_FALSE; ++ _ncGetConsoleOutputResponseType->is_valid_return = AXIS2_FALSE; ++ _ncGetConsoleOutputResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncGetConsoleOutputResponseType->property_consoleOutput = NULL; ++ _ncGetConsoleOutputResponseType->is_valid_consoleOutput = AXIS2_FALSE; ++ ++ ++ return _ncGetConsoleOutputResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_free ( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ adb_ncGetConsoleOutputResponseType_reset_correlationId(_ncGetConsoleOutputResponseType, env); ++ adb_ncGetConsoleOutputResponseType_reset_userId(_ncGetConsoleOutputResponseType, env); ++ adb_ncGetConsoleOutputResponseType_reset_return(_ncGetConsoleOutputResponseType, env); ++ adb_ncGetConsoleOutputResponseType_reset_statusMessage(_ncGetConsoleOutputResponseType, env); ++ adb_ncGetConsoleOutputResponseType_reset_consoleOutput(_ncGetConsoleOutputResponseType, env); ++ ++ ++ if(_ncGetConsoleOutputResponseType) ++ { ++ AXIS2_FREE(env->allocator, _ncGetConsoleOutputResponseType); ++ _ncGetConsoleOutputResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_deserialize( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncGetConsoleOutputResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncGetConsoleOutputResponseType_set_correlationId(_ncGetConsoleOutputResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncGetConsoleOutputResponseType_set_correlationId(_ncGetConsoleOutputResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncGetConsoleOutputResponseType_set_userId(_ncGetConsoleOutputResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncGetConsoleOutputResponseType_set_userId(_ncGetConsoleOutputResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncGetConsoleOutputResponseType_set_return(_ncGetConsoleOutputResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncGetConsoleOutputResponseType_set_return(_ncGetConsoleOutputResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncGetConsoleOutputResponseType_set_statusMessage(_ncGetConsoleOutputResponseType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building consoleOutput element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "consoleOutput", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncGetConsoleOutputResponseType_set_consoleOutput(_ncGetConsoleOutputResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element consoleOutput"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncGetConsoleOutputResponseType_set_consoleOutput(_ncGetConsoleOutputResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for consoleOutput "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element consoleOutput missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_declare_parent_namespaces( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_serialize( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncGetConsoleOutputResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncGetConsoleOutputResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncGetConsoleOutputResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncGetConsoleOutputResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncGetConsoleOutputResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncGetConsoleOutputResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncGetConsoleOutputResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncGetConsoleOutputResponseType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncGetConsoleOutputResponseType->is_valid_consoleOutput) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property consoleOutput"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("consoleOutput"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("consoleOutput"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing consoleOutput element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sconsoleOutput>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _ncGetConsoleOutputResponseType->property_consoleOutput; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_get_correlationId( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, NULL); ++ ++ ++ return _ncGetConsoleOutputResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_correlationId( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ if(_ncGetConsoleOutputResponseType->is_valid_correlationId && ++ arg_correlationId == _ncGetConsoleOutputResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncGetConsoleOutputResponseType_reset_correlationId(_ncGetConsoleOutputResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncGetConsoleOutputResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncGetConsoleOutputResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncGetConsoleOutputResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_reset_correlationId( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncGetConsoleOutputResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncGetConsoleOutputResponseType->property_correlationId); ++ _ncGetConsoleOutputResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncGetConsoleOutputResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_is_correlationId_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_TRUE); ++ ++ return !_ncGetConsoleOutputResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_correlationId_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncGetConsoleOutputResponseType_reset_correlationId(_ncGetConsoleOutputResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_get_userId( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, NULL); ++ ++ ++ return _ncGetConsoleOutputResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_userId( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ if(_ncGetConsoleOutputResponseType->is_valid_userId && ++ arg_userId == _ncGetConsoleOutputResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncGetConsoleOutputResponseType_reset_userId(_ncGetConsoleOutputResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncGetConsoleOutputResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncGetConsoleOutputResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncGetConsoleOutputResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_reset_userId( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncGetConsoleOutputResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncGetConsoleOutputResponseType->property_userId); ++ _ncGetConsoleOutputResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncGetConsoleOutputResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_is_userId_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_TRUE); ++ ++ return !_ncGetConsoleOutputResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_userId_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncGetConsoleOutputResponseType_reset_userId(_ncGetConsoleOutputResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_get_return( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, (axis2_bool_t)0); ++ ++ ++ return _ncGetConsoleOutputResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_return( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ if(_ncGetConsoleOutputResponseType->is_valid_return && ++ arg_return == _ncGetConsoleOutputResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncGetConsoleOutputResponseType_reset_return(_ncGetConsoleOutputResponseType, env); ++ ++ _ncGetConsoleOutputResponseType->property_return = arg_return; ++ _ncGetConsoleOutputResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_reset_return( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ ++ _ncGetConsoleOutputResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_is_return_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_TRUE); ++ ++ return !_ncGetConsoleOutputResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_return_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncGetConsoleOutputResponseType_reset_return(_ncGetConsoleOutputResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_get_statusMessage( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, (int)0); ++ ++ ++ return _ncGetConsoleOutputResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_statusMessage( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ if(_ncGetConsoleOutputResponseType->is_valid_statusMessage && ++ arg_statusMessage == _ncGetConsoleOutputResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncGetConsoleOutputResponseType_reset_statusMessage(_ncGetConsoleOutputResponseType, env); ++ ++ _ncGetConsoleOutputResponseType->property_statusMessage = arg_statusMessage; ++ _ncGetConsoleOutputResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_reset_statusMessage( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ ++ _ncGetConsoleOutputResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_is_statusMessage_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_TRUE); ++ ++ return !_ncGetConsoleOutputResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_statusMessage_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncGetConsoleOutputResponseType_reset_statusMessage(_ncGetConsoleOutputResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for consoleOutput. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_get_consoleOutput( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, NULL); ++ ++ ++ return _ncGetConsoleOutputResponseType->property_consoleOutput; ++ } ++ ++ /** ++ * setter for consoleOutput ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_consoleOutput( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_consoleOutput) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ if(_ncGetConsoleOutputResponseType->is_valid_consoleOutput && ++ arg_consoleOutput == _ncGetConsoleOutputResponseType->property_consoleOutput) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_consoleOutput) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "consoleOutput is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncGetConsoleOutputResponseType_reset_consoleOutput(_ncGetConsoleOutputResponseType, env); ++ ++ ++ if(NULL == arg_consoleOutput) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncGetConsoleOutputResponseType->property_consoleOutput = (axis2_char_t *)axutil_strdup(env, arg_consoleOutput); ++ if(NULL == _ncGetConsoleOutputResponseType->property_consoleOutput) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for consoleOutput"); ++ return AXIS2_FAILURE; ++ } ++ _ncGetConsoleOutputResponseType->is_valid_consoleOutput = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for consoleOutput ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_reset_consoleOutput( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncGetConsoleOutputResponseType->property_consoleOutput != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncGetConsoleOutputResponseType->property_consoleOutput); ++ _ncGetConsoleOutputResponseType->property_consoleOutput = NULL; ++ } ++ ++ ++ ++ _ncGetConsoleOutputResponseType->is_valid_consoleOutput = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether consoleOutput is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_is_consoleOutput_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_TRUE); ++ ++ return !_ncGetConsoleOutputResponseType->is_valid_consoleOutput; ++ } ++ ++ /** ++ * Set consoleOutput to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_consoleOutput_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncGetConsoleOutputResponseType_reset_consoleOutput(_ncGetConsoleOutputResponseType, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncGetConsoleOutputResponseType.h' +--- old/node/generated/adb_ncGetConsoleOutputResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncGetConsoleOutputResponseType.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,414 @@ ++ ++ ++ #ifndef ADB_NCGETCONSOLEOUTPUTRESPONSETYPE_H ++ #define ADB_NCGETCONSOLEOUTPUTRESPONSETYPE_H ++ ++ /** ++ * adb_ncGetConsoleOutputResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncGetConsoleOutputResponseType class ++ */ ++ typedef struct adb_ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncGetConsoleOutputResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncGetConsoleOutputResponseType_t object ++ */ ++ adb_ncGetConsoleOutputResponseType_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncGetConsoleOutputResponseType_t object ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_free ( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_get_correlationId( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_correlationId( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_reset_correlationId( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_get_userId( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_userId( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_reset_userId( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_get_return( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_return( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_reset_return( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_get_statusMessage( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_statusMessage( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_reset_statusMessage( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for consoleOutput. ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_get_consoleOutput( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for consoleOutput. ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_consoleOutput axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_consoleOutput( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_consoleOutput); ++ ++ /** ++ * Resetter for consoleOutput ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_reset_consoleOutput( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_is_correlationId_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_is_userId_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_is_return_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_is_statusMessage_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_set_statusMessage_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether consoleOutput is nill ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_is_consoleOutput_nil( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_deserialize( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_declare_parent_namespaces( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncGetConsoleOutputResponseType adb_ncGetConsoleOutputResponseType_t object ++ * @param env pointer to environment struct ++ * @param ncGetConsoleOutputResponseType_om_node node to serialize from ++ * @param ncGetConsoleOutputResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_serialize( ++ adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* ncGetConsoleOutputResponseType_om_node, axiom_element_t *ncGetConsoleOutputResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncGetConsoleOutputResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCGETCONSOLEOUTPUTRESPONSETYPE_H */ ++ ++ + +=== added file 'node/generated/adb_ncGetConsoleOutputType.c' +--- old/node/generated/adb_ncGetConsoleOutputType.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncGetConsoleOutputType.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,1720 @@ ++ ++ ++ /** ++ * adb_ncGetConsoleOutputType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncGetConsoleOutputType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncGetConsoleOutputType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncGetConsoleOutputType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_char_t* property_instanceId; ++ ++ ++ axis2_bool_t is_valid_instanceId; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_correlationId_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_userId_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_return_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_instanceId_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncGetConsoleOutputType_t* AXIS2_CALL ++ adb_ncGetConsoleOutputType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncGetConsoleOutputType_t *_ncGetConsoleOutputType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncGetConsoleOutputType = (adb_ncGetConsoleOutputType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncGetConsoleOutputType_t)); ++ ++ if(NULL == _ncGetConsoleOutputType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncGetConsoleOutputType, 0, sizeof(adb_ncGetConsoleOutputType_t)); ++ ++ _ncGetConsoleOutputType->property_correlationId = NULL; ++ _ncGetConsoleOutputType->is_valid_correlationId = AXIS2_FALSE; ++ _ncGetConsoleOutputType->property_userId = NULL; ++ _ncGetConsoleOutputType->is_valid_userId = AXIS2_FALSE; ++ _ncGetConsoleOutputType->is_valid_return = AXIS2_FALSE; ++ _ncGetConsoleOutputType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncGetConsoleOutputType->property_instanceId = NULL; ++ _ncGetConsoleOutputType->is_valid_instanceId = AXIS2_FALSE; ++ ++ ++ return _ncGetConsoleOutputType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_free ( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE); ++ ++ adb_ncGetConsoleOutputType_reset_correlationId(_ncGetConsoleOutputType, env); ++ adb_ncGetConsoleOutputType_reset_userId(_ncGetConsoleOutputType, env); ++ adb_ncGetConsoleOutputType_reset_return(_ncGetConsoleOutputType, env); ++ adb_ncGetConsoleOutputType_reset_statusMessage(_ncGetConsoleOutputType, env); ++ adb_ncGetConsoleOutputType_reset_instanceId(_ncGetConsoleOutputType, env); ++ ++ ++ if(_ncGetConsoleOutputType) ++ { ++ AXIS2_FREE(env->allocator, _ncGetConsoleOutputType); ++ _ncGetConsoleOutputType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_deserialize( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncGetConsoleOutputType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncGetConsoleOutputType_set_correlationId(_ncGetConsoleOutputType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncGetConsoleOutputType_set_correlationId(_ncGetConsoleOutputType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncGetConsoleOutputType_set_userId(_ncGetConsoleOutputType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncGetConsoleOutputType_set_userId(_ncGetConsoleOutputType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncGetConsoleOutputType_set_return(_ncGetConsoleOutputType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncGetConsoleOutputType_set_return(_ncGetConsoleOutputType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncGetConsoleOutputType_set_statusMessage(_ncGetConsoleOutputType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncGetConsoleOutputType_set_instanceId(_ncGetConsoleOutputType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncGetConsoleOutputType_set_instanceId(_ncGetConsoleOutputType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element instanceId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncGetConsoleOutputType_declare_parent_namespaces( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncGetConsoleOutputType_serialize( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncGetConsoleOutputType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncGetConsoleOutputType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncGetConsoleOutputType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncGetConsoleOutputType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncGetConsoleOutputType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncGetConsoleOutputType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncGetConsoleOutputType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncGetConsoleOutputType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncGetConsoleOutputType->is_valid_instanceId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _ncGetConsoleOutputType->property_instanceId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncGetConsoleOutputType_get_correlationId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, NULL); ++ ++ ++ return _ncGetConsoleOutputType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_correlationId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE); ++ ++ if(_ncGetConsoleOutputType->is_valid_correlationId && ++ arg_correlationId == _ncGetConsoleOutputType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncGetConsoleOutputType_reset_correlationId(_ncGetConsoleOutputType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncGetConsoleOutputType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncGetConsoleOutputType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncGetConsoleOutputType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_reset_correlationId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncGetConsoleOutputType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncGetConsoleOutputType->property_correlationId); ++ _ncGetConsoleOutputType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncGetConsoleOutputType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_is_correlationId_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_TRUE); ++ ++ return !_ncGetConsoleOutputType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_correlationId_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ return adb_ncGetConsoleOutputType_reset_correlationId(_ncGetConsoleOutputType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncGetConsoleOutputType_get_userId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, NULL); ++ ++ ++ return _ncGetConsoleOutputType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_userId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE); ++ ++ if(_ncGetConsoleOutputType->is_valid_userId && ++ arg_userId == _ncGetConsoleOutputType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncGetConsoleOutputType_reset_userId(_ncGetConsoleOutputType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncGetConsoleOutputType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncGetConsoleOutputType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncGetConsoleOutputType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_reset_userId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncGetConsoleOutputType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncGetConsoleOutputType->property_userId); ++ _ncGetConsoleOutputType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncGetConsoleOutputType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_is_userId_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_TRUE); ++ ++ return !_ncGetConsoleOutputType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_userId_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ return adb_ncGetConsoleOutputType_reset_userId(_ncGetConsoleOutputType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_get_return( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, (axis2_bool_t)0); ++ ++ ++ return _ncGetConsoleOutputType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_return( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE); ++ ++ if(_ncGetConsoleOutputType->is_valid_return && ++ arg_return == _ncGetConsoleOutputType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncGetConsoleOutputType_reset_return(_ncGetConsoleOutputType, env); ++ ++ _ncGetConsoleOutputType->property_return = arg_return; ++ _ncGetConsoleOutputType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_reset_return( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE); ++ ++ ++ _ncGetConsoleOutputType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_is_return_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_TRUE); ++ ++ return !_ncGetConsoleOutputType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_return_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ return adb_ncGetConsoleOutputType_reset_return(_ncGetConsoleOutputType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncGetConsoleOutputType_get_statusMessage( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, (int)0); ++ ++ ++ return _ncGetConsoleOutputType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_statusMessage( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE); ++ ++ if(_ncGetConsoleOutputType->is_valid_statusMessage && ++ arg_statusMessage == _ncGetConsoleOutputType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncGetConsoleOutputType_reset_statusMessage(_ncGetConsoleOutputType, env); ++ ++ _ncGetConsoleOutputType->property_statusMessage = arg_statusMessage; ++ _ncGetConsoleOutputType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_reset_statusMessage( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE); ++ ++ ++ _ncGetConsoleOutputType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_is_statusMessage_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_TRUE); ++ ++ return !_ncGetConsoleOutputType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_statusMessage_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ return adb_ncGetConsoleOutputType_reset_statusMessage(_ncGetConsoleOutputType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncGetConsoleOutputType_get_instanceId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, NULL); ++ ++ ++ return _ncGetConsoleOutputType->property_instanceId; ++ } ++ ++ /** ++ * setter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_instanceId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE); ++ ++ if(_ncGetConsoleOutputType->is_valid_instanceId && ++ arg_instanceId == _ncGetConsoleOutputType->property_instanceId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncGetConsoleOutputType_reset_instanceId(_ncGetConsoleOutputType, env); ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncGetConsoleOutputType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId); ++ if(NULL == _ncGetConsoleOutputType->property_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId"); ++ return AXIS2_FAILURE; ++ } ++ _ncGetConsoleOutputType->is_valid_instanceId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_reset_instanceId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncGetConsoleOutputType->property_instanceId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncGetConsoleOutputType->property_instanceId); ++ _ncGetConsoleOutputType->property_instanceId = NULL; ++ } ++ ++ ++ ++ _ncGetConsoleOutputType->is_valid_instanceId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_is_instanceId_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_TRUE); ++ ++ return !_ncGetConsoleOutputType->is_valid_instanceId; ++ } ++ ++ /** ++ * Set instanceId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_instanceId_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env) ++ { ++ return adb_ncGetConsoleOutputType_reset_instanceId(_ncGetConsoleOutputType, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncGetConsoleOutputType.h' +--- old/node/generated/adb_ncGetConsoleOutputType.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncGetConsoleOutputType.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,414 @@ ++ ++ ++ #ifndef ADB_NCGETCONSOLEOUTPUTTYPE_H ++ #define ADB_NCGETCONSOLEOUTPUTTYPE_H ++ ++ /** ++ * adb_ncGetConsoleOutputType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncGetConsoleOutputType class ++ */ ++ typedef struct adb_ncGetConsoleOutputType adb_ncGetConsoleOutputType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncGetConsoleOutputType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncGetConsoleOutputType_t object ++ */ ++ adb_ncGetConsoleOutputType_t* AXIS2_CALL ++ adb_ncGetConsoleOutputType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncGetConsoleOutputType_t object ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_free ( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncGetConsoleOutputType_get_correlationId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_correlationId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_reset_correlationId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncGetConsoleOutputType_get_userId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_userId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_reset_userId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_get_return( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_return( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_reset_return( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncGetConsoleOutputType_get_statusMessage( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_statusMessage( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_reset_statusMessage( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceId. ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncGetConsoleOutputType_get_instanceId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceId. ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_instanceId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId); ++ ++ /** ++ * Resetter for instanceId ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_reset_instanceId( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_is_correlationId_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_is_userId_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_is_return_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_is_statusMessage_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_set_statusMessage_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether instanceId is nill ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_is_instanceId_nil( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_deserialize( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncGetConsoleOutputType_declare_parent_namespaces( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncGetConsoleOutputType adb_ncGetConsoleOutputType_t object ++ * @param env pointer to environment struct ++ * @param ncGetConsoleOutputType_om_node node to serialize from ++ * @param ncGetConsoleOutputType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncGetConsoleOutputType_serialize( ++ adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType, ++ const axutil_env_t *env, ++ axiom_node_t* ncGetConsoleOutputType_om_node, axiom_element_t *ncGetConsoleOutputType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncGetConsoleOutputType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncGetConsoleOutputType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCGETCONSOLEOUTPUTTYPE_H */ ++ ++ + +=== added file 'node/generated/adb_ncPowerDown.c' +--- old/node/generated/adb_ncPowerDown.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncPowerDown.c 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncPowerDown.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncPowerDown.h" ++ ++ /* ++ * implmentation of the ncPowerDown|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncPowerDown ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncPowerDownType_t* property_ncPowerDown; ++ ++ ++ axis2_bool_t is_valid_ncPowerDown; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncPowerDown_t* AXIS2_CALL ++ adb_ncPowerDown_create( ++ const axutil_env_t *env) ++ { ++ adb_ncPowerDown_t *_ncPowerDown = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncPowerDown = (adb_ncPowerDown_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncPowerDown_t)); ++ ++ if(NULL == _ncPowerDown) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncPowerDown, 0, sizeof(adb_ncPowerDown_t)); ++ ++ _ncPowerDown->property_ncPowerDown = NULL; ++ _ncPowerDown->is_valid_ncPowerDown = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncPowerDown", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncPowerDown->qname = qname; ++ ++ ++ return _ncPowerDown; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDown_free ( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDown, AXIS2_FAILURE); ++ ++ adb_ncPowerDown_reset_ncPowerDown(_ncPowerDown, env); ++ ++ if(_ncPowerDown->qname) ++ { ++ axutil_qname_free (_ncPowerDown->qname, env); ++ _ncPowerDown->qname = NULL; ++ } ++ ++ ++ if(_ncPowerDown) ++ { ++ AXIS2_FREE(env->allocator, _ncPowerDown); ++ _ncPowerDown = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDown_deserialize( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDown, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncPowerDown : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncPowerDown-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncPowerDown : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncPowerDown-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncPowerDown element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncPowerDown", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncPowerDownType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncPowerDownType_create(env); ++ ++ status = adb_ncPowerDownType_deserialize((adb_ncPowerDownType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncPowerDown"); ++ } ++ else ++ { ++ status = adb_ncPowerDown_set_ncPowerDown(_ncPowerDown, env, ++ (adb_ncPowerDownType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncPowerDown "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncPowerDown missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDown_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncPowerDown_declare_parent_namespaces( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncPowerDown_serialize( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDown, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncPowerDown", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncPowerDown->is_valid_ncPowerDown) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncPowerDown") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncPowerDown xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncPowerDown"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncPowerDown"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncPowerDown element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncPowerDown", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncPowerDownType_serialize(_ncPowerDown->property_ncPowerDown, ++ env, current_node, parent_element, ++ adb_ncPowerDownType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncPowerDown. ++ */ ++ adb_ncPowerDownType_t* AXIS2_CALL ++ adb_ncPowerDown_get_ncPowerDown( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDown, NULL); ++ ++ ++ return _ncPowerDown->property_ncPowerDown; ++ } ++ ++ /** ++ * setter for ncPowerDown ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDown_set_ncPowerDown( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env, ++ adb_ncPowerDownType_t* arg_ncPowerDown) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDown, AXIS2_FAILURE); ++ ++ if(_ncPowerDown->is_valid_ncPowerDown && ++ arg_ncPowerDown == _ncPowerDown->property_ncPowerDown) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncPowerDown_reset_ncPowerDown(_ncPowerDown, env); ++ ++ ++ if(NULL == arg_ncPowerDown) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncPowerDown->property_ncPowerDown = arg_ncPowerDown; ++ _ncPowerDown->is_valid_ncPowerDown = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncPowerDown ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDown_reset_ncPowerDown( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDown, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncPowerDown->property_ncPowerDown != NULL) ++ { ++ ++ ++ adb_ncPowerDownType_free(_ncPowerDown->property_ncPowerDown, env); ++ _ncPowerDown->property_ncPowerDown = NULL; ++ } ++ ++ ++ ++ _ncPowerDown->is_valid_ncPowerDown = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncPowerDown is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDown_is_ncPowerDown_nil( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDown, AXIS2_TRUE); ++ ++ return !_ncPowerDown->is_valid_ncPowerDown; ++ } ++ ++ /** ++ * Set ncPowerDown to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDown_set_ncPowerDown_nil( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env) ++ { ++ return adb_ncPowerDown_reset_ncPowerDown(_ncPowerDown, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncPowerDown.h' +--- old/node/generated/adb_ncPowerDown.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncPowerDown.h 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCPOWERDOWN_H ++ #define ADB_NCPOWERDOWN_H ++ ++ /** ++ * adb_ncPowerDown.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncPowerDown class ++ */ ++ typedef struct adb_ncPowerDown adb_ncPowerDown_t; ++ ++ ++ #include "adb_ncPowerDownType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncPowerDown_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncPowerDown_t object ++ */ ++ adb_ncPowerDown_t* AXIS2_CALL ++ adb_ncPowerDown_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncPowerDown_t object ++ * @param _ncPowerDown adb_ncPowerDown_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDown_free ( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncPowerDown. ++ * @param _ncPowerDown adb_ncPowerDown_t object ++ * @param env pointer to environment struct ++ * @return adb_ncPowerDownType_t* ++ */ ++ adb_ncPowerDownType_t* AXIS2_CALL ++ adb_ncPowerDown_get_ncPowerDown( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncPowerDown. ++ * @param _ncPowerDown adb_ncPowerDown_t object ++ * @param env pointer to environment struct ++ * @param arg_ncPowerDown adb_ncPowerDownType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDown_set_ncPowerDown( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env, ++ adb_ncPowerDownType_t* arg_ncPowerDown); ++ ++ /** ++ * Resetter for ncPowerDown ++ * @param _ncPowerDown adb_ncPowerDown_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDown_reset_ncPowerDown( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncPowerDown is nill ++ * @param _ncPowerDown adb_ncPowerDown_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDown_is_ncPowerDown_nil( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncPowerDown to nill (currently the same as reset) ++ * @param _ncPowerDown adb_ncPowerDown_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDown_set_ncPowerDown_nil( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncPowerDown adb_ncPowerDown_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDown_deserialize( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncPowerDown adb_ncPowerDown_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncPowerDown_declare_parent_namespaces( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncPowerDown adb_ncPowerDown_t object ++ * @param env pointer to environment struct ++ * @param ncPowerDown_om_node node to serialize from ++ * @param ncPowerDown_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncPowerDown_serialize( ++ adb_ncPowerDown_t* _ncPowerDown, ++ const axutil_env_t *env, ++ axiom_node_t* ncPowerDown_om_node, axiom_element_t *ncPowerDown_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncPowerDown is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDown_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCPOWERDOWN_H */ ++ ++ + +=== added file 'node/generated/adb_ncPowerDownResponse.c' +--- old/node/generated/adb_ncPowerDownResponse.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncPowerDownResponse.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncPowerDownResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncPowerDownResponse.h" ++ ++ /* ++ * implmentation of the ncPowerDownResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncPowerDownResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncPowerDownResponseType_t* property_ncPowerDownResponse; ++ ++ ++ axis2_bool_t is_valid_ncPowerDownResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncPowerDownResponse_t* AXIS2_CALL ++ adb_ncPowerDownResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_ncPowerDownResponse_t *_ncPowerDownResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncPowerDownResponse = (adb_ncPowerDownResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncPowerDownResponse_t)); ++ ++ if(NULL == _ncPowerDownResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncPowerDownResponse, 0, sizeof(adb_ncPowerDownResponse_t)); ++ ++ _ncPowerDownResponse->property_ncPowerDownResponse = NULL; ++ _ncPowerDownResponse->is_valid_ncPowerDownResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncPowerDownResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncPowerDownResponse->qname = qname; ++ ++ ++ return _ncPowerDownResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponse_free ( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponse, AXIS2_FAILURE); ++ ++ adb_ncPowerDownResponse_reset_ncPowerDownResponse(_ncPowerDownResponse, env); ++ ++ if(_ncPowerDownResponse->qname) ++ { ++ axutil_qname_free (_ncPowerDownResponse->qname, env); ++ _ncPowerDownResponse->qname = NULL; ++ } ++ ++ ++ if(_ncPowerDownResponse) ++ { ++ AXIS2_FREE(env->allocator, _ncPowerDownResponse); ++ _ncPowerDownResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponse_deserialize( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncPowerDownResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncPowerDownResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncPowerDownResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncPowerDownResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncPowerDownResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncPowerDownResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncPowerDownResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncPowerDownResponseType_create(env); ++ ++ status = adb_ncPowerDownResponseType_deserialize((adb_ncPowerDownResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncPowerDownResponse"); ++ } ++ else ++ { ++ status = adb_ncPowerDownResponse_set_ncPowerDownResponse(_ncPowerDownResponse, env, ++ (adb_ncPowerDownResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncPowerDownResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncPowerDownResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncPowerDownResponse_declare_parent_namespaces( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncPowerDownResponse_serialize( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncPowerDownResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncPowerDownResponse->is_valid_ncPowerDownResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncPowerDownResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncPowerDownResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncPowerDownResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncPowerDownResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncPowerDownResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncPowerDownResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncPowerDownResponseType_serialize(_ncPowerDownResponse->property_ncPowerDownResponse, ++ env, current_node, parent_element, ++ adb_ncPowerDownResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncPowerDownResponse. ++ */ ++ adb_ncPowerDownResponseType_t* AXIS2_CALL ++ adb_ncPowerDownResponse_get_ncPowerDownResponse( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponse, NULL); ++ ++ ++ return _ncPowerDownResponse->property_ncPowerDownResponse; ++ } ++ ++ /** ++ * setter for ncPowerDownResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponse_set_ncPowerDownResponse( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env, ++ adb_ncPowerDownResponseType_t* arg_ncPowerDownResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponse, AXIS2_FAILURE); ++ ++ if(_ncPowerDownResponse->is_valid_ncPowerDownResponse && ++ arg_ncPowerDownResponse == _ncPowerDownResponse->property_ncPowerDownResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncPowerDownResponse_reset_ncPowerDownResponse(_ncPowerDownResponse, env); ++ ++ ++ if(NULL == arg_ncPowerDownResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncPowerDownResponse->property_ncPowerDownResponse = arg_ncPowerDownResponse; ++ _ncPowerDownResponse->is_valid_ncPowerDownResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncPowerDownResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponse_reset_ncPowerDownResponse( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncPowerDownResponse->property_ncPowerDownResponse != NULL) ++ { ++ ++ ++ adb_ncPowerDownResponseType_free(_ncPowerDownResponse->property_ncPowerDownResponse, env); ++ _ncPowerDownResponse->property_ncPowerDownResponse = NULL; ++ } ++ ++ ++ ++ _ncPowerDownResponse->is_valid_ncPowerDownResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncPowerDownResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponse_is_ncPowerDownResponse_nil( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponse, AXIS2_TRUE); ++ ++ return !_ncPowerDownResponse->is_valid_ncPowerDownResponse; ++ } ++ ++ /** ++ * Set ncPowerDownResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponse_set_ncPowerDownResponse_nil( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env) ++ { ++ return adb_ncPowerDownResponse_reset_ncPowerDownResponse(_ncPowerDownResponse, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncPowerDownResponse.h' +--- old/node/generated/adb_ncPowerDownResponse.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncPowerDownResponse.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCPOWERDOWNRESPONSE_H ++ #define ADB_NCPOWERDOWNRESPONSE_H ++ ++ /** ++ * adb_ncPowerDownResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncPowerDownResponse class ++ */ ++ typedef struct adb_ncPowerDownResponse adb_ncPowerDownResponse_t; ++ ++ ++ #include "adb_ncPowerDownResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncPowerDownResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncPowerDownResponse_t object ++ */ ++ adb_ncPowerDownResponse_t* AXIS2_CALL ++ adb_ncPowerDownResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncPowerDownResponse_t object ++ * @param _ncPowerDownResponse adb_ncPowerDownResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponse_free ( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncPowerDownResponse. ++ * @param _ncPowerDownResponse adb_ncPowerDownResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_ncPowerDownResponseType_t* ++ */ ++ adb_ncPowerDownResponseType_t* AXIS2_CALL ++ adb_ncPowerDownResponse_get_ncPowerDownResponse( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncPowerDownResponse. ++ * @param _ncPowerDownResponse adb_ncPowerDownResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_ncPowerDownResponse adb_ncPowerDownResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponse_set_ncPowerDownResponse( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env, ++ adb_ncPowerDownResponseType_t* arg_ncPowerDownResponse); ++ ++ /** ++ * Resetter for ncPowerDownResponse ++ * @param _ncPowerDownResponse adb_ncPowerDownResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponse_reset_ncPowerDownResponse( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncPowerDownResponse is nill ++ * @param _ncPowerDownResponse adb_ncPowerDownResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponse_is_ncPowerDownResponse_nil( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncPowerDownResponse to nill (currently the same as reset) ++ * @param _ncPowerDownResponse adb_ncPowerDownResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponse_set_ncPowerDownResponse_nil( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncPowerDownResponse adb_ncPowerDownResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponse_deserialize( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncPowerDownResponse adb_ncPowerDownResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncPowerDownResponse_declare_parent_namespaces( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncPowerDownResponse adb_ncPowerDownResponse_t object ++ * @param env pointer to environment struct ++ * @param ncPowerDownResponse_om_node node to serialize from ++ * @param ncPowerDownResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncPowerDownResponse_serialize( ++ adb_ncPowerDownResponse_t* _ncPowerDownResponse, ++ const axutil_env_t *env, ++ axiom_node_t* ncPowerDownResponse_om_node, axiom_element_t *ncPowerDownResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncPowerDownResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCPOWERDOWNRESPONSE_H */ ++ ++ + +=== added file 'node/generated/adb_ncPowerDownResponseType.c' +--- old/node/generated/adb_ncPowerDownResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncPowerDownResponseType.c 2010-01-05 01:00:34 +0000 +@@ -0,0 +1,1365 @@ ++ ++ ++ /** ++ * adb_ncPowerDownResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncPowerDownResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncPowerDownResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncPowerDownResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_correlationId_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_userId_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_return_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncPowerDownResponseType_t* AXIS2_CALL ++ adb_ncPowerDownResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncPowerDownResponseType_t *_ncPowerDownResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncPowerDownResponseType = (adb_ncPowerDownResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncPowerDownResponseType_t)); ++ ++ if(NULL == _ncPowerDownResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncPowerDownResponseType, 0, sizeof(adb_ncPowerDownResponseType_t)); ++ ++ _ncPowerDownResponseType->property_correlationId = NULL; ++ _ncPowerDownResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _ncPowerDownResponseType->property_userId = NULL; ++ _ncPowerDownResponseType->is_valid_userId = AXIS2_FALSE; ++ _ncPowerDownResponseType->is_valid_return = AXIS2_FALSE; ++ _ncPowerDownResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ ++ ++ return _ncPowerDownResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_free ( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_FAILURE); ++ ++ adb_ncPowerDownResponseType_reset_correlationId(_ncPowerDownResponseType, env); ++ adb_ncPowerDownResponseType_reset_userId(_ncPowerDownResponseType, env); ++ adb_ncPowerDownResponseType_reset_return(_ncPowerDownResponseType, env); ++ adb_ncPowerDownResponseType_reset_statusMessage(_ncPowerDownResponseType, env); ++ ++ ++ if(_ncPowerDownResponseType) ++ { ++ AXIS2_FREE(env->allocator, _ncPowerDownResponseType); ++ _ncPowerDownResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_deserialize( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncPowerDownResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncPowerDownResponseType_set_correlationId(_ncPowerDownResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncPowerDownResponseType_set_correlationId(_ncPowerDownResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncPowerDownResponseType_set_userId(_ncPowerDownResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncPowerDownResponseType_set_userId(_ncPowerDownResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncPowerDownResponseType_set_return(_ncPowerDownResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncPowerDownResponseType_set_return(_ncPowerDownResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncPowerDownResponseType_set_statusMessage(_ncPowerDownResponseType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncPowerDownResponseType_declare_parent_namespaces( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncPowerDownResponseType_serialize( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncPowerDownResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncPowerDownResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncPowerDownResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncPowerDownResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncPowerDownResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncPowerDownResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncPowerDownResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncPowerDownResponseType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncPowerDownResponseType_get_correlationId( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, NULL); ++ ++ ++ return _ncPowerDownResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_correlationId( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_FAILURE); ++ ++ if(_ncPowerDownResponseType->is_valid_correlationId && ++ arg_correlationId == _ncPowerDownResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncPowerDownResponseType_reset_correlationId(_ncPowerDownResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncPowerDownResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncPowerDownResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncPowerDownResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_reset_correlationId( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncPowerDownResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncPowerDownResponseType->property_correlationId); ++ _ncPowerDownResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncPowerDownResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponseType_is_correlationId_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_TRUE); ++ ++ return !_ncPowerDownResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_correlationId_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncPowerDownResponseType_reset_correlationId(_ncPowerDownResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncPowerDownResponseType_get_userId( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, NULL); ++ ++ ++ return _ncPowerDownResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_userId( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_FAILURE); ++ ++ if(_ncPowerDownResponseType->is_valid_userId && ++ arg_userId == _ncPowerDownResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncPowerDownResponseType_reset_userId(_ncPowerDownResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncPowerDownResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncPowerDownResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncPowerDownResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_reset_userId( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncPowerDownResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncPowerDownResponseType->property_userId); ++ _ncPowerDownResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncPowerDownResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponseType_is_userId_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_TRUE); ++ ++ return !_ncPowerDownResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_userId_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncPowerDownResponseType_reset_userId(_ncPowerDownResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponseType_get_return( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, (axis2_bool_t)0); ++ ++ ++ return _ncPowerDownResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_return( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_FAILURE); ++ ++ if(_ncPowerDownResponseType->is_valid_return && ++ arg_return == _ncPowerDownResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncPowerDownResponseType_reset_return(_ncPowerDownResponseType, env); ++ ++ _ncPowerDownResponseType->property_return = arg_return; ++ _ncPowerDownResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_reset_return( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_FAILURE); ++ ++ ++ _ncPowerDownResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponseType_is_return_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_TRUE); ++ ++ return !_ncPowerDownResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_return_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncPowerDownResponseType_reset_return(_ncPowerDownResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncPowerDownResponseType_get_statusMessage( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, (int)0); ++ ++ ++ return _ncPowerDownResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_statusMessage( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_FAILURE); ++ ++ if(_ncPowerDownResponseType->is_valid_statusMessage && ++ arg_statusMessage == _ncPowerDownResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncPowerDownResponseType_reset_statusMessage(_ncPowerDownResponseType, env); ++ ++ _ncPowerDownResponseType->property_statusMessage = arg_statusMessage; ++ _ncPowerDownResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_reset_statusMessage( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_FAILURE); ++ ++ ++ _ncPowerDownResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponseType_is_statusMessage_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownResponseType, AXIS2_TRUE); ++ ++ return !_ncPowerDownResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_statusMessage_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncPowerDownResponseType_reset_statusMessage(_ncPowerDownResponseType, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncPowerDownResponseType.h' +--- old/node/generated/adb_ncPowerDownResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncPowerDownResponseType.h 2010-01-05 01:00:34 +0000 +@@ -0,0 +1,362 @@ ++ ++ ++ #ifndef ADB_NCPOWERDOWNRESPONSETYPE_H ++ #define ADB_NCPOWERDOWNRESPONSETYPE_H ++ ++ /** ++ * adb_ncPowerDownResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncPowerDownResponseType class ++ */ ++ typedef struct adb_ncPowerDownResponseType adb_ncPowerDownResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncPowerDownResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncPowerDownResponseType_t object ++ */ ++ adb_ncPowerDownResponseType_t* AXIS2_CALL ++ adb_ncPowerDownResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncPowerDownResponseType_t object ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_free ( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncPowerDownResponseType_get_correlationId( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_correlationId( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_reset_correlationId( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncPowerDownResponseType_get_userId( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_userId( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_reset_userId( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponseType_get_return( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_return( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_reset_return( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncPowerDownResponseType_get_statusMessage( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_statusMessage( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_reset_statusMessage( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponseType_is_correlationId_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponseType_is_userId_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponseType_is_return_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponseType_is_statusMessage_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_set_statusMessage_nil( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownResponseType_deserialize( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncPowerDownResponseType_declare_parent_namespaces( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncPowerDownResponseType adb_ncPowerDownResponseType_t object ++ * @param env pointer to environment struct ++ * @param ncPowerDownResponseType_om_node node to serialize from ++ * @param ncPowerDownResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncPowerDownResponseType_serialize( ++ adb_ncPowerDownResponseType_t* _ncPowerDownResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* ncPowerDownResponseType_om_node, axiom_element_t *ncPowerDownResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncPowerDownResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCPOWERDOWNRESPONSETYPE_H */ ++ ++ + +=== added file 'node/generated/adb_ncPowerDownType.c' +--- old/node/generated/adb_ncPowerDownType.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncPowerDownType.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,1365 @@ ++ ++ ++ /** ++ * adb_ncPowerDownType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncPowerDownType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncPowerDownType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncPowerDownType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_correlationId_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_userId_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_return_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncPowerDownType_t* AXIS2_CALL ++ adb_ncPowerDownType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncPowerDownType_t *_ncPowerDownType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncPowerDownType = (adb_ncPowerDownType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncPowerDownType_t)); ++ ++ if(NULL == _ncPowerDownType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncPowerDownType, 0, sizeof(adb_ncPowerDownType_t)); ++ ++ _ncPowerDownType->property_correlationId = NULL; ++ _ncPowerDownType->is_valid_correlationId = AXIS2_FALSE; ++ _ncPowerDownType->property_userId = NULL; ++ _ncPowerDownType->is_valid_userId = AXIS2_FALSE; ++ _ncPowerDownType->is_valid_return = AXIS2_FALSE; ++ _ncPowerDownType->is_valid_statusMessage = AXIS2_FALSE; ++ ++ ++ return _ncPowerDownType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_free ( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_FAILURE); ++ ++ adb_ncPowerDownType_reset_correlationId(_ncPowerDownType, env); ++ adb_ncPowerDownType_reset_userId(_ncPowerDownType, env); ++ adb_ncPowerDownType_reset_return(_ncPowerDownType, env); ++ adb_ncPowerDownType_reset_statusMessage(_ncPowerDownType, env); ++ ++ ++ if(_ncPowerDownType) ++ { ++ AXIS2_FREE(env->allocator, _ncPowerDownType); ++ _ncPowerDownType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_deserialize( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncPowerDownType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncPowerDownType_set_correlationId(_ncPowerDownType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncPowerDownType_set_correlationId(_ncPowerDownType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncPowerDownType_set_userId(_ncPowerDownType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncPowerDownType_set_userId(_ncPowerDownType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncPowerDownType_set_return(_ncPowerDownType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncPowerDownType_set_return(_ncPowerDownType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncPowerDownType_set_statusMessage(_ncPowerDownType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncPowerDownType_declare_parent_namespaces( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncPowerDownType_serialize( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncPowerDownType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncPowerDownType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncPowerDownType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncPowerDownType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncPowerDownType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncPowerDownType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncPowerDownType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncPowerDownType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncPowerDownType_get_correlationId( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, NULL); ++ ++ ++ return _ncPowerDownType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_correlationId( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_FAILURE); ++ ++ if(_ncPowerDownType->is_valid_correlationId && ++ arg_correlationId == _ncPowerDownType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncPowerDownType_reset_correlationId(_ncPowerDownType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncPowerDownType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncPowerDownType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncPowerDownType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_reset_correlationId( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncPowerDownType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncPowerDownType->property_correlationId); ++ _ncPowerDownType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncPowerDownType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownType_is_correlationId_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_TRUE); ++ ++ return !_ncPowerDownType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_correlationId_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ return adb_ncPowerDownType_reset_correlationId(_ncPowerDownType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncPowerDownType_get_userId( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, NULL); ++ ++ ++ return _ncPowerDownType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_userId( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_FAILURE); ++ ++ if(_ncPowerDownType->is_valid_userId && ++ arg_userId == _ncPowerDownType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncPowerDownType_reset_userId(_ncPowerDownType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncPowerDownType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncPowerDownType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncPowerDownType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_reset_userId( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncPowerDownType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncPowerDownType->property_userId); ++ _ncPowerDownType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncPowerDownType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownType_is_userId_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_TRUE); ++ ++ return !_ncPowerDownType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_userId_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ return adb_ncPowerDownType_reset_userId(_ncPowerDownType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownType_get_return( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, (axis2_bool_t)0); ++ ++ ++ return _ncPowerDownType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_return( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_FAILURE); ++ ++ if(_ncPowerDownType->is_valid_return && ++ arg_return == _ncPowerDownType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncPowerDownType_reset_return(_ncPowerDownType, env); ++ ++ _ncPowerDownType->property_return = arg_return; ++ _ncPowerDownType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_reset_return( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_FAILURE); ++ ++ ++ _ncPowerDownType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownType_is_return_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_TRUE); ++ ++ return !_ncPowerDownType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_return_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ return adb_ncPowerDownType_reset_return(_ncPowerDownType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncPowerDownType_get_statusMessage( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, (int)0); ++ ++ ++ return _ncPowerDownType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_statusMessage( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_FAILURE); ++ ++ if(_ncPowerDownType->is_valid_statusMessage && ++ arg_statusMessage == _ncPowerDownType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncPowerDownType_reset_statusMessage(_ncPowerDownType, env); ++ ++ _ncPowerDownType->property_statusMessage = arg_statusMessage; ++ _ncPowerDownType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_reset_statusMessage( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_FAILURE); ++ ++ ++ _ncPowerDownType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownType_is_statusMessage_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncPowerDownType, AXIS2_TRUE); ++ ++ return !_ncPowerDownType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_statusMessage_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env) ++ { ++ return adb_ncPowerDownType_reset_statusMessage(_ncPowerDownType, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncPowerDownType.h' +--- old/node/generated/adb_ncPowerDownType.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncPowerDownType.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,362 @@ ++ ++ ++ #ifndef ADB_NCPOWERDOWNTYPE_H ++ #define ADB_NCPOWERDOWNTYPE_H ++ ++ /** ++ * adb_ncPowerDownType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncPowerDownType class ++ */ ++ typedef struct adb_ncPowerDownType adb_ncPowerDownType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncPowerDownType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncPowerDownType_t object ++ */ ++ adb_ncPowerDownType_t* AXIS2_CALL ++ adb_ncPowerDownType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncPowerDownType_t object ++ * @param _ncPowerDownType adb_ncPowerDownType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_free ( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncPowerDownType_get_correlationId( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_correlationId( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_reset_correlationId( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncPowerDownType_get_userId( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_userId( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_reset_userId( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownType_get_return( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_return( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_reset_return( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncPowerDownType_get_statusMessage( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_statusMessage( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_reset_statusMessage( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownType_is_correlationId_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownType_is_userId_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownType_is_return_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownType_is_statusMessage_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_set_statusMessage_nil( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncPowerDownType_deserialize( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncPowerDownType_declare_parent_namespaces( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncPowerDownType adb_ncPowerDownType_t object ++ * @param env pointer to environment struct ++ * @param ncPowerDownType_om_node node to serialize from ++ * @param ncPowerDownType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncPowerDownType_serialize( ++ adb_ncPowerDownType_t* _ncPowerDownType, ++ const axutil_env_t *env, ++ axiom_node_t* ncPowerDownType_om_node, axiom_element_t *ncPowerDownType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncPowerDownType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncPowerDownType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCPOWERDOWNTYPE_H */ ++ ++ + +=== added file 'node/generated/adb_ncRebootInstance.c' +--- old/node/generated/adb_ncRebootInstance.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncRebootInstance.c 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncRebootInstance.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncRebootInstance.h" ++ ++ /* ++ * implmentation of the ncRebootInstance|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncRebootInstance ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncRebootInstanceType_t* property_ncRebootInstance; ++ ++ ++ axis2_bool_t is_valid_ncRebootInstance; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncRebootInstance_t* AXIS2_CALL ++ adb_ncRebootInstance_create( ++ const axutil_env_t *env) ++ { ++ adb_ncRebootInstance_t *_ncRebootInstance = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncRebootInstance = (adb_ncRebootInstance_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncRebootInstance_t)); ++ ++ if(NULL == _ncRebootInstance) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncRebootInstance, 0, sizeof(adb_ncRebootInstance_t)); ++ ++ _ncRebootInstance->property_ncRebootInstance = NULL; ++ _ncRebootInstance->is_valid_ncRebootInstance = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncRebootInstance", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncRebootInstance->qname = qname; ++ ++ ++ return _ncRebootInstance; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstance_free ( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstance, AXIS2_FAILURE); ++ ++ adb_ncRebootInstance_reset_ncRebootInstance(_ncRebootInstance, env); ++ ++ if(_ncRebootInstance->qname) ++ { ++ axutil_qname_free (_ncRebootInstance->qname, env); ++ _ncRebootInstance->qname = NULL; ++ } ++ ++ ++ if(_ncRebootInstance) ++ { ++ AXIS2_FREE(env->allocator, _ncRebootInstance); ++ _ncRebootInstance = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstance_deserialize( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstance, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncRebootInstance : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncRebootInstance-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncRebootInstance : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncRebootInstance-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncRebootInstance element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncRebootInstance", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncRebootInstanceType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncRebootInstanceType_create(env); ++ ++ status = adb_ncRebootInstanceType_deserialize((adb_ncRebootInstanceType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncRebootInstance"); ++ } ++ else ++ { ++ status = adb_ncRebootInstance_set_ncRebootInstance(_ncRebootInstance, env, ++ (adb_ncRebootInstanceType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncRebootInstance "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncRebootInstance missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstance_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncRebootInstance_declare_parent_namespaces( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRebootInstance_serialize( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstance, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncRebootInstance", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRebootInstance->is_valid_ncRebootInstance) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncRebootInstance") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncRebootInstance xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncRebootInstance"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncRebootInstance"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncRebootInstance element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncRebootInstance", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncRebootInstanceType_serialize(_ncRebootInstance->property_ncRebootInstance, ++ env, current_node, parent_element, ++ adb_ncRebootInstanceType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncRebootInstance. ++ */ ++ adb_ncRebootInstanceType_t* AXIS2_CALL ++ adb_ncRebootInstance_get_ncRebootInstance( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstance, NULL); ++ ++ ++ return _ncRebootInstance->property_ncRebootInstance; ++ } ++ ++ /** ++ * setter for ncRebootInstance ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstance_set_ncRebootInstance( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env, ++ adb_ncRebootInstanceType_t* arg_ncRebootInstance) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstance, AXIS2_FAILURE); ++ ++ if(_ncRebootInstance->is_valid_ncRebootInstance && ++ arg_ncRebootInstance == _ncRebootInstance->property_ncRebootInstance) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRebootInstance_reset_ncRebootInstance(_ncRebootInstance, env); ++ ++ ++ if(NULL == arg_ncRebootInstance) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRebootInstance->property_ncRebootInstance = arg_ncRebootInstance; ++ _ncRebootInstance->is_valid_ncRebootInstance = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncRebootInstance ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstance_reset_ncRebootInstance( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstance, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRebootInstance->property_ncRebootInstance != NULL) ++ { ++ ++ ++ adb_ncRebootInstanceType_free(_ncRebootInstance->property_ncRebootInstance, env); ++ _ncRebootInstance->property_ncRebootInstance = NULL; ++ } ++ ++ ++ ++ _ncRebootInstance->is_valid_ncRebootInstance = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncRebootInstance is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstance_is_ncRebootInstance_nil( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstance, AXIS2_TRUE); ++ ++ return !_ncRebootInstance->is_valid_ncRebootInstance; ++ } ++ ++ /** ++ * Set ncRebootInstance to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstance_set_ncRebootInstance_nil( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env) ++ { ++ return adb_ncRebootInstance_reset_ncRebootInstance(_ncRebootInstance, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncRebootInstance.h' +--- old/node/generated/adb_ncRebootInstance.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncRebootInstance.h 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCREBOOTINSTANCE_H ++ #define ADB_NCREBOOTINSTANCE_H ++ ++ /** ++ * adb_ncRebootInstance.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncRebootInstance class ++ */ ++ typedef struct adb_ncRebootInstance adb_ncRebootInstance_t; ++ ++ ++ #include "adb_ncRebootInstanceType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncRebootInstance_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncRebootInstance_t object ++ */ ++ adb_ncRebootInstance_t* AXIS2_CALL ++ adb_ncRebootInstance_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncRebootInstance_t object ++ * @param _ncRebootInstance adb_ncRebootInstance_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstance_free ( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncRebootInstance. ++ * @param _ncRebootInstance adb_ncRebootInstance_t object ++ * @param env pointer to environment struct ++ * @return adb_ncRebootInstanceType_t* ++ */ ++ adb_ncRebootInstanceType_t* AXIS2_CALL ++ adb_ncRebootInstance_get_ncRebootInstance( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncRebootInstance. ++ * @param _ncRebootInstance adb_ncRebootInstance_t object ++ * @param env pointer to environment struct ++ * @param arg_ncRebootInstance adb_ncRebootInstanceType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstance_set_ncRebootInstance( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env, ++ adb_ncRebootInstanceType_t* arg_ncRebootInstance); ++ ++ /** ++ * Resetter for ncRebootInstance ++ * @param _ncRebootInstance adb_ncRebootInstance_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstance_reset_ncRebootInstance( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncRebootInstance is nill ++ * @param _ncRebootInstance adb_ncRebootInstance_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstance_is_ncRebootInstance_nil( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncRebootInstance to nill (currently the same as reset) ++ * @param _ncRebootInstance adb_ncRebootInstance_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstance_set_ncRebootInstance_nil( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncRebootInstance adb_ncRebootInstance_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstance_deserialize( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncRebootInstance adb_ncRebootInstance_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncRebootInstance_declare_parent_namespaces( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncRebootInstance adb_ncRebootInstance_t object ++ * @param env pointer to environment struct ++ * @param ncRebootInstance_om_node node to serialize from ++ * @param ncRebootInstance_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRebootInstance_serialize( ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ const axutil_env_t *env, ++ axiom_node_t* ncRebootInstance_om_node, axiom_element_t *ncRebootInstance_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncRebootInstance is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstance_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCREBOOTINSTANCE_H */ ++ ++ + +=== added file 'node/generated/adb_ncRebootInstanceResponse.c' +--- old/node/generated/adb_ncRebootInstanceResponse.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncRebootInstanceResponse.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncRebootInstanceResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncRebootInstanceResponse.h" ++ ++ /* ++ * implmentation of the ncRebootInstanceResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncRebootInstanceResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncRebootInstanceResponseType_t* property_ncRebootInstanceResponse; ++ ++ ++ axis2_bool_t is_valid_ncRebootInstanceResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncRebootInstanceResponse_t* AXIS2_CALL ++ adb_ncRebootInstanceResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_ncRebootInstanceResponse_t *_ncRebootInstanceResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncRebootInstanceResponse = (adb_ncRebootInstanceResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncRebootInstanceResponse_t)); ++ ++ if(NULL == _ncRebootInstanceResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncRebootInstanceResponse, 0, sizeof(adb_ncRebootInstanceResponse_t)); ++ ++ _ncRebootInstanceResponse->property_ncRebootInstanceResponse = NULL; ++ _ncRebootInstanceResponse->is_valid_ncRebootInstanceResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncRebootInstanceResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncRebootInstanceResponse->qname = qname; ++ ++ ++ return _ncRebootInstanceResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_free ( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponse, AXIS2_FAILURE); ++ ++ adb_ncRebootInstanceResponse_reset_ncRebootInstanceResponse(_ncRebootInstanceResponse, env); ++ ++ if(_ncRebootInstanceResponse->qname) ++ { ++ axutil_qname_free (_ncRebootInstanceResponse->qname, env); ++ _ncRebootInstanceResponse->qname = NULL; ++ } ++ ++ ++ if(_ncRebootInstanceResponse) ++ { ++ AXIS2_FREE(env->allocator, _ncRebootInstanceResponse); ++ _ncRebootInstanceResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_deserialize( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncRebootInstanceResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncRebootInstanceResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncRebootInstanceResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncRebootInstanceResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncRebootInstanceResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncRebootInstanceResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncRebootInstanceResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncRebootInstanceResponseType_create(env); ++ ++ status = adb_ncRebootInstanceResponseType_deserialize((adb_ncRebootInstanceResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncRebootInstanceResponse"); ++ } ++ else ++ { ++ status = adb_ncRebootInstanceResponse_set_ncRebootInstanceResponse(_ncRebootInstanceResponse, env, ++ (adb_ncRebootInstanceResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncRebootInstanceResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncRebootInstanceResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncRebootInstanceResponse_declare_parent_namespaces( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRebootInstanceResponse_serialize( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncRebootInstanceResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRebootInstanceResponse->is_valid_ncRebootInstanceResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncRebootInstanceResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncRebootInstanceResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncRebootInstanceResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncRebootInstanceResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncRebootInstanceResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncRebootInstanceResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncRebootInstanceResponseType_serialize(_ncRebootInstanceResponse->property_ncRebootInstanceResponse, ++ env, current_node, parent_element, ++ adb_ncRebootInstanceResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncRebootInstanceResponse. ++ */ ++ adb_ncRebootInstanceResponseType_t* AXIS2_CALL ++ adb_ncRebootInstanceResponse_get_ncRebootInstanceResponse( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponse, NULL); ++ ++ ++ return _ncRebootInstanceResponse->property_ncRebootInstanceResponse; ++ } ++ ++ /** ++ * setter for ncRebootInstanceResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_set_ncRebootInstanceResponse( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env, ++ adb_ncRebootInstanceResponseType_t* arg_ncRebootInstanceResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponse, AXIS2_FAILURE); ++ ++ if(_ncRebootInstanceResponse->is_valid_ncRebootInstanceResponse && ++ arg_ncRebootInstanceResponse == _ncRebootInstanceResponse->property_ncRebootInstanceResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRebootInstanceResponse_reset_ncRebootInstanceResponse(_ncRebootInstanceResponse, env); ++ ++ ++ if(NULL == arg_ncRebootInstanceResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRebootInstanceResponse->property_ncRebootInstanceResponse = arg_ncRebootInstanceResponse; ++ _ncRebootInstanceResponse->is_valid_ncRebootInstanceResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncRebootInstanceResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_reset_ncRebootInstanceResponse( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRebootInstanceResponse->property_ncRebootInstanceResponse != NULL) ++ { ++ ++ ++ adb_ncRebootInstanceResponseType_free(_ncRebootInstanceResponse->property_ncRebootInstanceResponse, env); ++ _ncRebootInstanceResponse->property_ncRebootInstanceResponse = NULL; ++ } ++ ++ ++ ++ _ncRebootInstanceResponse->is_valid_ncRebootInstanceResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncRebootInstanceResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_is_ncRebootInstanceResponse_nil( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponse, AXIS2_TRUE); ++ ++ return !_ncRebootInstanceResponse->is_valid_ncRebootInstanceResponse; ++ } ++ ++ /** ++ * Set ncRebootInstanceResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_set_ncRebootInstanceResponse_nil( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env) ++ { ++ return adb_ncRebootInstanceResponse_reset_ncRebootInstanceResponse(_ncRebootInstanceResponse, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncRebootInstanceResponse.h' +--- old/node/generated/adb_ncRebootInstanceResponse.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncRebootInstanceResponse.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCREBOOTINSTANCERESPONSE_H ++ #define ADB_NCREBOOTINSTANCERESPONSE_H ++ ++ /** ++ * adb_ncRebootInstanceResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncRebootInstanceResponse class ++ */ ++ typedef struct adb_ncRebootInstanceResponse adb_ncRebootInstanceResponse_t; ++ ++ ++ #include "adb_ncRebootInstanceResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncRebootInstanceResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncRebootInstanceResponse_t object ++ */ ++ adb_ncRebootInstanceResponse_t* AXIS2_CALL ++ adb_ncRebootInstanceResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncRebootInstanceResponse_t object ++ * @param _ncRebootInstanceResponse adb_ncRebootInstanceResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_free ( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncRebootInstanceResponse. ++ * @param _ncRebootInstanceResponse adb_ncRebootInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_ncRebootInstanceResponseType_t* ++ */ ++ adb_ncRebootInstanceResponseType_t* AXIS2_CALL ++ adb_ncRebootInstanceResponse_get_ncRebootInstanceResponse( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncRebootInstanceResponse. ++ * @param _ncRebootInstanceResponse adb_ncRebootInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_ncRebootInstanceResponse adb_ncRebootInstanceResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_set_ncRebootInstanceResponse( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env, ++ adb_ncRebootInstanceResponseType_t* arg_ncRebootInstanceResponse); ++ ++ /** ++ * Resetter for ncRebootInstanceResponse ++ * @param _ncRebootInstanceResponse adb_ncRebootInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_reset_ncRebootInstanceResponse( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncRebootInstanceResponse is nill ++ * @param _ncRebootInstanceResponse adb_ncRebootInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_is_ncRebootInstanceResponse_nil( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncRebootInstanceResponse to nill (currently the same as reset) ++ * @param _ncRebootInstanceResponse adb_ncRebootInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_set_ncRebootInstanceResponse_nil( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncRebootInstanceResponse adb_ncRebootInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_deserialize( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncRebootInstanceResponse adb_ncRebootInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncRebootInstanceResponse_declare_parent_namespaces( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncRebootInstanceResponse adb_ncRebootInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @param ncRebootInstanceResponse_om_node node to serialize from ++ * @param ncRebootInstanceResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRebootInstanceResponse_serialize( ++ adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, ++ const axutil_env_t *env, ++ axiom_node_t* ncRebootInstanceResponse_om_node, axiom_element_t *ncRebootInstanceResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncRebootInstanceResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCREBOOTINSTANCERESPONSE_H */ ++ ++ + +=== added file 'node/generated/adb_ncRebootInstanceResponseType.c' +--- old/node/generated/adb_ncRebootInstanceResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncRebootInstanceResponseType.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,1633 @@ ++ ++ ++ /** ++ * adb_ncRebootInstanceResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncRebootInstanceResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncRebootInstanceResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncRebootInstanceResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_bool_t property_status; ++ ++ ++ axis2_bool_t is_valid_status; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_correlationId_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_userId_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_return_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_status_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncRebootInstanceResponseType_t* AXIS2_CALL ++ adb_ncRebootInstanceResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncRebootInstanceResponseType_t *_ncRebootInstanceResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncRebootInstanceResponseType = (adb_ncRebootInstanceResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncRebootInstanceResponseType_t)); ++ ++ if(NULL == _ncRebootInstanceResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncRebootInstanceResponseType, 0, sizeof(adb_ncRebootInstanceResponseType_t)); ++ ++ _ncRebootInstanceResponseType->property_correlationId = NULL; ++ _ncRebootInstanceResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _ncRebootInstanceResponseType->property_userId = NULL; ++ _ncRebootInstanceResponseType->is_valid_userId = AXIS2_FALSE; ++ _ncRebootInstanceResponseType->is_valid_return = AXIS2_FALSE; ++ _ncRebootInstanceResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncRebootInstanceResponseType->is_valid_status = AXIS2_FALSE; ++ ++ ++ return _ncRebootInstanceResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_free ( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_FAILURE); ++ ++ adb_ncRebootInstanceResponseType_reset_correlationId(_ncRebootInstanceResponseType, env); ++ adb_ncRebootInstanceResponseType_reset_userId(_ncRebootInstanceResponseType, env); ++ adb_ncRebootInstanceResponseType_reset_return(_ncRebootInstanceResponseType, env); ++ adb_ncRebootInstanceResponseType_reset_statusMessage(_ncRebootInstanceResponseType, env); ++ adb_ncRebootInstanceResponseType_reset_status(_ncRebootInstanceResponseType, env); ++ ++ ++ if(_ncRebootInstanceResponseType) ++ { ++ AXIS2_FREE(env->allocator, _ncRebootInstanceResponseType); ++ _ncRebootInstanceResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_deserialize( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncRebootInstanceResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRebootInstanceResponseType_set_correlationId(_ncRebootInstanceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRebootInstanceResponseType_set_correlationId(_ncRebootInstanceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRebootInstanceResponseType_set_userId(_ncRebootInstanceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRebootInstanceResponseType_set_userId(_ncRebootInstanceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncRebootInstanceResponseType_set_return(_ncRebootInstanceResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncRebootInstanceResponseType_set_return(_ncRebootInstanceResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRebootInstanceResponseType_set_statusMessage(_ncRebootInstanceResponseType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building status element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "status", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncRebootInstanceResponseType_set_status(_ncRebootInstanceResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncRebootInstanceResponseType_set_status(_ncRebootInstanceResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element status"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for status "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element status missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncRebootInstanceResponseType_declare_parent_namespaces( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRebootInstanceResponseType_serialize( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t text_value_5[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRebootInstanceResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncRebootInstanceResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRebootInstanceResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncRebootInstanceResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRebootInstanceResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncRebootInstanceResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRebootInstanceResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncRebootInstanceResponseType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRebootInstanceResponseType->is_valid_status) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property status"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("status"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("status"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing status element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatus>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_5, (_ncRebootInstanceResponseType->property_status)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRebootInstanceResponseType_get_correlationId( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, NULL); ++ ++ ++ return _ncRebootInstanceResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_correlationId( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncRebootInstanceResponseType->is_valid_correlationId && ++ arg_correlationId == _ncRebootInstanceResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRebootInstanceResponseType_reset_correlationId(_ncRebootInstanceResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRebootInstanceResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncRebootInstanceResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRebootInstanceResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_reset_correlationId( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRebootInstanceResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRebootInstanceResponseType->property_correlationId); ++ _ncRebootInstanceResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncRebootInstanceResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_is_correlationId_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncRebootInstanceResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_correlationId_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRebootInstanceResponseType_reset_correlationId(_ncRebootInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRebootInstanceResponseType_get_userId( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, NULL); ++ ++ ++ return _ncRebootInstanceResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_userId( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncRebootInstanceResponseType->is_valid_userId && ++ arg_userId == _ncRebootInstanceResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRebootInstanceResponseType_reset_userId(_ncRebootInstanceResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRebootInstanceResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncRebootInstanceResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRebootInstanceResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_reset_userId( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRebootInstanceResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRebootInstanceResponseType->property_userId); ++ _ncRebootInstanceResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncRebootInstanceResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_is_userId_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncRebootInstanceResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_userId_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRebootInstanceResponseType_reset_userId(_ncRebootInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_get_return( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, (axis2_bool_t)0); ++ ++ ++ return _ncRebootInstanceResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_return( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncRebootInstanceResponseType->is_valid_return && ++ arg_return == _ncRebootInstanceResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRebootInstanceResponseType_reset_return(_ncRebootInstanceResponseType, env); ++ ++ _ncRebootInstanceResponseType->property_return = arg_return; ++ _ncRebootInstanceResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_reset_return( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncRebootInstanceResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_is_return_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncRebootInstanceResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_return_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRebootInstanceResponseType_reset_return(_ncRebootInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncRebootInstanceResponseType_get_statusMessage( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, (int)0); ++ ++ ++ return _ncRebootInstanceResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_statusMessage( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncRebootInstanceResponseType->is_valid_statusMessage && ++ arg_statusMessage == _ncRebootInstanceResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRebootInstanceResponseType_reset_statusMessage(_ncRebootInstanceResponseType, env); ++ ++ _ncRebootInstanceResponseType->property_statusMessage = arg_statusMessage; ++ _ncRebootInstanceResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_reset_statusMessage( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncRebootInstanceResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_is_statusMessage_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncRebootInstanceResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_statusMessage_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRebootInstanceResponseType_reset_statusMessage(_ncRebootInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for status. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_get_status( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, (axis2_bool_t)0); ++ ++ ++ return _ncRebootInstanceResponseType->property_status; ++ } ++ ++ /** ++ * setter for status ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_status( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_status) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncRebootInstanceResponseType->is_valid_status && ++ arg_status == _ncRebootInstanceResponseType->property_status) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRebootInstanceResponseType_reset_status(_ncRebootInstanceResponseType, env); ++ ++ _ncRebootInstanceResponseType->property_status = arg_status; ++ _ncRebootInstanceResponseType->is_valid_status = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for status ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_reset_status( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncRebootInstanceResponseType->is_valid_status = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether status is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_is_status_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncRebootInstanceResponseType->is_valid_status; ++ } ++ ++ /** ++ * Set status to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_status_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRebootInstanceResponseType_reset_status(_ncRebootInstanceResponseType, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncRebootInstanceResponseType.h' +--- old/node/generated/adb_ncRebootInstanceResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncRebootInstanceResponseType.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,414 @@ ++ ++ ++ #ifndef ADB_NCREBOOTINSTANCERESPONSETYPE_H ++ #define ADB_NCREBOOTINSTANCERESPONSETYPE_H ++ ++ /** ++ * adb_ncRebootInstanceResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncRebootInstanceResponseType class ++ */ ++ typedef struct adb_ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncRebootInstanceResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncRebootInstanceResponseType_t object ++ */ ++ adb_ncRebootInstanceResponseType_t* AXIS2_CALL ++ adb_ncRebootInstanceResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncRebootInstanceResponseType_t object ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_free ( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRebootInstanceResponseType_get_correlationId( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_correlationId( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_reset_correlationId( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRebootInstanceResponseType_get_userId( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_userId( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_reset_userId( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_get_return( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_return( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_reset_return( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncRebootInstanceResponseType_get_statusMessage( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_statusMessage( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_reset_statusMessage( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for status. ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_get_status( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for status. ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_status axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_status( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_status); ++ ++ /** ++ * Resetter for status ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_reset_status( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_is_correlationId_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_is_userId_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_is_return_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_is_statusMessage_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_set_statusMessage_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether status is nill ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_is_status_nil( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_deserialize( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncRebootInstanceResponseType_declare_parent_namespaces( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncRebootInstanceResponseType adb_ncRebootInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param ncRebootInstanceResponseType_om_node node to serialize from ++ * @param ncRebootInstanceResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRebootInstanceResponseType_serialize( ++ adb_ncRebootInstanceResponseType_t* _ncRebootInstanceResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* ncRebootInstanceResponseType_om_node, axiom_element_t *ncRebootInstanceResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncRebootInstanceResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCREBOOTINSTANCERESPONSETYPE_H */ ++ ++ + +=== added file 'node/generated/adb_ncRebootInstanceType.c' +--- old/node/generated/adb_ncRebootInstanceType.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncRebootInstanceType.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,1720 @@ ++ ++ ++ /** ++ * adb_ncRebootInstanceType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncRebootInstanceType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncRebootInstanceType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncRebootInstanceType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_char_t* property_instanceId; ++ ++ ++ axis2_bool_t is_valid_instanceId; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_correlationId_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_userId_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_return_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_instanceId_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncRebootInstanceType_t* AXIS2_CALL ++ adb_ncRebootInstanceType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncRebootInstanceType_t *_ncRebootInstanceType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncRebootInstanceType = (adb_ncRebootInstanceType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncRebootInstanceType_t)); ++ ++ if(NULL == _ncRebootInstanceType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncRebootInstanceType, 0, sizeof(adb_ncRebootInstanceType_t)); ++ ++ _ncRebootInstanceType->property_correlationId = NULL; ++ _ncRebootInstanceType->is_valid_correlationId = AXIS2_FALSE; ++ _ncRebootInstanceType->property_userId = NULL; ++ _ncRebootInstanceType->is_valid_userId = AXIS2_FALSE; ++ _ncRebootInstanceType->is_valid_return = AXIS2_FALSE; ++ _ncRebootInstanceType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncRebootInstanceType->property_instanceId = NULL; ++ _ncRebootInstanceType->is_valid_instanceId = AXIS2_FALSE; ++ ++ ++ return _ncRebootInstanceType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_free ( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_FAILURE); ++ ++ adb_ncRebootInstanceType_reset_correlationId(_ncRebootInstanceType, env); ++ adb_ncRebootInstanceType_reset_userId(_ncRebootInstanceType, env); ++ adb_ncRebootInstanceType_reset_return(_ncRebootInstanceType, env); ++ adb_ncRebootInstanceType_reset_statusMessage(_ncRebootInstanceType, env); ++ adb_ncRebootInstanceType_reset_instanceId(_ncRebootInstanceType, env); ++ ++ ++ if(_ncRebootInstanceType) ++ { ++ AXIS2_FREE(env->allocator, _ncRebootInstanceType); ++ _ncRebootInstanceType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_deserialize( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncRebootInstanceType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRebootInstanceType_set_correlationId(_ncRebootInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRebootInstanceType_set_correlationId(_ncRebootInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRebootInstanceType_set_userId(_ncRebootInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRebootInstanceType_set_userId(_ncRebootInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncRebootInstanceType_set_return(_ncRebootInstanceType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncRebootInstanceType_set_return(_ncRebootInstanceType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRebootInstanceType_set_statusMessage(_ncRebootInstanceType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRebootInstanceType_set_instanceId(_ncRebootInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRebootInstanceType_set_instanceId(_ncRebootInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element instanceId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncRebootInstanceType_declare_parent_namespaces( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRebootInstanceType_serialize( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRebootInstanceType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncRebootInstanceType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRebootInstanceType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncRebootInstanceType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRebootInstanceType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncRebootInstanceType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRebootInstanceType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncRebootInstanceType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRebootInstanceType->is_valid_instanceId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _ncRebootInstanceType->property_instanceId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRebootInstanceType_get_correlationId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, NULL); ++ ++ ++ return _ncRebootInstanceType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_correlationId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRebootInstanceType->is_valid_correlationId && ++ arg_correlationId == _ncRebootInstanceType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRebootInstanceType_reset_correlationId(_ncRebootInstanceType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRebootInstanceType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncRebootInstanceType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRebootInstanceType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_reset_correlationId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRebootInstanceType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRebootInstanceType->property_correlationId); ++ _ncRebootInstanceType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncRebootInstanceType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_is_correlationId_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_TRUE); ++ ++ return !_ncRebootInstanceType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_correlationId_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRebootInstanceType_reset_correlationId(_ncRebootInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRebootInstanceType_get_userId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, NULL); ++ ++ ++ return _ncRebootInstanceType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_userId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRebootInstanceType->is_valid_userId && ++ arg_userId == _ncRebootInstanceType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRebootInstanceType_reset_userId(_ncRebootInstanceType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRebootInstanceType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncRebootInstanceType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRebootInstanceType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_reset_userId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRebootInstanceType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRebootInstanceType->property_userId); ++ _ncRebootInstanceType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncRebootInstanceType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_is_userId_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_TRUE); ++ ++ return !_ncRebootInstanceType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_userId_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRebootInstanceType_reset_userId(_ncRebootInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_get_return( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, (axis2_bool_t)0); ++ ++ ++ return _ncRebootInstanceType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_return( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRebootInstanceType->is_valid_return && ++ arg_return == _ncRebootInstanceType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRebootInstanceType_reset_return(_ncRebootInstanceType, env); ++ ++ _ncRebootInstanceType->property_return = arg_return; ++ _ncRebootInstanceType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_reset_return( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_FAILURE); ++ ++ ++ _ncRebootInstanceType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_is_return_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_TRUE); ++ ++ return !_ncRebootInstanceType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_return_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRebootInstanceType_reset_return(_ncRebootInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncRebootInstanceType_get_statusMessage( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, (int)0); ++ ++ ++ return _ncRebootInstanceType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_statusMessage( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRebootInstanceType->is_valid_statusMessage && ++ arg_statusMessage == _ncRebootInstanceType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRebootInstanceType_reset_statusMessage(_ncRebootInstanceType, env); ++ ++ _ncRebootInstanceType->property_statusMessage = arg_statusMessage; ++ _ncRebootInstanceType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_reset_statusMessage( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_FAILURE); ++ ++ ++ _ncRebootInstanceType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_is_statusMessage_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_TRUE); ++ ++ return !_ncRebootInstanceType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_statusMessage_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRebootInstanceType_reset_statusMessage(_ncRebootInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRebootInstanceType_get_instanceId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, NULL); ++ ++ ++ return _ncRebootInstanceType->property_instanceId; ++ } ++ ++ /** ++ * setter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_instanceId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRebootInstanceType->is_valid_instanceId && ++ arg_instanceId == _ncRebootInstanceType->property_instanceId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncRebootInstanceType_reset_instanceId(_ncRebootInstanceType, env); ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRebootInstanceType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId); ++ if(NULL == _ncRebootInstanceType->property_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRebootInstanceType->is_valid_instanceId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_reset_instanceId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRebootInstanceType->property_instanceId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRebootInstanceType->property_instanceId); ++ _ncRebootInstanceType->property_instanceId = NULL; ++ } ++ ++ ++ ++ _ncRebootInstanceType->is_valid_instanceId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_is_instanceId_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRebootInstanceType, AXIS2_TRUE); ++ ++ return !_ncRebootInstanceType->is_valid_instanceId; ++ } ++ ++ /** ++ * Set instanceId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_instanceId_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRebootInstanceType_reset_instanceId(_ncRebootInstanceType, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncRebootInstanceType.h' +--- old/node/generated/adb_ncRebootInstanceType.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncRebootInstanceType.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,414 @@ ++ ++ ++ #ifndef ADB_NCREBOOTINSTANCETYPE_H ++ #define ADB_NCREBOOTINSTANCETYPE_H ++ ++ /** ++ * adb_ncRebootInstanceType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncRebootInstanceType class ++ */ ++ typedef struct adb_ncRebootInstanceType adb_ncRebootInstanceType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncRebootInstanceType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncRebootInstanceType_t object ++ */ ++ adb_ncRebootInstanceType_t* AXIS2_CALL ++ adb_ncRebootInstanceType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncRebootInstanceType_t object ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_free ( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRebootInstanceType_get_correlationId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_correlationId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_reset_correlationId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRebootInstanceType_get_userId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_userId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_reset_userId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_get_return( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_return( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_reset_return( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncRebootInstanceType_get_statusMessage( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_statusMessage( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_reset_statusMessage( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceId. ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRebootInstanceType_get_instanceId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceId. ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_instanceId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId); ++ ++ /** ++ * Resetter for instanceId ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_reset_instanceId( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_is_correlationId_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_is_userId_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_is_return_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_is_statusMessage_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_set_statusMessage_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether instanceId is nill ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_is_instanceId_nil( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRebootInstanceType_deserialize( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncRebootInstanceType_declare_parent_namespaces( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncRebootInstanceType adb_ncRebootInstanceType_t object ++ * @param env pointer to environment struct ++ * @param ncRebootInstanceType_om_node node to serialize from ++ * @param ncRebootInstanceType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRebootInstanceType_serialize( ++ adb_ncRebootInstanceType_t* _ncRebootInstanceType, ++ const axutil_env_t *env, ++ axiom_node_t* ncRebootInstanceType_om_node, axiom_element_t *ncRebootInstanceType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncRebootInstanceType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRebootInstanceType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCREBOOTINSTANCETYPE_H */ ++ ++ + +=== added file 'node/generated/adb_ncRunInstance.c' +--- old/node/generated/adb_ncRunInstance.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncRunInstance.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncRunInstance.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncRunInstance.h" ++ ++ /* ++ * implmentation of the ncRunInstance|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncRunInstance ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncRunInstanceType_t* property_ncRunInstance; ++ ++ ++ axis2_bool_t is_valid_ncRunInstance; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncRunInstance_t* AXIS2_CALL ++ adb_ncRunInstance_create( ++ const axutil_env_t *env) ++ { ++ adb_ncRunInstance_t *_ncRunInstance = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncRunInstance = (adb_ncRunInstance_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncRunInstance_t)); ++ ++ if(NULL == _ncRunInstance) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncRunInstance, 0, sizeof(adb_ncRunInstance_t)); ++ ++ _ncRunInstance->property_ncRunInstance = NULL; ++ _ncRunInstance->is_valid_ncRunInstance = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncRunInstance", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncRunInstance->qname = qname; ++ ++ ++ return _ncRunInstance; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstance_free ( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstance, AXIS2_FAILURE); ++ ++ adb_ncRunInstance_reset_ncRunInstance(_ncRunInstance, env); ++ ++ if(_ncRunInstance->qname) ++ { ++ axutil_qname_free (_ncRunInstance->qname, env); ++ _ncRunInstance->qname = NULL; ++ } ++ ++ ++ if(_ncRunInstance) ++ { ++ AXIS2_FREE(env->allocator, _ncRunInstance); ++ _ncRunInstance = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstance_deserialize( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstance, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncRunInstance : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncRunInstance-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncRunInstance : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncRunInstance-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncRunInstance element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncRunInstance", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncRunInstanceType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncRunInstanceType_create(env); ++ ++ status = adb_ncRunInstanceType_deserialize((adb_ncRunInstanceType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncRunInstance"); ++ } ++ else ++ { ++ status = adb_ncRunInstance_set_ncRunInstance(_ncRunInstance, env, ++ (adb_ncRunInstanceType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncRunInstance "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncRunInstance missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstance_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncRunInstance_declare_parent_namespaces( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRunInstance_serialize( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstance, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncRunInstance", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstance->is_valid_ncRunInstance) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncRunInstance") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncRunInstance xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncRunInstance"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncRunInstance"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncRunInstance element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncRunInstance", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncRunInstanceType_serialize(_ncRunInstance->property_ncRunInstance, ++ env, current_node, parent_element, ++ adb_ncRunInstanceType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncRunInstance. ++ */ ++ adb_ncRunInstanceType_t* AXIS2_CALL ++ adb_ncRunInstance_get_ncRunInstance( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstance, NULL); ++ ++ ++ return _ncRunInstance->property_ncRunInstance; ++ } ++ ++ /** ++ * setter for ncRunInstance ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstance_set_ncRunInstance( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env, ++ adb_ncRunInstanceType_t* arg_ncRunInstance) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstance, AXIS2_FAILURE); ++ ++ if(_ncRunInstance->is_valid_ncRunInstance && ++ arg_ncRunInstance == _ncRunInstance->property_ncRunInstance) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstance_reset_ncRunInstance(_ncRunInstance, env); ++ ++ ++ if(NULL == arg_ncRunInstance) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstance->property_ncRunInstance = arg_ncRunInstance; ++ _ncRunInstance->is_valid_ncRunInstance = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncRunInstance ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstance_reset_ncRunInstance( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstance, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstance->property_ncRunInstance != NULL) ++ { ++ ++ ++ adb_ncRunInstanceType_free(_ncRunInstance->property_ncRunInstance, env); ++ _ncRunInstance->property_ncRunInstance = NULL; ++ } ++ ++ ++ ++ _ncRunInstance->is_valid_ncRunInstance = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncRunInstance is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstance_is_ncRunInstance_nil( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstance, AXIS2_TRUE); ++ ++ return !_ncRunInstance->is_valid_ncRunInstance; ++ } ++ ++ /** ++ * Set ncRunInstance to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstance_set_ncRunInstance_nil( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstance_reset_ncRunInstance(_ncRunInstance, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncRunInstance.h' +--- old/node/generated/adb_ncRunInstance.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncRunInstance.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCRUNINSTANCE_H ++ #define ADB_NCRUNINSTANCE_H ++ ++ /** ++ * adb_ncRunInstance.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncRunInstance class ++ */ ++ typedef struct adb_ncRunInstance adb_ncRunInstance_t; ++ ++ ++ #include "adb_ncRunInstanceType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncRunInstance_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncRunInstance_t object ++ */ ++ adb_ncRunInstance_t* AXIS2_CALL ++ adb_ncRunInstance_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncRunInstance_t object ++ * @param _ncRunInstance adb_ncRunInstance_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstance_free ( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncRunInstance. ++ * @param _ncRunInstance adb_ncRunInstance_t object ++ * @param env pointer to environment struct ++ * @return adb_ncRunInstanceType_t* ++ */ ++ adb_ncRunInstanceType_t* AXIS2_CALL ++ adb_ncRunInstance_get_ncRunInstance( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncRunInstance. ++ * @param _ncRunInstance adb_ncRunInstance_t object ++ * @param env pointer to environment struct ++ * @param arg_ncRunInstance adb_ncRunInstanceType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstance_set_ncRunInstance( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env, ++ adb_ncRunInstanceType_t* arg_ncRunInstance); ++ ++ /** ++ * Resetter for ncRunInstance ++ * @param _ncRunInstance adb_ncRunInstance_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstance_reset_ncRunInstance( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncRunInstance is nill ++ * @param _ncRunInstance adb_ncRunInstance_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstance_is_ncRunInstance_nil( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncRunInstance to nill (currently the same as reset) ++ * @param _ncRunInstance adb_ncRunInstance_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstance_set_ncRunInstance_nil( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncRunInstance adb_ncRunInstance_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstance_deserialize( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncRunInstance adb_ncRunInstance_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncRunInstance_declare_parent_namespaces( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncRunInstance adb_ncRunInstance_t object ++ * @param env pointer to environment struct ++ * @param ncRunInstance_om_node node to serialize from ++ * @param ncRunInstance_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRunInstance_serialize( ++ adb_ncRunInstance_t* _ncRunInstance, ++ const axutil_env_t *env, ++ axiom_node_t* ncRunInstance_om_node, axiom_element_t *ncRunInstance_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncRunInstance is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstance_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCRUNINSTANCE_H */ ++ ++ + +=== added file 'node/generated/adb_ncRunInstanceResponse.c' +--- old/node/generated/adb_ncRunInstanceResponse.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncRunInstanceResponse.c 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncRunInstanceResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncRunInstanceResponse.h" ++ ++ /* ++ * implmentation of the ncRunInstanceResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncRunInstanceResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncRunInstanceResponseType_t* property_ncRunInstanceResponse; ++ ++ ++ axis2_bool_t is_valid_ncRunInstanceResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncRunInstanceResponse_t* AXIS2_CALL ++ adb_ncRunInstanceResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_ncRunInstanceResponse_t *_ncRunInstanceResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncRunInstanceResponse = (adb_ncRunInstanceResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncRunInstanceResponse_t)); ++ ++ if(NULL == _ncRunInstanceResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncRunInstanceResponse, 0, sizeof(adb_ncRunInstanceResponse_t)); ++ ++ _ncRunInstanceResponse->property_ncRunInstanceResponse = NULL; ++ _ncRunInstanceResponse->is_valid_ncRunInstanceResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncRunInstanceResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncRunInstanceResponse->qname = qname; ++ ++ ++ return _ncRunInstanceResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponse_free ( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponse, AXIS2_FAILURE); ++ ++ adb_ncRunInstanceResponse_reset_ncRunInstanceResponse(_ncRunInstanceResponse, env); ++ ++ if(_ncRunInstanceResponse->qname) ++ { ++ axutil_qname_free (_ncRunInstanceResponse->qname, env); ++ _ncRunInstanceResponse->qname = NULL; ++ } ++ ++ ++ if(_ncRunInstanceResponse) ++ { ++ AXIS2_FREE(env->allocator, _ncRunInstanceResponse); ++ _ncRunInstanceResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponse_deserialize( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncRunInstanceResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncRunInstanceResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncRunInstanceResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncRunInstanceResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncRunInstanceResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncRunInstanceResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncRunInstanceResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncRunInstanceResponseType_create(env); ++ ++ status = adb_ncRunInstanceResponseType_deserialize((adb_ncRunInstanceResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncRunInstanceResponse"); ++ } ++ else ++ { ++ status = adb_ncRunInstanceResponse_set_ncRunInstanceResponse(_ncRunInstanceResponse, env, ++ (adb_ncRunInstanceResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncRunInstanceResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncRunInstanceResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncRunInstanceResponse_declare_parent_namespaces( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRunInstanceResponse_serialize( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncRunInstanceResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceResponse->is_valid_ncRunInstanceResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncRunInstanceResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncRunInstanceResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncRunInstanceResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncRunInstanceResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncRunInstanceResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncRunInstanceResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncRunInstanceResponseType_serialize(_ncRunInstanceResponse->property_ncRunInstanceResponse, ++ env, current_node, parent_element, ++ adb_ncRunInstanceResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncRunInstanceResponse. ++ */ ++ adb_ncRunInstanceResponseType_t* AXIS2_CALL ++ adb_ncRunInstanceResponse_get_ncRunInstanceResponse( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponse, NULL); ++ ++ ++ return _ncRunInstanceResponse->property_ncRunInstanceResponse; ++ } ++ ++ /** ++ * setter for ncRunInstanceResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponse_set_ncRunInstanceResponse( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env, ++ adb_ncRunInstanceResponseType_t* arg_ncRunInstanceResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponse, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceResponse->is_valid_ncRunInstanceResponse && ++ arg_ncRunInstanceResponse == _ncRunInstanceResponse->property_ncRunInstanceResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceResponse_reset_ncRunInstanceResponse(_ncRunInstanceResponse, env); ++ ++ ++ if(NULL == arg_ncRunInstanceResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceResponse->property_ncRunInstanceResponse = arg_ncRunInstanceResponse; ++ _ncRunInstanceResponse->is_valid_ncRunInstanceResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncRunInstanceResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponse_reset_ncRunInstanceResponse( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceResponse->property_ncRunInstanceResponse != NULL) ++ { ++ ++ ++ adb_ncRunInstanceResponseType_free(_ncRunInstanceResponse->property_ncRunInstanceResponse, env); ++ _ncRunInstanceResponse->property_ncRunInstanceResponse = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceResponse->is_valid_ncRunInstanceResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncRunInstanceResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponse_is_ncRunInstanceResponse_nil( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponse, AXIS2_TRUE); ++ ++ return !_ncRunInstanceResponse->is_valid_ncRunInstanceResponse; ++ } ++ ++ /** ++ * Set ncRunInstanceResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponse_set_ncRunInstanceResponse_nil( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceResponse_reset_ncRunInstanceResponse(_ncRunInstanceResponse, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncRunInstanceResponse.h' +--- old/node/generated/adb_ncRunInstanceResponse.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncRunInstanceResponse.h 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCRUNINSTANCERESPONSE_H ++ #define ADB_NCRUNINSTANCERESPONSE_H ++ ++ /** ++ * adb_ncRunInstanceResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncRunInstanceResponse class ++ */ ++ typedef struct adb_ncRunInstanceResponse adb_ncRunInstanceResponse_t; ++ ++ ++ #include "adb_ncRunInstanceResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncRunInstanceResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncRunInstanceResponse_t object ++ */ ++ adb_ncRunInstanceResponse_t* AXIS2_CALL ++ adb_ncRunInstanceResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncRunInstanceResponse_t object ++ * @param _ncRunInstanceResponse adb_ncRunInstanceResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponse_free ( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncRunInstanceResponse. ++ * @param _ncRunInstanceResponse adb_ncRunInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_ncRunInstanceResponseType_t* ++ */ ++ adb_ncRunInstanceResponseType_t* AXIS2_CALL ++ adb_ncRunInstanceResponse_get_ncRunInstanceResponse( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncRunInstanceResponse. ++ * @param _ncRunInstanceResponse adb_ncRunInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_ncRunInstanceResponse adb_ncRunInstanceResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponse_set_ncRunInstanceResponse( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env, ++ adb_ncRunInstanceResponseType_t* arg_ncRunInstanceResponse); ++ ++ /** ++ * Resetter for ncRunInstanceResponse ++ * @param _ncRunInstanceResponse adb_ncRunInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponse_reset_ncRunInstanceResponse( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncRunInstanceResponse is nill ++ * @param _ncRunInstanceResponse adb_ncRunInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponse_is_ncRunInstanceResponse_nil( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncRunInstanceResponse to nill (currently the same as reset) ++ * @param _ncRunInstanceResponse adb_ncRunInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponse_set_ncRunInstanceResponse_nil( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncRunInstanceResponse adb_ncRunInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponse_deserialize( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncRunInstanceResponse adb_ncRunInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncRunInstanceResponse_declare_parent_namespaces( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncRunInstanceResponse adb_ncRunInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @param ncRunInstanceResponse_om_node node to serialize from ++ * @param ncRunInstanceResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRunInstanceResponse_serialize( ++ adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, ++ const axutil_env_t *env, ++ axiom_node_t* ncRunInstanceResponse_om_node, axiom_element_t *ncRunInstanceResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncRunInstanceResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCRUNINSTANCERESPONSE_H */ ++ ++ + +=== added file 'node/generated/adb_ncRunInstanceResponseType.c' +--- old/node/generated/adb_ncRunInstanceResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncRunInstanceResponseType.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,1642 @@ ++ ++ ++ /** ++ * adb_ncRunInstanceResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncRunInstanceResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncRunInstanceResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncRunInstanceResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ adb_instanceType_t* property_instance; ++ ++ ++ axis2_bool_t is_valid_instance; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_correlationId_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_userId_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_return_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_instance_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncRunInstanceResponseType_t* AXIS2_CALL ++ adb_ncRunInstanceResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncRunInstanceResponseType_t *_ncRunInstanceResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncRunInstanceResponseType = (adb_ncRunInstanceResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncRunInstanceResponseType_t)); ++ ++ if(NULL == _ncRunInstanceResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncRunInstanceResponseType, 0, sizeof(adb_ncRunInstanceResponseType_t)); ++ ++ _ncRunInstanceResponseType->property_correlationId = NULL; ++ _ncRunInstanceResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _ncRunInstanceResponseType->property_userId = NULL; ++ _ncRunInstanceResponseType->is_valid_userId = AXIS2_FALSE; ++ _ncRunInstanceResponseType->is_valid_return = AXIS2_FALSE; ++ _ncRunInstanceResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncRunInstanceResponseType->property_instance = NULL; ++ _ncRunInstanceResponseType->is_valid_instance = AXIS2_FALSE; ++ ++ ++ return _ncRunInstanceResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_free ( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_FAILURE); ++ ++ adb_ncRunInstanceResponseType_reset_correlationId(_ncRunInstanceResponseType, env); ++ adb_ncRunInstanceResponseType_reset_userId(_ncRunInstanceResponseType, env); ++ adb_ncRunInstanceResponseType_reset_return(_ncRunInstanceResponseType, env); ++ adb_ncRunInstanceResponseType_reset_statusMessage(_ncRunInstanceResponseType, env); ++ adb_ncRunInstanceResponseType_reset_instance(_ncRunInstanceResponseType, env); ++ ++ ++ if(_ncRunInstanceResponseType) ++ { ++ AXIS2_FREE(env->allocator, _ncRunInstanceResponseType); ++ _ncRunInstanceResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_deserialize( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncRunInstanceResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceResponseType_set_correlationId(_ncRunInstanceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceResponseType_set_correlationId(_ncRunInstanceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceResponseType_set_userId(_ncRunInstanceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceResponseType_set_userId(_ncRunInstanceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncRunInstanceResponseType_set_return(_ncRunInstanceResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncRunInstanceResponseType_set_return(_ncRunInstanceResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceResponseType_set_statusMessage(_ncRunInstanceResponseType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instance element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instance", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_instanceType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_instanceType_create(env); ++ ++ status = adb_instanceType_deserialize((adb_instanceType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element instance"); ++ } ++ else ++ { ++ status = adb_ncRunInstanceResponseType_set_instance(_ncRunInstanceResponseType, env, ++ (adb_instanceType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instance "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncRunInstanceResponseType_declare_parent_namespaces( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRunInstanceResponseType_serialize( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t text_value_5[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncRunInstanceResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncRunInstanceResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncRunInstanceResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncRunInstanceResponseType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceResponseType->is_valid_instance) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instance"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instance"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instance element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstance", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ if(!adb_instanceType_is_particle()) ++ { ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ } ++ ++ adb_instanceType_serialize(_ncRunInstanceResponseType->property_instance, ++ env, current_node, parent_element, ++ adb_instanceType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index); ++ ++ if(!adb_instanceType_is_particle()) ++ { ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceResponseType_get_correlationId( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, NULL); ++ ++ ++ return _ncRunInstanceResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_correlationId( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceResponseType->is_valid_correlationId && ++ arg_correlationId == _ncRunInstanceResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceResponseType_reset_correlationId(_ncRunInstanceResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncRunInstanceResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_reset_correlationId( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceResponseType->property_correlationId); ++ _ncRunInstanceResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_is_correlationId_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_correlationId_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceResponseType_reset_correlationId(_ncRunInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceResponseType_get_userId( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, NULL); ++ ++ ++ return _ncRunInstanceResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_userId( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceResponseType->is_valid_userId && ++ arg_userId == _ncRunInstanceResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceResponseType_reset_userId(_ncRunInstanceResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncRunInstanceResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_reset_userId( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceResponseType->property_userId); ++ _ncRunInstanceResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_is_userId_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_userId_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceResponseType_reset_userId(_ncRunInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_get_return( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, (axis2_bool_t)0); ++ ++ ++ return _ncRunInstanceResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_return( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceResponseType->is_valid_return && ++ arg_return == _ncRunInstanceResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceResponseType_reset_return(_ncRunInstanceResponseType, env); ++ ++ _ncRunInstanceResponseType->property_return = arg_return; ++ _ncRunInstanceResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_reset_return( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncRunInstanceResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_is_return_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_return_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceResponseType_reset_return(_ncRunInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncRunInstanceResponseType_get_statusMessage( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, (int)0); ++ ++ ++ return _ncRunInstanceResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_statusMessage( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceResponseType->is_valid_statusMessage && ++ arg_statusMessage == _ncRunInstanceResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceResponseType_reset_statusMessage(_ncRunInstanceResponseType, env); ++ ++ _ncRunInstanceResponseType->property_statusMessage = arg_statusMessage; ++ _ncRunInstanceResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_reset_statusMessage( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncRunInstanceResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_is_statusMessage_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_statusMessage_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceResponseType_reset_statusMessage(_ncRunInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instance. ++ */ ++ adb_instanceType_t* AXIS2_CALL ++ adb_ncRunInstanceResponseType_get_instance( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, NULL); ++ ++ ++ return _ncRunInstanceResponseType->property_instance; ++ } ++ ++ /** ++ * setter for instance ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_instance( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ adb_instanceType_t* arg_instance) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceResponseType->is_valid_instance && ++ arg_instance == _ncRunInstanceResponseType->property_instance) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceResponseType_reset_instance(_ncRunInstanceResponseType, env); ++ ++ ++ if(NULL == arg_instance) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceResponseType->property_instance = arg_instance; ++ _ncRunInstanceResponseType->is_valid_instance = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instance ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_reset_instance( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceResponseType->property_instance != NULL) ++ { ++ ++ ++ adb_instanceType_free(_ncRunInstanceResponseType->property_instance, env); ++ _ncRunInstanceResponseType->property_instance = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceResponseType->is_valid_instance = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instance is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_is_instance_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceResponseType->is_valid_instance; ++ } ++ ++ /** ++ * Set instance to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_instance_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceResponseType_reset_instance(_ncRunInstanceResponseType, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncRunInstanceResponseType.h' +--- old/node/generated/adb_ncRunInstanceResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncRunInstanceResponseType.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,416 @@ ++ ++ ++ #ifndef ADB_NCRUNINSTANCERESPONSETYPE_H ++ #define ADB_NCRUNINSTANCERESPONSETYPE_H ++ ++ /** ++ * adb_ncRunInstanceResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncRunInstanceResponseType class ++ */ ++ typedef struct adb_ncRunInstanceResponseType adb_ncRunInstanceResponseType_t; ++ ++ ++ #include "adb_instanceType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncRunInstanceResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncRunInstanceResponseType_t object ++ */ ++ adb_ncRunInstanceResponseType_t* AXIS2_CALL ++ adb_ncRunInstanceResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncRunInstanceResponseType_t object ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_free ( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceResponseType_get_correlationId( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_correlationId( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_reset_correlationId( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceResponseType_get_userId( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_userId( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_reset_userId( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_get_return( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_return( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_reset_return( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncRunInstanceResponseType_get_statusMessage( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_statusMessage( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_reset_statusMessage( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instance. ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return adb_instanceType_t* ++ */ ++ adb_instanceType_t* AXIS2_CALL ++ adb_ncRunInstanceResponseType_get_instance( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instance. ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_instance adb_instanceType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_instance( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ adb_instanceType_t* arg_instance); ++ ++ /** ++ * Resetter for instance ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_reset_instance( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_is_correlationId_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_is_userId_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_is_return_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_is_statusMessage_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_set_statusMessage_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether instance is nill ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_is_instance_nil( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_deserialize( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncRunInstanceResponseType_declare_parent_namespaces( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncRunInstanceResponseType adb_ncRunInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param ncRunInstanceResponseType_om_node node to serialize from ++ * @param ncRunInstanceResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRunInstanceResponseType_serialize( ++ adb_ncRunInstanceResponseType_t* _ncRunInstanceResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* ncRunInstanceResponseType_om_node, axiom_element_t *ncRunInstanceResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncRunInstanceResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCRUNINSTANCERESPONSETYPE_H */ ++ ++ + +=== added file 'node/generated/adb_ncRunInstanceType.c' +--- old/node/generated/adb_ncRunInstanceType.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncRunInstanceType.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,7197 @@ ++ ++ ++ /** ++ * adb_ncRunInstanceType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncRunInstanceType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncRunInstanceType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncRunInstanceType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_char_t* property_imageId; ++ ++ ++ axis2_bool_t is_valid_imageId; ++ ++ ++ axis2_char_t* property_kernelId; ++ ++ ++ axis2_bool_t is_valid_kernelId; ++ ++ ++ axis2_char_t* property_ramdiskId; ++ ++ ++ axis2_bool_t is_valid_ramdiskId; ++ ++ ++ axis2_char_t* property_imageURL; ++ ++ ++ axis2_bool_t is_valid_imageURL; ++ ++ ++ axis2_char_t* property_kernelURL; ++ ++ ++ axis2_bool_t is_valid_kernelURL; ++ ++ ++ axis2_char_t* property_ramdiskURL; ++ ++ ++ axis2_bool_t is_valid_ramdiskURL; ++ ++ ++ axis2_char_t* property_instanceId; ++ ++ ++ axis2_bool_t is_valid_instanceId; ++ ++ ++ adb_virtualMachineType_t* property_instanceType; ++ ++ ++ axis2_bool_t is_valid_instanceType; ++ ++ ++ axis2_char_t* property_keyName; ++ ++ ++ axis2_bool_t is_valid_keyName; ++ ++ ++ axis2_char_t* property_publicMacAddress; ++ ++ ++ axis2_bool_t is_valid_publicMacAddress; ++ ++ ++ axis2_char_t* property_privateMacAddress; ++ ++ ++ axis2_bool_t is_valid_privateMacAddress; ++ ++ ++ axis2_char_t* property_reservationId; ++ ++ ++ axis2_bool_t is_valid_reservationId; ++ ++ ++ int property_vlan; ++ ++ ++ axis2_bool_t is_valid_vlan; ++ ++ ++ axis2_char_t* property_userData; ++ ++ ++ axis2_bool_t is_valid_userData; ++ ++ ++ axis2_char_t* property_launchIndex; ++ ++ ++ axis2_bool_t is_valid_launchIndex; ++ ++ ++ axutil_array_list_t* property_groupNames; ++ ++ ++ axis2_bool_t is_valid_groupNames; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_correlationId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_userId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_return_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_imageId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_kernelId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_ramdiskId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_imageURL_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_kernelURL_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_ramdiskURL_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_instanceId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_instanceType_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_keyName_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_publicMacAddress_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_privateMacAddress_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_reservationId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_vlan_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_userData_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_launchIndex_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_groupNames_nil_at( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_groupNames_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncRunInstanceType_t* AXIS2_CALL ++ adb_ncRunInstanceType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncRunInstanceType_t *_ncRunInstanceType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncRunInstanceType = (adb_ncRunInstanceType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncRunInstanceType_t)); ++ ++ if(NULL == _ncRunInstanceType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncRunInstanceType, 0, sizeof(adb_ncRunInstanceType_t)); ++ ++ _ncRunInstanceType->property_correlationId = NULL; ++ _ncRunInstanceType->is_valid_correlationId = AXIS2_FALSE; ++ _ncRunInstanceType->property_userId = NULL; ++ _ncRunInstanceType->is_valid_userId = AXIS2_FALSE; ++ _ncRunInstanceType->is_valid_return = AXIS2_FALSE; ++ _ncRunInstanceType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncRunInstanceType->property_imageId = NULL; ++ _ncRunInstanceType->is_valid_imageId = AXIS2_FALSE; ++ _ncRunInstanceType->property_kernelId = NULL; ++ _ncRunInstanceType->is_valid_kernelId = AXIS2_FALSE; ++ _ncRunInstanceType->property_ramdiskId = NULL; ++ _ncRunInstanceType->is_valid_ramdiskId = AXIS2_FALSE; ++ _ncRunInstanceType->property_imageURL = NULL; ++ _ncRunInstanceType->is_valid_imageURL = AXIS2_FALSE; ++ _ncRunInstanceType->property_kernelURL = NULL; ++ _ncRunInstanceType->is_valid_kernelURL = AXIS2_FALSE; ++ _ncRunInstanceType->property_ramdiskURL = NULL; ++ _ncRunInstanceType->is_valid_ramdiskURL = AXIS2_FALSE; ++ _ncRunInstanceType->property_instanceId = NULL; ++ _ncRunInstanceType->is_valid_instanceId = AXIS2_FALSE; ++ _ncRunInstanceType->property_instanceType = NULL; ++ _ncRunInstanceType->is_valid_instanceType = AXIS2_FALSE; ++ _ncRunInstanceType->property_keyName = NULL; ++ _ncRunInstanceType->is_valid_keyName = AXIS2_FALSE; ++ _ncRunInstanceType->property_publicMacAddress = NULL; ++ _ncRunInstanceType->is_valid_publicMacAddress = AXIS2_FALSE; ++ _ncRunInstanceType->property_privateMacAddress = NULL; ++ _ncRunInstanceType->is_valid_privateMacAddress = AXIS2_FALSE; ++ _ncRunInstanceType->property_reservationId = NULL; ++ _ncRunInstanceType->is_valid_reservationId = AXIS2_FALSE; ++ _ncRunInstanceType->is_valid_vlan = AXIS2_FALSE; ++ _ncRunInstanceType->property_userData = NULL; ++ _ncRunInstanceType->is_valid_userData = AXIS2_FALSE; ++ _ncRunInstanceType->property_launchIndex = NULL; ++ _ncRunInstanceType->is_valid_launchIndex = AXIS2_FALSE; ++ _ncRunInstanceType->property_groupNames = NULL; ++ _ncRunInstanceType->is_valid_groupNames = AXIS2_FALSE; ++ ++ ++ return _ncRunInstanceType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_free ( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ adb_ncRunInstanceType_reset_correlationId(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_userId(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_return(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_statusMessage(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_imageId(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_kernelId(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_ramdiskId(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_imageURL(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_kernelURL(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_ramdiskURL(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_instanceId(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_instanceType(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_keyName(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_publicMacAddress(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_privateMacAddress(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_reservationId(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_vlan(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_userData(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_launchIndex(_ncRunInstanceType, env); ++ adb_ncRunInstanceType_reset_groupNames(_ncRunInstanceType, env); ++ ++ ++ if(_ncRunInstanceType) ++ { ++ AXIS2_FREE(env->allocator, _ncRunInstanceType); ++ _ncRunInstanceType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_deserialize( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncRunInstanceType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_correlationId(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_correlationId(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_userId(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_userId(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncRunInstanceType_set_return(_ncRunInstanceType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncRunInstanceType_set_return(_ncRunInstanceType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_statusMessage(_ncRunInstanceType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building imageId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "imageId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_imageId(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element imageId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_imageId(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for imageId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element imageId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building kernelId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "kernelId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_kernelId(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element kernelId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_kernelId(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for kernelId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element kernelId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building ramdiskId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "ramdiskId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_ramdiskId(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element ramdiskId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_ramdiskId(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ramdiskId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building imageURL element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "imageURL", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_imageURL(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element imageURL"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_imageURL(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for imageURL "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element imageURL missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building kernelURL element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "kernelURL", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_kernelURL(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element kernelURL"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_kernelURL(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for kernelURL "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element kernelURL missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building ramdiskURL element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "ramdiskURL", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_ramdiskURL(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element ramdiskURL"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_ramdiskURL(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ramdiskURL "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_instanceId(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_instanceId(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element instanceId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceType element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceType", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_virtualMachineType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_virtualMachineType_create(env); ++ ++ status = adb_virtualMachineType_deserialize((adb_virtualMachineType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element instanceType"); ++ } ++ else ++ { ++ status = adb_ncRunInstanceType_set_instanceType(_ncRunInstanceType, env, ++ (adb_virtualMachineType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceType "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element instanceType missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building keyName element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "keyName", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_keyName(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element keyName"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_keyName(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for keyName "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element keyName missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building publicMacAddress element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "publicMacAddress", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_publicMacAddress(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element publicMacAddress"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_publicMacAddress(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for publicMacAddress "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element publicMacAddress missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building privateMacAddress element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "privateMacAddress", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_privateMacAddress(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element privateMacAddress"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_privateMacAddress(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for privateMacAddress "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element privateMacAddress missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building reservationId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "reservationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_reservationId(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element reservationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_reservationId(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for reservationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element reservationId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building vlan element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "vlan", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_vlan(_ncRunInstanceType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element vlan"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for vlan "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element vlan missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userData element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userData", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_userData(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userData"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_userData(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userData "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building launchIndex element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "launchIndex", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncRunInstanceType_set_launchIndex(_ncRunInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element launchIndex"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncRunInstanceType_set_launchIndex(_ncRunInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for launchIndex "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building groupNames array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building groupNames element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "groupNames", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value)); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element groupNames"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, "")); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for groupNames "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "groupNames (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_ncRunInstanceType_set_groupNames(_ncRunInstanceType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncRunInstanceType_declare_parent_namespaces( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRunInstanceType_serialize( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *text_value_6; ++ axis2_char_t *text_value_6_temp; ++ ++ axis2_char_t *text_value_7; ++ axis2_char_t *text_value_7_temp; ++ ++ axis2_char_t *text_value_8; ++ axis2_char_t *text_value_8_temp; ++ ++ axis2_char_t *text_value_9; ++ axis2_char_t *text_value_9_temp; ++ ++ axis2_char_t *text_value_10; ++ axis2_char_t *text_value_10_temp; ++ ++ axis2_char_t *text_value_11; ++ axis2_char_t *text_value_11_temp; ++ ++ axis2_char_t text_value_12[64]; ++ ++ axis2_char_t *text_value_13; ++ axis2_char_t *text_value_13_temp; ++ ++ axis2_char_t *text_value_14; ++ axis2_char_t *text_value_14_temp; ++ ++ axis2_char_t *text_value_15; ++ axis2_char_t *text_value_15_temp; ++ ++ axis2_char_t *text_value_16; ++ axis2_char_t *text_value_16_temp; ++ ++ axis2_char_t text_value_17[64]; ++ ++ axis2_char_t *text_value_18; ++ axis2_char_t *text_value_18_temp; ++ ++ axis2_char_t *text_value_19; ++ axis2_char_t *text_value_19_temp; ++ ++ axis2_char_t *text_value_20; ++ axis2_char_t *text_value_20_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncRunInstanceType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncRunInstanceType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncRunInstanceType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncRunInstanceType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_imageId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property imageId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("imageId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("imageId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing imageId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%simageId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _ncRunInstanceType->property_imageId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_kernelId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property kernelId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("kernelId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("kernelId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing kernelId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%skernelId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_6 = _ncRunInstanceType->property_kernelId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE); ++ if (text_value_6_temp) ++ { ++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp)); ++ AXIS2_FREE(env->allocator, text_value_6_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_ramdiskId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ramdiskId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ramdiskId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ramdiskId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sramdiskId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_7 = _ncRunInstanceType->property_ramdiskId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE); ++ if (text_value_7_temp) ++ { ++ axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp)); ++ AXIS2_FREE(env->allocator, text_value_7_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_imageURL) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property imageURL"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("imageURL"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("imageURL"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing imageURL element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%simageURL>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_8 = _ncRunInstanceType->property_imageURL; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE); ++ if (text_value_8_temp) ++ { ++ axutil_stream_write(stream, env, text_value_8_temp, axutil_strlen(text_value_8_temp)); ++ AXIS2_FREE(env->allocator, text_value_8_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_kernelURL) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property kernelURL"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("kernelURL"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("kernelURL"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing kernelURL element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%skernelURL>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_9 = _ncRunInstanceType->property_kernelURL; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_9_temp = axutil_xml_quote_string(env, text_value_9, AXIS2_TRUE); ++ if (text_value_9_temp) ++ { ++ axutil_stream_write(stream, env, text_value_9_temp, axutil_strlen(text_value_9_temp)); ++ AXIS2_FREE(env->allocator, text_value_9_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_9, axutil_strlen(text_value_9)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_ramdiskURL) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ramdiskURL"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ramdiskURL"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ramdiskURL element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sramdiskURL>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_10 = _ncRunInstanceType->property_ramdiskURL; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_10_temp = axutil_xml_quote_string(env, text_value_10, AXIS2_TRUE); ++ if (text_value_10_temp) ++ { ++ axutil_stream_write(stream, env, text_value_10_temp, axutil_strlen(text_value_10_temp)); ++ AXIS2_FREE(env->allocator, text_value_10_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_10, axutil_strlen(text_value_10)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_instanceId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_11 = _ncRunInstanceType->property_instanceId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_11_temp = axutil_xml_quote_string(env, text_value_11, AXIS2_TRUE); ++ if (text_value_11_temp) ++ { ++ axutil_stream_write(stream, env, text_value_11_temp, axutil_strlen(text_value_11_temp)); ++ AXIS2_FREE(env->allocator, text_value_11_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_11, axutil_strlen(text_value_11)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_instanceType) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceType"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceType"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceType"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceType element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceType", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ if(!adb_virtualMachineType_is_particle()) ++ { ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ } ++ ++ adb_virtualMachineType_serialize(_ncRunInstanceType->property_instanceType, ++ env, current_node, parent_element, ++ adb_virtualMachineType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index); ++ ++ if(!adb_virtualMachineType_is_particle()) ++ { ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_keyName) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property keyName"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("keyName"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("keyName"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing keyName element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%skeyName>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_13 = _ncRunInstanceType->property_keyName; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_13_temp = axutil_xml_quote_string(env, text_value_13, AXIS2_TRUE); ++ if (text_value_13_temp) ++ { ++ axutil_stream_write(stream, env, text_value_13_temp, axutil_strlen(text_value_13_temp)); ++ AXIS2_FREE(env->allocator, text_value_13_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_13, axutil_strlen(text_value_13)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_publicMacAddress) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property publicMacAddress"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("publicMacAddress"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("publicMacAddress"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing publicMacAddress element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%spublicMacAddress>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_14 = _ncRunInstanceType->property_publicMacAddress; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_14_temp = axutil_xml_quote_string(env, text_value_14, AXIS2_TRUE); ++ if (text_value_14_temp) ++ { ++ axutil_stream_write(stream, env, text_value_14_temp, axutil_strlen(text_value_14_temp)); ++ AXIS2_FREE(env->allocator, text_value_14_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_14, axutil_strlen(text_value_14)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_privateMacAddress) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property privateMacAddress"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("privateMacAddress"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("privateMacAddress"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing privateMacAddress element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sprivateMacAddress>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_15 = _ncRunInstanceType->property_privateMacAddress; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_15_temp = axutil_xml_quote_string(env, text_value_15, AXIS2_TRUE); ++ if (text_value_15_temp) ++ { ++ axutil_stream_write(stream, env, text_value_15_temp, axutil_strlen(text_value_15_temp)); ++ AXIS2_FREE(env->allocator, text_value_15_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_15, axutil_strlen(text_value_15)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_reservationId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property reservationId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("reservationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("reservationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing reservationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreservationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_16 = _ncRunInstanceType->property_reservationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_16_temp = axutil_xml_quote_string(env, text_value_16, AXIS2_TRUE); ++ if (text_value_16_temp) ++ { ++ axutil_stream_write(stream, env, text_value_16_temp, axutil_strlen(text_value_16_temp)); ++ AXIS2_FREE(env->allocator, text_value_16_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_16, axutil_strlen(text_value_16)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_vlan) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property vlan"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("vlan"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("vlan"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing vlan element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%svlan>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_17, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncRunInstanceType->property_vlan); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_17, axutil_strlen(text_value_17)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_userData) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userData"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userData"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userData element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserData>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_18 = _ncRunInstanceType->property_userData; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_18_temp = axutil_xml_quote_string(env, text_value_18, AXIS2_TRUE); ++ if (text_value_18_temp) ++ { ++ axutil_stream_write(stream, env, text_value_18_temp, axutil_strlen(text_value_18_temp)); ++ AXIS2_FREE(env->allocator, text_value_18_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_18, axutil_strlen(text_value_18)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_launchIndex) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("launchIndex"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("launchIndex"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing launchIndex element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%slaunchIndex>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_19 = _ncRunInstanceType->property_launchIndex; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_19_temp = axutil_xml_quote_string(env, text_value_19, AXIS2_TRUE); ++ if (text_value_19_temp) ++ { ++ axutil_stream_write(stream, env, text_value_19_temp, axutil_strlen(text_value_19_temp)); ++ AXIS2_FREE(env->allocator, text_value_19_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_19, axutil_strlen(text_value_19)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncRunInstanceType->is_valid_groupNames) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("groupNames"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("groupNames"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing groupNames array ++ */ ++ if (_ncRunInstanceType->property_groupNames != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%sgroupNames>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_ncRunInstanceType->property_groupNames, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing groupNames element ++ */ ++ ++ ++ ++ text_value_20 = (axis2_char_t*)element; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_20_temp = axutil_xml_quote_string(env, text_value_20, AXIS2_TRUE); ++ if (text_value_20_temp) ++ { ++ axutil_stream_write(stream, env, text_value_20_temp, axutil_strlen(text_value_20_temp)); ++ AXIS2_FREE(env->allocator, text_value_20_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_20, axutil_strlen(text_value_20)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_correlationId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_correlationId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_correlationId && ++ arg_correlationId == _ncRunInstanceType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceType_reset_correlationId(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncRunInstanceType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_correlationId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_correlationId); ++ _ncRunInstanceType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_correlationId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_correlationId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_correlationId(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_userId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_userId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_userId && ++ arg_userId == _ncRunInstanceType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceType_reset_userId(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncRunInstanceType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_userId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_userId); ++ _ncRunInstanceType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_userId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_userId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_userId(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_get_return( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, (axis2_bool_t)0); ++ ++ ++ return _ncRunInstanceType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_return( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_return && ++ arg_return == _ncRunInstanceType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceType_reset_return(_ncRunInstanceType, env); ++ ++ _ncRunInstanceType->property_return = arg_return; ++ _ncRunInstanceType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_return( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ _ncRunInstanceType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_return_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_return_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_return(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncRunInstanceType_get_statusMessage( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, (int)0); ++ ++ ++ return _ncRunInstanceType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_statusMessage( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_statusMessage && ++ arg_statusMessage == _ncRunInstanceType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceType_reset_statusMessage(_ncRunInstanceType, env); ++ ++ _ncRunInstanceType->property_statusMessage = arg_statusMessage; ++ _ncRunInstanceType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_statusMessage( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ _ncRunInstanceType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_statusMessage_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_statusMessage_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_statusMessage(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for imageId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_imageId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_imageId; ++ } ++ ++ /** ++ * setter for imageId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_imageId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_imageId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_imageId && ++ arg_imageId == _ncRunInstanceType->property_imageId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_imageId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "imageId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncRunInstanceType_reset_imageId(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_imageId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_imageId = (axis2_char_t *)axutil_strdup(env, arg_imageId); ++ if(NULL == _ncRunInstanceType->property_imageId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for imageId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_imageId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for imageId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_imageId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_imageId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_imageId); ++ _ncRunInstanceType->property_imageId = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_imageId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether imageId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_imageId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_imageId; ++ } ++ ++ /** ++ * Set imageId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_imageId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_imageId(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for kernelId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_kernelId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_kernelId; ++ } ++ ++ /** ++ * setter for kernelId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_kernelId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_kernelId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_kernelId && ++ arg_kernelId == _ncRunInstanceType->property_kernelId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_kernelId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "kernelId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncRunInstanceType_reset_kernelId(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_kernelId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_kernelId = (axis2_char_t *)axutil_strdup(env, arg_kernelId); ++ if(NULL == _ncRunInstanceType->property_kernelId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for kernelId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_kernelId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for kernelId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_kernelId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_kernelId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_kernelId); ++ _ncRunInstanceType->property_kernelId = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_kernelId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether kernelId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_kernelId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_kernelId; ++ } ++ ++ /** ++ * Set kernelId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_kernelId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_kernelId(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for ramdiskId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_ramdiskId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_ramdiskId; ++ } ++ ++ /** ++ * setter for ramdiskId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_ramdiskId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_ramdiskId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_ramdiskId && ++ arg_ramdiskId == _ncRunInstanceType->property_ramdiskId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceType_reset_ramdiskId(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_ramdiskId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_ramdiskId = (axis2_char_t *)axutil_strdup(env, arg_ramdiskId); ++ if(NULL == _ncRunInstanceType->property_ramdiskId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for ramdiskId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_ramdiskId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ramdiskId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_ramdiskId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_ramdiskId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_ramdiskId); ++ _ncRunInstanceType->property_ramdiskId = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_ramdiskId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ramdiskId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_ramdiskId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_ramdiskId; ++ } ++ ++ /** ++ * Set ramdiskId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_ramdiskId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_ramdiskId(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for imageURL. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_imageURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_imageURL; ++ } ++ ++ /** ++ * setter for imageURL ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_imageURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_imageURL) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_imageURL && ++ arg_imageURL == _ncRunInstanceType->property_imageURL) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_imageURL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "imageURL is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncRunInstanceType_reset_imageURL(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_imageURL) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_imageURL = (axis2_char_t *)axutil_strdup(env, arg_imageURL); ++ if(NULL == _ncRunInstanceType->property_imageURL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for imageURL"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_imageURL = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for imageURL ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_imageURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_imageURL != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_imageURL); ++ _ncRunInstanceType->property_imageURL = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_imageURL = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether imageURL is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_imageURL_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_imageURL; ++ } ++ ++ /** ++ * Set imageURL to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_imageURL_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_imageURL(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for kernelURL. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_kernelURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_kernelURL; ++ } ++ ++ /** ++ * setter for kernelURL ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_kernelURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_kernelURL) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_kernelURL && ++ arg_kernelURL == _ncRunInstanceType->property_kernelURL) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_kernelURL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "kernelURL is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncRunInstanceType_reset_kernelURL(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_kernelURL) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_kernelURL = (axis2_char_t *)axutil_strdup(env, arg_kernelURL); ++ if(NULL == _ncRunInstanceType->property_kernelURL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for kernelURL"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_kernelURL = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for kernelURL ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_kernelURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_kernelURL != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_kernelURL); ++ _ncRunInstanceType->property_kernelURL = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_kernelURL = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether kernelURL is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_kernelURL_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_kernelURL; ++ } ++ ++ /** ++ * Set kernelURL to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_kernelURL_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_kernelURL(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for ramdiskURL. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_ramdiskURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_ramdiskURL; ++ } ++ ++ /** ++ * setter for ramdiskURL ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_ramdiskURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_ramdiskURL) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_ramdiskURL && ++ arg_ramdiskURL == _ncRunInstanceType->property_ramdiskURL) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceType_reset_ramdiskURL(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_ramdiskURL) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_ramdiskURL = (axis2_char_t *)axutil_strdup(env, arg_ramdiskURL); ++ if(NULL == _ncRunInstanceType->property_ramdiskURL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for ramdiskURL"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_ramdiskURL = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ramdiskURL ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_ramdiskURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_ramdiskURL != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_ramdiskURL); ++ _ncRunInstanceType->property_ramdiskURL = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_ramdiskURL = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ramdiskURL is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_ramdiskURL_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_ramdiskURL; ++ } ++ ++ /** ++ * Set ramdiskURL to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_ramdiskURL_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_ramdiskURL(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_instanceId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_instanceId; ++ } ++ ++ /** ++ * setter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_instanceId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_instanceId && ++ arg_instanceId == _ncRunInstanceType->property_instanceId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncRunInstanceType_reset_instanceId(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId); ++ if(NULL == _ncRunInstanceType->property_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_instanceId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_instanceId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_instanceId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_instanceId); ++ _ncRunInstanceType->property_instanceId = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_instanceId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_instanceId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_instanceId; ++ } ++ ++ /** ++ * Set instanceId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_instanceId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_instanceId(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceType. ++ */ ++ adb_virtualMachineType_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_instanceType( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_instanceType; ++ } ++ ++ /** ++ * setter for instanceType ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_instanceType( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ adb_virtualMachineType_t* arg_instanceType) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_instanceType && ++ arg_instanceType == _ncRunInstanceType->property_instanceType) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instanceType) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceType is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncRunInstanceType_reset_instanceType(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_instanceType) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_instanceType = arg_instanceType; ++ _ncRunInstanceType->is_valid_instanceType = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceType ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_instanceType( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_instanceType != NULL) ++ { ++ ++ ++ adb_virtualMachineType_free(_ncRunInstanceType->property_instanceType, env); ++ _ncRunInstanceType->property_instanceType = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_instanceType = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceType is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_instanceType_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_instanceType; ++ } ++ ++ /** ++ * Set instanceType to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_instanceType_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_instanceType(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for keyName. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_keyName( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_keyName; ++ } ++ ++ /** ++ * setter for keyName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_keyName( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_keyName) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_keyName && ++ arg_keyName == _ncRunInstanceType->property_keyName) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_keyName) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "keyName is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncRunInstanceType_reset_keyName(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_keyName) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_keyName = (axis2_char_t *)axutil_strdup(env, arg_keyName); ++ if(NULL == _ncRunInstanceType->property_keyName) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for keyName"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_keyName = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for keyName ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_keyName( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_keyName != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_keyName); ++ _ncRunInstanceType->property_keyName = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_keyName = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether keyName is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_keyName_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_keyName; ++ } ++ ++ /** ++ * Set keyName to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_keyName_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_keyName(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for publicMacAddress. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_publicMacAddress( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_publicMacAddress; ++ } ++ ++ /** ++ * setter for publicMacAddress ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_publicMacAddress( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_publicMacAddress) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_publicMacAddress && ++ arg_publicMacAddress == _ncRunInstanceType->property_publicMacAddress) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_publicMacAddress) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "publicMacAddress is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncRunInstanceType_reset_publicMacAddress(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_publicMacAddress) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_publicMacAddress = (axis2_char_t *)axutil_strdup(env, arg_publicMacAddress); ++ if(NULL == _ncRunInstanceType->property_publicMacAddress) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for publicMacAddress"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_publicMacAddress = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for publicMacAddress ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_publicMacAddress( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_publicMacAddress != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_publicMacAddress); ++ _ncRunInstanceType->property_publicMacAddress = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_publicMacAddress = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether publicMacAddress is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_publicMacAddress_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_publicMacAddress; ++ } ++ ++ /** ++ * Set publicMacAddress to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_publicMacAddress_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_publicMacAddress(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for privateMacAddress. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_privateMacAddress( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_privateMacAddress; ++ } ++ ++ /** ++ * setter for privateMacAddress ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_privateMacAddress( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_privateMacAddress) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_privateMacAddress && ++ arg_privateMacAddress == _ncRunInstanceType->property_privateMacAddress) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_privateMacAddress) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "privateMacAddress is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncRunInstanceType_reset_privateMacAddress(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_privateMacAddress) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_privateMacAddress = (axis2_char_t *)axutil_strdup(env, arg_privateMacAddress); ++ if(NULL == _ncRunInstanceType->property_privateMacAddress) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for privateMacAddress"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_privateMacAddress = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for privateMacAddress ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_privateMacAddress( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_privateMacAddress != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_privateMacAddress); ++ _ncRunInstanceType->property_privateMacAddress = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_privateMacAddress = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether privateMacAddress is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_privateMacAddress_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_privateMacAddress; ++ } ++ ++ /** ++ * Set privateMacAddress to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_privateMacAddress_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_privateMacAddress(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for reservationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_reservationId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_reservationId; ++ } ++ ++ /** ++ * setter for reservationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_reservationId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_reservationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_reservationId && ++ arg_reservationId == _ncRunInstanceType->property_reservationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_reservationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "reservationId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncRunInstanceType_reset_reservationId(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_reservationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_reservationId = (axis2_char_t *)axutil_strdup(env, arg_reservationId); ++ if(NULL == _ncRunInstanceType->property_reservationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for reservationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_reservationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for reservationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_reservationId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_reservationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_reservationId); ++ _ncRunInstanceType->property_reservationId = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_reservationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether reservationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_reservationId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_reservationId; ++ } ++ ++ /** ++ * Set reservationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_reservationId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_reservationId(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for vlan. ++ */ ++ int AXIS2_CALL ++ adb_ncRunInstanceType_get_vlan( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, (int)0); ++ ++ ++ return _ncRunInstanceType->property_vlan; ++ } ++ ++ /** ++ * setter for vlan ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_vlan( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const int arg_vlan) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_vlan && ++ arg_vlan == _ncRunInstanceType->property_vlan) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceType_reset_vlan(_ncRunInstanceType, env); ++ ++ _ncRunInstanceType->property_vlan = arg_vlan; ++ _ncRunInstanceType->is_valid_vlan = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for vlan ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_vlan( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ _ncRunInstanceType->is_valid_vlan = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether vlan is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_vlan_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_vlan; ++ } ++ ++ /** ++ * Set vlan to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_vlan_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_vlan(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userData. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_userData( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_userData; ++ } ++ ++ /** ++ * setter for userData ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_userData( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userData) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_userData && ++ arg_userData == _ncRunInstanceType->property_userData) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceType_reset_userData(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_userData) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_userData = (axis2_char_t *)axutil_strdup(env, arg_userData); ++ if(NULL == _ncRunInstanceType->property_userData) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userData"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_userData = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userData ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_userData( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_userData != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_userData); ++ _ncRunInstanceType->property_userData = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_userData = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userData is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_userData_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_userData; ++ } ++ ++ /** ++ * Set userData to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_userData_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_userData(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for launchIndex. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_launchIndex( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_launchIndex; ++ } ++ ++ /** ++ * setter for launchIndex ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_launchIndex( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_launchIndex) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_launchIndex && ++ arg_launchIndex == _ncRunInstanceType->property_launchIndex) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncRunInstanceType_reset_launchIndex(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_launchIndex) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_launchIndex = (axis2_char_t *)axutil_strdup(env, arg_launchIndex); ++ if(NULL == _ncRunInstanceType->property_launchIndex) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for launchIndex"); ++ return AXIS2_FAILURE; ++ } ++ _ncRunInstanceType->is_valid_launchIndex = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for launchIndex ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_launchIndex( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncRunInstanceType->property_launchIndex != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_launchIndex); ++ _ncRunInstanceType->property_launchIndex = NULL; ++ } ++ ++ ++ ++ _ncRunInstanceType->is_valid_launchIndex = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether launchIndex is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_launchIndex_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_launchIndex; ++ } ++ ++ /** ++ * Set launchIndex to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_launchIndex_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_launchIndex(_ncRunInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for groupNames. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_groupNames( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ return _ncRunInstanceType->property_groupNames; ++ } ++ ++ /** ++ * setter for groupNames ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_groupNames( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_groupNames) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->is_valid_groupNames && ++ arg_groupNames == _ncRunInstanceType->property_groupNames) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_groupNames, env); ++ ++ if (size > 64) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "groupNames has exceed the maxOccurs(64)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "groupNames has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_groupNames, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_ncRunInstanceType_reset_groupNames(_ncRunInstanceType, env); ++ ++ ++ if(NULL == arg_groupNames) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncRunInstanceType->property_groupNames = arg_groupNames; ++ if(non_nil_exists) ++ { ++ _ncRunInstanceType->is_valid_groupNames = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of groupNames. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_groupNames_at( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, int i) ++ { ++ axis2_char_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL); ++ ++ ++ if(_ncRunInstanceType->property_groupNames == NULL) ++ { ++ return (axis2_char_t*)0; ++ } ++ ret_val = (axis2_char_t*)axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of groupNames. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_groupNames_at( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_groupNames) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if( _ncRunInstanceType->is_valid_groupNames && ++ _ncRunInstanceType->property_groupNames && ++ ++ arg_groupNames == (axis2_char_t*)axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_groupNames) ++ { ++ if(_ncRunInstanceType->property_groupNames != NULL) ++ { ++ size = axutil_array_list_size(_ncRunInstanceType->property_groupNames, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of groupNames is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_ncRunInstanceType->property_groupNames == NULL) ++ { ++ _ncRunInstanceType->property_groupNames = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _ncRunInstanceType->is_valid_groupNames = AXIS2_FALSE; ++ axutil_array_list_set(_ncRunInstanceType->property_groupNames , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_ncRunInstanceType->property_groupNames , env, i, axutil_strdup(env, arg_groupNames)); ++ _ncRunInstanceType->is_valid_groupNames = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to groupNames. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_add_groupNames( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_groupNames) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_groupNames) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_ncRunInstanceType->property_groupNames == NULL) ++ { ++ _ncRunInstanceType->property_groupNames = axutil_array_list_create(env, 10); ++ } ++ if(_ncRunInstanceType->property_groupNames == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for groupNames"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_ncRunInstanceType->property_groupNames , env, axutil_strdup(env, arg_groupNames)); ++ _ncRunInstanceType->is_valid_groupNames = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the groupNames array. ++ */ ++ int AXIS2_CALL ++ adb_ncRunInstanceType_sizeof_groupNames( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, -1); ++ if(_ncRunInstanceType->property_groupNames == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_ncRunInstanceType->property_groupNames, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_remove_groupNames_at( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_ncRunInstanceType_set_groupNames_nil_at(_ncRunInstanceType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for groupNames ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_groupNames( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ if (_ncRunInstanceType->property_groupNames != NULL) ++ { ++ count = axutil_array_list_size(_ncRunInstanceType->property_groupNames, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_ncRunInstanceType->property_groupNames, env); ++ } ++ _ncRunInstanceType->is_valid_groupNames = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether groupNames is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_groupNames_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return !_ncRunInstanceType->is_valid_groupNames; ++ } ++ ++ /** ++ * Set groupNames to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_groupNames_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncRunInstanceType_reset_groupNames(_ncRunInstanceType, env); ++ } ++ ++ ++ /** ++ * Check whether groupNames is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_groupNames_nil_at( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE); ++ ++ return (_ncRunInstanceType->is_valid_groupNames == AXIS2_FALSE || ++ NULL == _ncRunInstanceType->property_groupNames || ++ NULL == axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i)); ++ } ++ ++ /** ++ * Set groupNames to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_groupNames_nil_at( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE); ++ ++ if(_ncRunInstanceType->property_groupNames == NULL || ++ _ncRunInstanceType->is_valid_groupNames == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_ncRunInstanceType->property_groupNames, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of groupNames is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_ncRunInstanceType->property_groupNames == NULL) ++ { ++ _ncRunInstanceType->is_valid_groupNames = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _ncRunInstanceType->is_valid_groupNames = AXIS2_FALSE; ++ axutil_array_list_set(_ncRunInstanceType->property_groupNames , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_ncRunInstanceType->property_groupNames , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncRunInstanceType.h' +--- old/node/generated/adb_ncRunInstanceType.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncRunInstanceType.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,1320 @@ ++ ++ ++ #ifndef ADB_NCRUNINSTANCETYPE_H ++ #define ADB_NCRUNINSTANCETYPE_H ++ ++ /** ++ * adb_ncRunInstanceType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncRunInstanceType class ++ */ ++ typedef struct adb_ncRunInstanceType adb_ncRunInstanceType_t; ++ ++ ++ #include "adb_virtualMachineType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncRunInstanceType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncRunInstanceType_t object ++ */ ++ adb_ncRunInstanceType_t* AXIS2_CALL ++ adb_ncRunInstanceType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncRunInstanceType_t object ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_free ( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_correlationId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_correlationId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_correlationId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_userId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_userId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_userId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_get_return( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_return( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_return( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncRunInstanceType_get_statusMessage( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_statusMessage( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_statusMessage( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for imageId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_imageId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for imageId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_imageId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_imageId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_imageId); ++ ++ /** ++ * Resetter for imageId ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_imageId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for kernelId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_kernelId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for kernelId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_kernelId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_kernelId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_kernelId); ++ ++ /** ++ * Resetter for kernelId ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_kernelId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for ramdiskId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_ramdiskId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ramdiskId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_ramdiskId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_ramdiskId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_ramdiskId); ++ ++ /** ++ * Resetter for ramdiskId ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_ramdiskId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for imageURL. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_imageURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for imageURL. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_imageURL axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_imageURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_imageURL); ++ ++ /** ++ * Resetter for imageURL ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_imageURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for kernelURL. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_kernelURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for kernelURL. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_kernelURL axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_kernelURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_kernelURL); ++ ++ /** ++ * Resetter for kernelURL ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_kernelURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for ramdiskURL. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_ramdiskURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ramdiskURL. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_ramdiskURL axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_ramdiskURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_ramdiskURL); ++ ++ /** ++ * Resetter for ramdiskURL ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_ramdiskURL( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_instanceId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_instanceId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId); ++ ++ /** ++ * Resetter for instanceId ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_instanceId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceType. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return adb_virtualMachineType_t* ++ */ ++ adb_virtualMachineType_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_instanceType( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceType. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceType adb_virtualMachineType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_instanceType( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ adb_virtualMachineType_t* arg_instanceType); ++ ++ /** ++ * Resetter for instanceType ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_instanceType( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for keyName. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_keyName( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for keyName. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_keyName axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_keyName( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_keyName); ++ ++ /** ++ * Resetter for keyName ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_keyName( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for publicMacAddress. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_publicMacAddress( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for publicMacAddress. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_publicMacAddress axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_publicMacAddress( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_publicMacAddress); ++ ++ /** ++ * Resetter for publicMacAddress ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_publicMacAddress( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for privateMacAddress. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_privateMacAddress( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for privateMacAddress. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_privateMacAddress axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_privateMacAddress( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_privateMacAddress); ++ ++ /** ++ * Resetter for privateMacAddress ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_privateMacAddress( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for reservationId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_reservationId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for reservationId. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_reservationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_reservationId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_reservationId); ++ ++ /** ++ * Resetter for reservationId ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_reservationId( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for vlan. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncRunInstanceType_get_vlan( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for vlan. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_vlan int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_vlan( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const int arg_vlan); ++ ++ /** ++ * Resetter for vlan ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_vlan( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userData. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_userData( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userData. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_userData axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_userData( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userData); ++ ++ /** ++ * Resetter for userData ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_userData( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for launchIndex. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_launchIndex( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for launchIndex. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_launchIndex axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_launchIndex( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_launchIndex); ++ ++ /** ++ * Resetter for launchIndex ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_launchIndex( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for groupNames. Deprecated for array types, Use adb_ncRunInstanceType_get_groupNames_at instead ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return Array of axis2_char_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_groupNames( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for groupNames.Deprecated for array types, Use adb_ncRunInstanceType_set_groupNames_at ++ * or adb_ncRunInstanceType_add_groupNames instead. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_groupNames Array of axis2_char_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_groupNames( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_groupNames); ++ ++ /** ++ * Resetter for groupNames ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_reset_groupNames( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of groupNames. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncRunInstanceType_get_groupNames_at( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of groupNames. (If the ith already exist, it will be replaced) ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_groupNames element to set axis2_char_t* to the array ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_groupNames_at( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_groupNames); ++ ++ ++ /** ++ * Add to groupNames. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_groupNames element to add axis2_char_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_add_groupNames( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_groupNames); ++ ++ /** ++ * Get the size of the groupNames array. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the groupNames array. ++ */ ++ int AXIS2_CALL ++ adb_ncRunInstanceType_sizeof_groupNames( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of groupNames. ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_remove_groupNames_at( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_correlationId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_userId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_return_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_statusMessage_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_statusMessage_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether imageId is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_imageId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether kernelId is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_kernelId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether ramdiskId is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_ramdiskId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether imageURL is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_imageURL_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether kernelURL is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_kernelURL_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether ramdiskURL is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_ramdiskURL_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether instanceId is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_instanceId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether instanceType is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_instanceType_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether keyName is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_keyName_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether publicMacAddress is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_publicMacAddress_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether privateMacAddress is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_privateMacAddress_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether reservationId is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_reservationId_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether vlan is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_vlan_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userData is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_userData_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether launchIndex is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_launchIndex_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether groupNames is nill ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_groupNames_nil( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether groupNames is nill at i ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_groupNames_nil_at( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set groupNames to nill at i ++ * @param _ncRunInstanceType _ adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_set_groupNames_nil_at( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncRunInstanceType_deserialize( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncRunInstanceType_declare_parent_namespaces( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncRunInstanceType adb_ncRunInstanceType_t object ++ * @param env pointer to environment struct ++ * @param ncRunInstanceType_om_node node to serialize from ++ * @param ncRunInstanceType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncRunInstanceType_serialize( ++ adb_ncRunInstanceType_t* _ncRunInstanceType, ++ const axutil_env_t *env, ++ axiom_node_t* ncRunInstanceType_om_node, axiom_element_t *ncRunInstanceType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncRunInstanceType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncRunInstanceType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCRUNINSTANCETYPE_H */ ++ ++ + +=== added file 'node/generated/adb_ncStartNetwork.c' +--- old/node/generated/adb_ncStartNetwork.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncStartNetwork.c 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncStartNetwork.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncStartNetwork.h" ++ ++ /* ++ * implmentation of the ncStartNetwork|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncStartNetwork ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncStartNetworkType_t* property_ncStartNetwork; ++ ++ ++ axis2_bool_t is_valid_ncStartNetwork; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncStartNetwork_t* AXIS2_CALL ++ adb_ncStartNetwork_create( ++ const axutil_env_t *env) ++ { ++ adb_ncStartNetwork_t *_ncStartNetwork = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncStartNetwork = (adb_ncStartNetwork_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncStartNetwork_t)); ++ ++ if(NULL == _ncStartNetwork) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncStartNetwork, 0, sizeof(adb_ncStartNetwork_t)); ++ ++ _ncStartNetwork->property_ncStartNetwork = NULL; ++ _ncStartNetwork->is_valid_ncStartNetwork = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncStartNetwork", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncStartNetwork->qname = qname; ++ ++ ++ return _ncStartNetwork; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetwork_free ( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetwork, AXIS2_FAILURE); ++ ++ adb_ncStartNetwork_reset_ncStartNetwork(_ncStartNetwork, env); ++ ++ if(_ncStartNetwork->qname) ++ { ++ axutil_qname_free (_ncStartNetwork->qname, env); ++ _ncStartNetwork->qname = NULL; ++ } ++ ++ ++ if(_ncStartNetwork) ++ { ++ AXIS2_FREE(env->allocator, _ncStartNetwork); ++ _ncStartNetwork = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetwork_deserialize( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetwork, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncStartNetwork : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncStartNetwork-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncStartNetwork : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncStartNetwork-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncStartNetwork element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncStartNetwork", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncStartNetworkType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncStartNetworkType_create(env); ++ ++ status = adb_ncStartNetworkType_deserialize((adb_ncStartNetworkType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncStartNetwork"); ++ } ++ else ++ { ++ status = adb_ncStartNetwork_set_ncStartNetwork(_ncStartNetwork, env, ++ (adb_ncStartNetworkType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncStartNetwork "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncStartNetwork missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetwork_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncStartNetwork_declare_parent_namespaces( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncStartNetwork_serialize( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetwork, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncStartNetwork", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetwork->is_valid_ncStartNetwork) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncStartNetwork") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncStartNetwork xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncStartNetwork"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncStartNetwork"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncStartNetwork element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncStartNetwork", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncStartNetworkType_serialize(_ncStartNetwork->property_ncStartNetwork, ++ env, current_node, parent_element, ++ adb_ncStartNetworkType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncStartNetwork. ++ */ ++ adb_ncStartNetworkType_t* AXIS2_CALL ++ adb_ncStartNetwork_get_ncStartNetwork( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetwork, NULL); ++ ++ ++ return _ncStartNetwork->property_ncStartNetwork; ++ } ++ ++ /** ++ * setter for ncStartNetwork ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetwork_set_ncStartNetwork( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env, ++ adb_ncStartNetworkType_t* arg_ncStartNetwork) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetwork, AXIS2_FAILURE); ++ ++ if(_ncStartNetwork->is_valid_ncStartNetwork && ++ arg_ncStartNetwork == _ncStartNetwork->property_ncStartNetwork) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetwork_reset_ncStartNetwork(_ncStartNetwork, env); ++ ++ ++ if(NULL == arg_ncStartNetwork) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncStartNetwork->property_ncStartNetwork = arg_ncStartNetwork; ++ _ncStartNetwork->is_valid_ncStartNetwork = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncStartNetwork ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetwork_reset_ncStartNetwork( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetwork, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncStartNetwork->property_ncStartNetwork != NULL) ++ { ++ ++ ++ adb_ncStartNetworkType_free(_ncStartNetwork->property_ncStartNetwork, env); ++ _ncStartNetwork->property_ncStartNetwork = NULL; ++ } ++ ++ ++ ++ _ncStartNetwork->is_valid_ncStartNetwork = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncStartNetwork is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetwork_is_ncStartNetwork_nil( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetwork, AXIS2_TRUE); ++ ++ return !_ncStartNetwork->is_valid_ncStartNetwork; ++ } ++ ++ /** ++ * Set ncStartNetwork to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetwork_set_ncStartNetwork_nil( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetwork_reset_ncStartNetwork(_ncStartNetwork, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncStartNetwork.h' +--- old/node/generated/adb_ncStartNetwork.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncStartNetwork.h 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCSTARTNETWORK_H ++ #define ADB_NCSTARTNETWORK_H ++ ++ /** ++ * adb_ncStartNetwork.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncStartNetwork class ++ */ ++ typedef struct adb_ncStartNetwork adb_ncStartNetwork_t; ++ ++ ++ #include "adb_ncStartNetworkType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncStartNetwork_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncStartNetwork_t object ++ */ ++ adb_ncStartNetwork_t* AXIS2_CALL ++ adb_ncStartNetwork_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncStartNetwork_t object ++ * @param _ncStartNetwork adb_ncStartNetwork_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetwork_free ( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncStartNetwork. ++ * @param _ncStartNetwork adb_ncStartNetwork_t object ++ * @param env pointer to environment struct ++ * @return adb_ncStartNetworkType_t* ++ */ ++ adb_ncStartNetworkType_t* AXIS2_CALL ++ adb_ncStartNetwork_get_ncStartNetwork( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncStartNetwork. ++ * @param _ncStartNetwork adb_ncStartNetwork_t object ++ * @param env pointer to environment struct ++ * @param arg_ncStartNetwork adb_ncStartNetworkType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetwork_set_ncStartNetwork( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env, ++ adb_ncStartNetworkType_t* arg_ncStartNetwork); ++ ++ /** ++ * Resetter for ncStartNetwork ++ * @param _ncStartNetwork adb_ncStartNetwork_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetwork_reset_ncStartNetwork( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncStartNetwork is nill ++ * @param _ncStartNetwork adb_ncStartNetwork_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetwork_is_ncStartNetwork_nil( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncStartNetwork to nill (currently the same as reset) ++ * @param _ncStartNetwork adb_ncStartNetwork_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetwork_set_ncStartNetwork_nil( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncStartNetwork adb_ncStartNetwork_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetwork_deserialize( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncStartNetwork adb_ncStartNetwork_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncStartNetwork_declare_parent_namespaces( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncStartNetwork adb_ncStartNetwork_t object ++ * @param env pointer to environment struct ++ * @param ncStartNetwork_om_node node to serialize from ++ * @param ncStartNetwork_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncStartNetwork_serialize( ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ const axutil_env_t *env, ++ axiom_node_t* ncStartNetwork_om_node, axiom_element_t *ncStartNetwork_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncStartNetwork is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetwork_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCSTARTNETWORK_H */ ++ ++ + +=== added file 'node/generated/adb_ncStartNetworkResponse.c' +--- old/node/generated/adb_ncStartNetworkResponse.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncStartNetworkResponse.c 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncStartNetworkResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncStartNetworkResponse.h" ++ ++ /* ++ * implmentation of the ncStartNetworkResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncStartNetworkResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncStartNetworkResponseType_t* property_ncStartNetworkResponse; ++ ++ ++ axis2_bool_t is_valid_ncStartNetworkResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncStartNetworkResponse_t* AXIS2_CALL ++ adb_ncStartNetworkResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_ncStartNetworkResponse_t *_ncStartNetworkResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncStartNetworkResponse = (adb_ncStartNetworkResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncStartNetworkResponse_t)); ++ ++ if(NULL == _ncStartNetworkResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncStartNetworkResponse, 0, sizeof(adb_ncStartNetworkResponse_t)); ++ ++ _ncStartNetworkResponse->property_ncStartNetworkResponse = NULL; ++ _ncStartNetworkResponse->is_valid_ncStartNetworkResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncStartNetworkResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncStartNetworkResponse->qname = qname; ++ ++ ++ return _ncStartNetworkResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponse_free ( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponse, AXIS2_FAILURE); ++ ++ adb_ncStartNetworkResponse_reset_ncStartNetworkResponse(_ncStartNetworkResponse, env); ++ ++ if(_ncStartNetworkResponse->qname) ++ { ++ axutil_qname_free (_ncStartNetworkResponse->qname, env); ++ _ncStartNetworkResponse->qname = NULL; ++ } ++ ++ ++ if(_ncStartNetworkResponse) ++ { ++ AXIS2_FREE(env->allocator, _ncStartNetworkResponse); ++ _ncStartNetworkResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponse_deserialize( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncStartNetworkResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncStartNetworkResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncStartNetworkResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncStartNetworkResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncStartNetworkResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncStartNetworkResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncStartNetworkResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncStartNetworkResponseType_create(env); ++ ++ status = adb_ncStartNetworkResponseType_deserialize((adb_ncStartNetworkResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncStartNetworkResponse"); ++ } ++ else ++ { ++ status = adb_ncStartNetworkResponse_set_ncStartNetworkResponse(_ncStartNetworkResponse, env, ++ (adb_ncStartNetworkResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncStartNetworkResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncStartNetworkResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncStartNetworkResponse_declare_parent_namespaces( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncStartNetworkResponse_serialize( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncStartNetworkResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkResponse->is_valid_ncStartNetworkResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncStartNetworkResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncStartNetworkResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncStartNetworkResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncStartNetworkResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncStartNetworkResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncStartNetworkResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncStartNetworkResponseType_serialize(_ncStartNetworkResponse->property_ncStartNetworkResponse, ++ env, current_node, parent_element, ++ adb_ncStartNetworkResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncStartNetworkResponse. ++ */ ++ adb_ncStartNetworkResponseType_t* AXIS2_CALL ++ adb_ncStartNetworkResponse_get_ncStartNetworkResponse( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponse, NULL); ++ ++ ++ return _ncStartNetworkResponse->property_ncStartNetworkResponse; ++ } ++ ++ /** ++ * setter for ncStartNetworkResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponse_set_ncStartNetworkResponse( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env, ++ adb_ncStartNetworkResponseType_t* arg_ncStartNetworkResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponse, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkResponse->is_valid_ncStartNetworkResponse && ++ arg_ncStartNetworkResponse == _ncStartNetworkResponse->property_ncStartNetworkResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetworkResponse_reset_ncStartNetworkResponse(_ncStartNetworkResponse, env); ++ ++ ++ if(NULL == arg_ncStartNetworkResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncStartNetworkResponse->property_ncStartNetworkResponse = arg_ncStartNetworkResponse; ++ _ncStartNetworkResponse->is_valid_ncStartNetworkResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncStartNetworkResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponse_reset_ncStartNetworkResponse( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncStartNetworkResponse->property_ncStartNetworkResponse != NULL) ++ { ++ ++ ++ adb_ncStartNetworkResponseType_free(_ncStartNetworkResponse->property_ncStartNetworkResponse, env); ++ _ncStartNetworkResponse->property_ncStartNetworkResponse = NULL; ++ } ++ ++ ++ ++ _ncStartNetworkResponse->is_valid_ncStartNetworkResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncStartNetworkResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponse_is_ncStartNetworkResponse_nil( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponse, AXIS2_TRUE); ++ ++ return !_ncStartNetworkResponse->is_valid_ncStartNetworkResponse; ++ } ++ ++ /** ++ * Set ncStartNetworkResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponse_set_ncStartNetworkResponse_nil( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkResponse_reset_ncStartNetworkResponse(_ncStartNetworkResponse, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncStartNetworkResponse.h' +--- old/node/generated/adb_ncStartNetworkResponse.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncStartNetworkResponse.h 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCSTARTNETWORKRESPONSE_H ++ #define ADB_NCSTARTNETWORKRESPONSE_H ++ ++ /** ++ * adb_ncStartNetworkResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncStartNetworkResponse class ++ */ ++ typedef struct adb_ncStartNetworkResponse adb_ncStartNetworkResponse_t; ++ ++ ++ #include "adb_ncStartNetworkResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncStartNetworkResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncStartNetworkResponse_t object ++ */ ++ adb_ncStartNetworkResponse_t* AXIS2_CALL ++ adb_ncStartNetworkResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncStartNetworkResponse_t object ++ * @param _ncStartNetworkResponse adb_ncStartNetworkResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponse_free ( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncStartNetworkResponse. ++ * @param _ncStartNetworkResponse adb_ncStartNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_ncStartNetworkResponseType_t* ++ */ ++ adb_ncStartNetworkResponseType_t* AXIS2_CALL ++ adb_ncStartNetworkResponse_get_ncStartNetworkResponse( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncStartNetworkResponse. ++ * @param _ncStartNetworkResponse adb_ncStartNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_ncStartNetworkResponse adb_ncStartNetworkResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponse_set_ncStartNetworkResponse( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env, ++ adb_ncStartNetworkResponseType_t* arg_ncStartNetworkResponse); ++ ++ /** ++ * Resetter for ncStartNetworkResponse ++ * @param _ncStartNetworkResponse adb_ncStartNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponse_reset_ncStartNetworkResponse( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncStartNetworkResponse is nill ++ * @param _ncStartNetworkResponse adb_ncStartNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponse_is_ncStartNetworkResponse_nil( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncStartNetworkResponse to nill (currently the same as reset) ++ * @param _ncStartNetworkResponse adb_ncStartNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponse_set_ncStartNetworkResponse_nil( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncStartNetworkResponse adb_ncStartNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponse_deserialize( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncStartNetworkResponse adb_ncStartNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncStartNetworkResponse_declare_parent_namespaces( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncStartNetworkResponse adb_ncStartNetworkResponse_t object ++ * @param env pointer to environment struct ++ * @param ncStartNetworkResponse_om_node node to serialize from ++ * @param ncStartNetworkResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncStartNetworkResponse_serialize( ++ adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, ++ const axutil_env_t *env, ++ axiom_node_t* ncStartNetworkResponse_om_node, axiom_element_t *ncStartNetworkResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncStartNetworkResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCSTARTNETWORKRESPONSE_H */ ++ ++ + +=== added file 'node/generated/adb_ncStartNetworkResponseType.c' +--- old/node/generated/adb_ncStartNetworkResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncStartNetworkResponseType.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,1702 @@ ++ ++ ++ /** ++ * adb_ncStartNetworkResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncStartNetworkResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncStartNetworkResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncStartNetworkResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_char_t* property_networkStatus; ++ ++ ++ axis2_bool_t is_valid_networkStatus; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_correlationId_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_userId_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_return_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_networkStatus_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncStartNetworkResponseType_t* AXIS2_CALL ++ adb_ncStartNetworkResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncStartNetworkResponseType_t *_ncStartNetworkResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncStartNetworkResponseType = (adb_ncStartNetworkResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncStartNetworkResponseType_t)); ++ ++ if(NULL == _ncStartNetworkResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncStartNetworkResponseType, 0, sizeof(adb_ncStartNetworkResponseType_t)); ++ ++ _ncStartNetworkResponseType->property_correlationId = NULL; ++ _ncStartNetworkResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _ncStartNetworkResponseType->property_userId = NULL; ++ _ncStartNetworkResponseType->is_valid_userId = AXIS2_FALSE; ++ _ncStartNetworkResponseType->is_valid_return = AXIS2_FALSE; ++ _ncStartNetworkResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncStartNetworkResponseType->property_networkStatus = NULL; ++ _ncStartNetworkResponseType->is_valid_networkStatus = AXIS2_FALSE; ++ ++ ++ return _ncStartNetworkResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_free ( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE); ++ ++ adb_ncStartNetworkResponseType_reset_correlationId(_ncStartNetworkResponseType, env); ++ adb_ncStartNetworkResponseType_reset_userId(_ncStartNetworkResponseType, env); ++ adb_ncStartNetworkResponseType_reset_return(_ncStartNetworkResponseType, env); ++ adb_ncStartNetworkResponseType_reset_statusMessage(_ncStartNetworkResponseType, env); ++ adb_ncStartNetworkResponseType_reset_networkStatus(_ncStartNetworkResponseType, env); ++ ++ ++ if(_ncStartNetworkResponseType) ++ { ++ AXIS2_FREE(env->allocator, _ncStartNetworkResponseType); ++ _ncStartNetworkResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_deserialize( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncStartNetworkResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncStartNetworkResponseType_set_correlationId(_ncStartNetworkResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncStartNetworkResponseType_set_correlationId(_ncStartNetworkResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncStartNetworkResponseType_set_userId(_ncStartNetworkResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncStartNetworkResponseType_set_userId(_ncStartNetworkResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncStartNetworkResponseType_set_return(_ncStartNetworkResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncStartNetworkResponseType_set_return(_ncStartNetworkResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncStartNetworkResponseType_set_statusMessage(_ncStartNetworkResponseType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building networkStatus element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "networkStatus", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncStartNetworkResponseType_set_networkStatus(_ncStartNetworkResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element networkStatus"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncStartNetworkResponseType_set_networkStatus(_ncStartNetworkResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for networkStatus "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncStartNetworkResponseType_declare_parent_namespaces( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncStartNetworkResponseType_serialize( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncStartNetworkResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncStartNetworkResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncStartNetworkResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncStartNetworkResponseType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkResponseType->is_valid_networkStatus) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("networkStatus"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("networkStatus"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing networkStatus element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%snetworkStatus>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _ncStartNetworkResponseType->property_networkStatus; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncStartNetworkResponseType_get_correlationId( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, NULL); ++ ++ ++ return _ncStartNetworkResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_correlationId( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkResponseType->is_valid_correlationId && ++ arg_correlationId == _ncStartNetworkResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetworkResponseType_reset_correlationId(_ncStartNetworkResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncStartNetworkResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncStartNetworkResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncStartNetworkResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_reset_correlationId( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncStartNetworkResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncStartNetworkResponseType->property_correlationId); ++ _ncStartNetworkResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncStartNetworkResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_is_correlationId_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_TRUE); ++ ++ return !_ncStartNetworkResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_correlationId_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkResponseType_reset_correlationId(_ncStartNetworkResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncStartNetworkResponseType_get_userId( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, NULL); ++ ++ ++ return _ncStartNetworkResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_userId( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkResponseType->is_valid_userId && ++ arg_userId == _ncStartNetworkResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetworkResponseType_reset_userId(_ncStartNetworkResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncStartNetworkResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncStartNetworkResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncStartNetworkResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_reset_userId( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncStartNetworkResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncStartNetworkResponseType->property_userId); ++ _ncStartNetworkResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncStartNetworkResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_is_userId_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_TRUE); ++ ++ return !_ncStartNetworkResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_userId_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkResponseType_reset_userId(_ncStartNetworkResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_get_return( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, (axis2_bool_t)0); ++ ++ ++ return _ncStartNetworkResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_return( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkResponseType->is_valid_return && ++ arg_return == _ncStartNetworkResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetworkResponseType_reset_return(_ncStartNetworkResponseType, env); ++ ++ _ncStartNetworkResponseType->property_return = arg_return; ++ _ncStartNetworkResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_reset_return( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ _ncStartNetworkResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_is_return_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_TRUE); ++ ++ return !_ncStartNetworkResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_return_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkResponseType_reset_return(_ncStartNetworkResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncStartNetworkResponseType_get_statusMessage( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, (int)0); ++ ++ ++ return _ncStartNetworkResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_statusMessage( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkResponseType->is_valid_statusMessage && ++ arg_statusMessage == _ncStartNetworkResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetworkResponseType_reset_statusMessage(_ncStartNetworkResponseType, env); ++ ++ _ncStartNetworkResponseType->property_statusMessage = arg_statusMessage; ++ _ncStartNetworkResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_reset_statusMessage( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ _ncStartNetworkResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_is_statusMessage_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_TRUE); ++ ++ return !_ncStartNetworkResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_statusMessage_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkResponseType_reset_statusMessage(_ncStartNetworkResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for networkStatus. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncStartNetworkResponseType_get_networkStatus( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, NULL); ++ ++ ++ return _ncStartNetworkResponseType->property_networkStatus; ++ } ++ ++ /** ++ * setter for networkStatus ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_networkStatus( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_networkStatus) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkResponseType->is_valid_networkStatus && ++ arg_networkStatus == _ncStartNetworkResponseType->property_networkStatus) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetworkResponseType_reset_networkStatus(_ncStartNetworkResponseType, env); ++ ++ ++ if(NULL == arg_networkStatus) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncStartNetworkResponseType->property_networkStatus = (axis2_char_t *)axutil_strdup(env, arg_networkStatus); ++ if(NULL == _ncStartNetworkResponseType->property_networkStatus) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for networkStatus"); ++ return AXIS2_FAILURE; ++ } ++ _ncStartNetworkResponseType->is_valid_networkStatus = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for networkStatus ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_reset_networkStatus( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncStartNetworkResponseType->property_networkStatus != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncStartNetworkResponseType->property_networkStatus); ++ _ncStartNetworkResponseType->property_networkStatus = NULL; ++ } ++ ++ ++ ++ _ncStartNetworkResponseType->is_valid_networkStatus = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether networkStatus is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_is_networkStatus_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_TRUE); ++ ++ return !_ncStartNetworkResponseType->is_valid_networkStatus; ++ } ++ ++ /** ++ * Set networkStatus to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_networkStatus_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkResponseType_reset_networkStatus(_ncStartNetworkResponseType, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncStartNetworkResponseType.h' +--- old/node/generated/adb_ncStartNetworkResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncStartNetworkResponseType.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,414 @@ ++ ++ ++ #ifndef ADB_NCSTARTNETWORKRESPONSETYPE_H ++ #define ADB_NCSTARTNETWORKRESPONSETYPE_H ++ ++ /** ++ * adb_ncStartNetworkResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncStartNetworkResponseType class ++ */ ++ typedef struct adb_ncStartNetworkResponseType adb_ncStartNetworkResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncStartNetworkResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncStartNetworkResponseType_t object ++ */ ++ adb_ncStartNetworkResponseType_t* AXIS2_CALL ++ adb_ncStartNetworkResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncStartNetworkResponseType_t object ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_free ( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncStartNetworkResponseType_get_correlationId( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_correlationId( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_reset_correlationId( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncStartNetworkResponseType_get_userId( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_userId( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_reset_userId( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_get_return( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_return( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_reset_return( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncStartNetworkResponseType_get_statusMessage( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_statusMessage( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_reset_statusMessage( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for networkStatus. ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncStartNetworkResponseType_get_networkStatus( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for networkStatus. ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_networkStatus axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_networkStatus( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_networkStatus); ++ ++ /** ++ * Resetter for networkStatus ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_reset_networkStatus( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_is_correlationId_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_is_userId_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_is_return_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_is_statusMessage_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_set_statusMessage_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether networkStatus is nill ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_is_networkStatus_nil( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_deserialize( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncStartNetworkResponseType_declare_parent_namespaces( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncStartNetworkResponseType adb_ncStartNetworkResponseType_t object ++ * @param env pointer to environment struct ++ * @param ncStartNetworkResponseType_om_node node to serialize from ++ * @param ncStartNetworkResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncStartNetworkResponseType_serialize( ++ adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* ncStartNetworkResponseType_om_node, axiom_element_t *ncStartNetworkResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncStartNetworkResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCSTARTNETWORKRESPONSETYPE_H */ ++ ++ + +=== added file 'node/generated/adb_ncStartNetworkType.c' +--- old/node/generated/adb_ncStartNetworkType.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncStartNetworkType.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,2591 @@ ++ ++ ++ /** ++ * adb_ncStartNetworkType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncStartNetworkType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncStartNetworkType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncStartNetworkType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axutil_array_list_t* property_remoteHosts; ++ ++ ++ axis2_bool_t is_valid_remoteHosts; ++ ++ ++ int property_remoteHostPort; ++ ++ ++ axis2_bool_t is_valid_remoteHostPort; ++ ++ ++ int property_vlan; ++ ++ ++ axis2_bool_t is_valid_vlan; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_correlationId_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_userId_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_return_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHosts_nil_at( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, int i); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHosts_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHostPort_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_vlan_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncStartNetworkType_t* AXIS2_CALL ++ adb_ncStartNetworkType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncStartNetworkType_t *_ncStartNetworkType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncStartNetworkType = (adb_ncStartNetworkType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncStartNetworkType_t)); ++ ++ if(NULL == _ncStartNetworkType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncStartNetworkType, 0, sizeof(adb_ncStartNetworkType_t)); ++ ++ _ncStartNetworkType->property_correlationId = NULL; ++ _ncStartNetworkType->is_valid_correlationId = AXIS2_FALSE; ++ _ncStartNetworkType->property_userId = NULL; ++ _ncStartNetworkType->is_valid_userId = AXIS2_FALSE; ++ _ncStartNetworkType->is_valid_return = AXIS2_FALSE; ++ _ncStartNetworkType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncStartNetworkType->property_remoteHosts = NULL; ++ _ncStartNetworkType->is_valid_remoteHosts = AXIS2_FALSE; ++ _ncStartNetworkType->is_valid_remoteHostPort = AXIS2_FALSE; ++ _ncStartNetworkType->is_valid_vlan = AXIS2_FALSE; ++ ++ ++ return _ncStartNetworkType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_free ( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ adb_ncStartNetworkType_reset_correlationId(_ncStartNetworkType, env); ++ adb_ncStartNetworkType_reset_userId(_ncStartNetworkType, env); ++ adb_ncStartNetworkType_reset_return(_ncStartNetworkType, env); ++ adb_ncStartNetworkType_reset_statusMessage(_ncStartNetworkType, env); ++ adb_ncStartNetworkType_reset_remoteHosts(_ncStartNetworkType, env); ++ adb_ncStartNetworkType_reset_remoteHostPort(_ncStartNetworkType, env); ++ adb_ncStartNetworkType_reset_vlan(_ncStartNetworkType, env); ++ ++ ++ if(_ncStartNetworkType) ++ { ++ AXIS2_FREE(env->allocator, _ncStartNetworkType); ++ _ncStartNetworkType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_deserialize( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ int i = 0; ++ axutil_array_list_t *arr_list = NULL; ++ ++ int sequence_broken = 0; ++ axiom_node_t *tmp_node = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncStartNetworkType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncStartNetworkType_set_correlationId(_ncStartNetworkType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncStartNetworkType_set_correlationId(_ncStartNetworkType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncStartNetworkType_set_userId(_ncStartNetworkType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncStartNetworkType_set_userId(_ncStartNetworkType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncStartNetworkType_set_return(_ncStartNetworkType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncStartNetworkType_set_return(_ncStartNetworkType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncStartNetworkType_set_statusMessage(_ncStartNetworkType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ /* ++ * building remoteHosts array ++ */ ++ arr_list = axutil_array_list_create(env, 10); ++ ++ ++ ++ /* ++ * building remoteHosts element ++ */ ++ ++ ++ ++ element_qname = axutil_qname_create(env, "remoteHosts", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) ++ ++ { ++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node =axiom_node_get_next_sibling(current_node, env); ++ is_early_node_valid = AXIS2_FALSE; ++ continue; ++ } ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ ++ if (axutil_qname_equals(element_qname, env, qname)) ++ { ++ ++ is_early_node_valid = AXIS2_TRUE; ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value)); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element remoteHosts"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, "")); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for remoteHosts "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ i ++; ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ else ++ { ++ is_early_node_valid = AXIS2_FALSE; ++ sequence_broken = 1; ++ } ++ ++ } ++ ++ ++ if (i < 0) ++ { ++ /* found element out of order */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "remoteHosts (@minOccurs = '0') only have %d elements", i); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ if(arr_list) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ ++ ++ if(0 == axutil_array_list_size(arr_list,env)) ++ { ++ axutil_array_list_free(arr_list, env); ++ } ++ else ++ { ++ status = adb_ncStartNetworkType_set_remoteHosts(_ncStartNetworkType, env, ++ arr_list); ++ } ++ ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building remoteHostPort element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "remoteHostPort", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncStartNetworkType_set_remoteHostPort(_ncStartNetworkType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element remoteHostPort"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for remoteHostPort "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building vlan element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "vlan", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncStartNetworkType_set_vlan(_ncStartNetworkType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element vlan"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for vlan "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncStartNetworkType_declare_parent_namespaces( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncStartNetworkType_serialize( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t text_value_6[64]; ++ ++ axis2_char_t text_value_7[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncStartNetworkType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncStartNetworkType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncStartNetworkType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncStartNetworkType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkType->is_valid_remoteHosts) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("remoteHosts"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("remoteHosts"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ /* ++ * Parsing remoteHosts array ++ */ ++ if (_ncStartNetworkType->property_remoteHosts != NULL) ++ { ++ ++ sprintf(start_input_str, "<%s%sremoteHosts>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ count = axutil_array_list_size(_ncStartNetworkType->property_remoteHosts, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_ncStartNetworkType->property_remoteHosts, env, i); ++ ++ if(NULL == element) ++ { ++ continue; ++ } ++ ++ ++ /* ++ * parsing remoteHosts element ++ */ ++ ++ ++ ++ text_value_5 = (axis2_char_t*)element; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ } ++ } ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkType->is_valid_remoteHostPort) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("remoteHostPort"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("remoteHostPort"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing remoteHostPort element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sremoteHostPort>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_6, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncStartNetworkType->property_remoteHostPort); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncStartNetworkType->is_valid_vlan) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("vlan"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("vlan"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing vlan element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%svlan>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_7, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncStartNetworkType->property_vlan); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncStartNetworkType_get_correlationId( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, NULL); ++ ++ ++ return _ncStartNetworkType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_correlationId( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkType->is_valid_correlationId && ++ arg_correlationId == _ncStartNetworkType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetworkType_reset_correlationId(_ncStartNetworkType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncStartNetworkType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncStartNetworkType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncStartNetworkType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_correlationId( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncStartNetworkType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncStartNetworkType->property_correlationId); ++ _ncStartNetworkType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncStartNetworkType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_correlationId_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_TRUE); ++ ++ return !_ncStartNetworkType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_correlationId_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkType_reset_correlationId(_ncStartNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncStartNetworkType_get_userId( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, NULL); ++ ++ ++ return _ncStartNetworkType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_userId( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkType->is_valid_userId && ++ arg_userId == _ncStartNetworkType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetworkType_reset_userId(_ncStartNetworkType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncStartNetworkType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncStartNetworkType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncStartNetworkType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_userId( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncStartNetworkType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncStartNetworkType->property_userId); ++ _ncStartNetworkType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncStartNetworkType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_userId_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_TRUE); ++ ++ return !_ncStartNetworkType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_userId_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkType_reset_userId(_ncStartNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_get_return( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, (axis2_bool_t)0); ++ ++ ++ return _ncStartNetworkType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_return( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkType->is_valid_return && ++ arg_return == _ncStartNetworkType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetworkType_reset_return(_ncStartNetworkType, env); ++ ++ _ncStartNetworkType->property_return = arg_return; ++ _ncStartNetworkType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_return( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ ++ _ncStartNetworkType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_return_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_TRUE); ++ ++ return !_ncStartNetworkType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_return_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkType_reset_return(_ncStartNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncStartNetworkType_get_statusMessage( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, (int)0); ++ ++ ++ return _ncStartNetworkType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_statusMessage( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkType->is_valid_statusMessage && ++ arg_statusMessage == _ncStartNetworkType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetworkType_reset_statusMessage(_ncStartNetworkType, env); ++ ++ _ncStartNetworkType->property_statusMessage = arg_statusMessage; ++ _ncStartNetworkType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_statusMessage( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ ++ _ncStartNetworkType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_statusMessage_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_TRUE); ++ ++ return !_ncStartNetworkType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_statusMessage_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkType_reset_statusMessage(_ncStartNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for remoteHosts. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_ncStartNetworkType_get_remoteHosts( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, NULL); ++ ++ ++ return _ncStartNetworkType->property_remoteHosts; ++ } ++ ++ /** ++ * setter for remoteHosts ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHosts( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_remoteHosts) ++ { ++ ++ int size = 0; ++ int i = 0; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkType->is_valid_remoteHosts && ++ arg_remoteHosts == _ncStartNetworkType->property_remoteHosts) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ size = axutil_array_list_size(arg_remoteHosts, env); ++ ++ if (size < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "remoteHosts has less than minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ for(i = 0; i < size; i ++ ) ++ { ++ if(NULL != axutil_array_list_get(arg_remoteHosts, env, i)) ++ { ++ non_nil_exists = AXIS2_TRUE; ++ break; ++ } ++ } ++ ++ adb_ncStartNetworkType_reset_remoteHosts(_ncStartNetworkType, env); ++ ++ ++ if(NULL == arg_remoteHosts) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncStartNetworkType->property_remoteHosts = arg_remoteHosts; ++ if(non_nil_exists) ++ { ++ _ncStartNetworkType->is_valid_remoteHosts = AXIS2_TRUE; ++ } ++ ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ /** ++ * Get ith element of remoteHosts. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncStartNetworkType_get_remoteHosts_at( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, int i) ++ { ++ axis2_char_t* ret_val; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, NULL); ++ ++ ++ if(_ncStartNetworkType->property_remoteHosts == NULL) ++ { ++ return (axis2_char_t*)0; ++ } ++ ret_val = (axis2_char_t*)axutil_array_list_get(_ncStartNetworkType->property_remoteHosts, env, i); ++ ++ return ret_val; ++ ++ } ++ ++ /** ++ * Set the ith element of remoteHosts. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHosts_at( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_remoteHosts) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ int k; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ if( _ncStartNetworkType->is_valid_remoteHosts && ++ _ncStartNetworkType->property_remoteHosts && ++ ++ arg_remoteHosts == (axis2_char_t*)axutil_array_list_get(_ncStartNetworkType->property_remoteHosts, env, i)) ++ ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_remoteHosts) ++ { ++ if(_ncStartNetworkType->property_remoteHosts != NULL) ++ { ++ size = axutil_array_list_size(_ncStartNetworkType->property_remoteHosts, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_ncStartNetworkType->property_remoteHosts, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if(k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ } ++ else ++ { ++ non_nil_exists = AXIS2_TRUE; ++ } ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of remoteHosts is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_ncStartNetworkType->property_remoteHosts == NULL) ++ { ++ _ncStartNetworkType->property_remoteHosts = axutil_array_list_create(env, 10); ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_ncStartNetworkType->property_remoteHosts, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _ncStartNetworkType->is_valid_remoteHosts = AXIS2_FALSE; ++ axutil_array_list_set(_ncStartNetworkType->property_remoteHosts , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ axutil_array_list_set(_ncStartNetworkType->property_remoteHosts , env, i, axutil_strdup(env, arg_remoteHosts)); ++ _ncStartNetworkType->is_valid_remoteHosts = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Add to remoteHosts. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_add_remoteHosts( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_remoteHosts) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ ++ if(NULL == arg_remoteHosts) ++ { ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ if(_ncStartNetworkType->property_remoteHosts == NULL) ++ { ++ _ncStartNetworkType->property_remoteHosts = axutil_array_list_create(env, 10); ++ } ++ if(_ncStartNetworkType->property_remoteHosts == NULL) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for remoteHosts"); ++ return AXIS2_FAILURE; ++ ++ } ++ ++ axutil_array_list_add(_ncStartNetworkType->property_remoteHosts , env, axutil_strdup(env, arg_remoteHosts)); ++ _ncStartNetworkType->is_valid_remoteHosts = AXIS2_TRUE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Get the size of the remoteHosts array. ++ */ ++ int AXIS2_CALL ++ adb_ncStartNetworkType_sizeof_remoteHosts( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, -1); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, -1); ++ if(_ncStartNetworkType->property_remoteHosts == NULL) ++ { ++ return 0; ++ } ++ return axutil_array_list_size(_ncStartNetworkType->property_remoteHosts, env); ++ } ++ ++ /** ++ * remove the ith element, same as set_nil_at. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_remove_remoteHosts_at( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, int i) ++ { ++ return adb_ncStartNetworkType_set_remoteHosts_nil_at(_ncStartNetworkType, env, i); ++ } ++ ++ ++ ++ /** ++ * resetter for remoteHosts ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_remoteHosts( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ ++ ++ if (_ncStartNetworkType->property_remoteHosts != NULL) ++ { ++ count = axutil_array_list_size(_ncStartNetworkType->property_remoteHosts, env); ++ for(i = 0; i < count; i ++) ++ { ++ element = axutil_array_list_get(_ncStartNetworkType->property_remoteHosts, env, i); ++ ++ ++ ++ if(element != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element); ++ element = NULL; ++ } ++ ++ ++ ++ ++ } ++ axutil_array_list_free(_ncStartNetworkType->property_remoteHosts, env); ++ } ++ _ncStartNetworkType->is_valid_remoteHosts = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether remoteHosts is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_remoteHosts_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_TRUE); ++ ++ return !_ncStartNetworkType->is_valid_remoteHosts; ++ } ++ ++ /** ++ * Set remoteHosts to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHosts_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkType_reset_remoteHosts(_ncStartNetworkType, env); ++ } ++ ++ ++ /** ++ * Check whether remoteHosts is nill at i ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_remoteHosts_nil_at( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, int i) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_TRUE); ++ ++ return (_ncStartNetworkType->is_valid_remoteHosts == AXIS2_FALSE || ++ NULL == _ncStartNetworkType->property_remoteHosts || ++ NULL == axutil_array_list_get(_ncStartNetworkType->property_remoteHosts, env, i)); ++ } ++ ++ /** ++ * Set remoteHosts to nill at i ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHosts_nil_at( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, int i) ++ { ++ void *element = NULL; ++ int size = 0; ++ int j; ++ axis2_bool_t non_nil_exists = AXIS2_FALSE; ++ ++ int k = 0; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkType->property_remoteHosts == NULL || ++ _ncStartNetworkType->is_valid_remoteHosts == AXIS2_FALSE) ++ { ++ ++ non_nil_exists = AXIS2_FALSE; ++ } ++ else ++ { ++ size = axutil_array_list_size(_ncStartNetworkType->property_remoteHosts, env); ++ for(j = 0, k = 0; j < size; j ++ ) ++ { ++ if(i == j) continue; ++ if(NULL != axutil_array_list_get(_ncStartNetworkType->property_remoteHosts, env, i)) ++ { ++ k ++; ++ non_nil_exists = AXIS2_TRUE; ++ if( k >= 0) ++ { ++ break; ++ } ++ } ++ } ++ } ++ ++ ++ if( k < 0) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of remoteHosts is beinng set to be smaller than the specificed number of minOccurs(0)"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(_ncStartNetworkType->property_remoteHosts == NULL) ++ { ++ _ncStartNetworkType->is_valid_remoteHosts = AXIS2_FALSE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ /* check whether there already exist an element */ ++ element = axutil_array_list_get(_ncStartNetworkType->property_remoteHosts, env, i); ++ if(NULL != element) ++ { ++ ++ ++ ++ /* This is an unknown type or a primitive. Please free this manually*/ ++ ++ } ++ ++ ++ if(!non_nil_exists) ++ { ++ ++ _ncStartNetworkType->is_valid_remoteHosts = AXIS2_FALSE; ++ axutil_array_list_set(_ncStartNetworkType->property_remoteHosts , env, i, NULL); ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ axutil_array_list_set(_ncStartNetworkType->property_remoteHosts , env, i, NULL); ++ ++ return AXIS2_SUCCESS; ++ ++ } ++ ++ ++ ++ /** ++ * getter for remoteHostPort. ++ */ ++ int AXIS2_CALL ++ adb_ncStartNetworkType_get_remoteHostPort( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, (int)0); ++ ++ ++ return _ncStartNetworkType->property_remoteHostPort; ++ } ++ ++ /** ++ * setter for remoteHostPort ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHostPort( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ const int arg_remoteHostPort) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkType->is_valid_remoteHostPort && ++ arg_remoteHostPort == _ncStartNetworkType->property_remoteHostPort) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetworkType_reset_remoteHostPort(_ncStartNetworkType, env); ++ ++ _ncStartNetworkType->property_remoteHostPort = arg_remoteHostPort; ++ _ncStartNetworkType->is_valid_remoteHostPort = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for remoteHostPort ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_remoteHostPort( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ ++ _ncStartNetworkType->is_valid_remoteHostPort = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether remoteHostPort is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_remoteHostPort_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_TRUE); ++ ++ return !_ncStartNetworkType->is_valid_remoteHostPort; ++ } ++ ++ /** ++ * Set remoteHostPort to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHostPort_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkType_reset_remoteHostPort(_ncStartNetworkType, env); ++ } ++ ++ ++ ++ /** ++ * getter for vlan. ++ */ ++ int AXIS2_CALL ++ adb_ncStartNetworkType_get_vlan( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, (int)0); ++ ++ ++ return _ncStartNetworkType->property_vlan; ++ } ++ ++ /** ++ * setter for vlan ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_vlan( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ const int arg_vlan) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ if(_ncStartNetworkType->is_valid_vlan && ++ arg_vlan == _ncStartNetworkType->property_vlan) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncStartNetworkType_reset_vlan(_ncStartNetworkType, env); ++ ++ _ncStartNetworkType->property_vlan = arg_vlan; ++ _ncStartNetworkType->is_valid_vlan = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for vlan ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_vlan( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_FAILURE); ++ ++ ++ _ncStartNetworkType->is_valid_vlan = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether vlan is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_vlan_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncStartNetworkType, AXIS2_TRUE); ++ ++ return !_ncStartNetworkType->is_valid_vlan; ++ } ++ ++ /** ++ * Set vlan to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_vlan_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env) ++ { ++ return adb_ncStartNetworkType_reset_vlan(_ncStartNetworkType, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncStartNetworkType.h' +--- old/node/generated/adb_ncStartNetworkType.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncStartNetworkType.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,642 @@ ++ ++ ++ #ifndef ADB_NCSTARTNETWORKTYPE_H ++ #define ADB_NCSTARTNETWORKTYPE_H ++ ++ /** ++ * adb_ncStartNetworkType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncStartNetworkType class ++ */ ++ typedef struct adb_ncStartNetworkType adb_ncStartNetworkType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncStartNetworkType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncStartNetworkType_t object ++ */ ++ adb_ncStartNetworkType_t* AXIS2_CALL ++ adb_ncStartNetworkType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncStartNetworkType_t object ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_free ( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncStartNetworkType_get_correlationId( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_correlationId( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_correlationId( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncStartNetworkType_get_userId( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_userId( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_userId( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_get_return( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_return( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_return( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncStartNetworkType_get_statusMessage( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_statusMessage( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_statusMessage( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for remoteHosts. Deprecated for array types, Use adb_ncStartNetworkType_get_remoteHosts_at instead ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return Array of axis2_char_t*s. ++ */ ++ axutil_array_list_t* AXIS2_CALL ++ adb_ncStartNetworkType_get_remoteHosts( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for remoteHosts.Deprecated for array types, Use adb_ncStartNetworkType_set_remoteHosts_at ++ * or adb_ncStartNetworkType_add_remoteHosts instead. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_remoteHosts Array of axis2_char_t*s. ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHosts( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ axutil_array_list_t* arg_remoteHosts); ++ ++ /** ++ * Resetter for remoteHosts ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_remoteHosts( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for remoteHostPort. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncStartNetworkType_get_remoteHostPort( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for remoteHostPort. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_remoteHostPort int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHostPort( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ const int arg_remoteHostPort); ++ ++ /** ++ * Resetter for remoteHostPort ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_remoteHostPort( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for vlan. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncStartNetworkType_get_vlan( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for vlan. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_vlan int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_vlan( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ const int arg_vlan); ++ ++ /** ++ * Resetter for vlan ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_reset_vlan( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ /****************************** Getters and Setters For Arrays **********************************/ ++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/ ++ ++ /** ++ * E.g. use of get_at, set_at, add and sizeof ++ * ++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ ) ++ * { ++ * // Getting ith value to property_object variable ++ * property_object = adb_element_get_property_at(adb_object, env, i); ++ * ++ * // Setting ith value from property_object variable ++ * adb_element_set_property_at(adb_object, env, i, property_object); ++ * ++ * // Appending the value to the end of the array from property_object variable ++ * adb_element_add_property(adb_object, env, property_object); ++ * ++ * // Removing the ith value from an array ++ * adb_element_remove_property_at(adb_object, env, i); ++ * ++ * } ++ * ++ */ ++ ++ ++ ++ /** ++ * Get the ith element of remoteHosts. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncStartNetworkType_get_remoteHosts_at( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, int i); ++ ++ /** ++ * Set the ith element of remoteHosts. (If the ith already exist, it will be replaced) ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to return ++ * @param arg_remoteHosts element to set axis2_char_t* to the array ++ * @return ith axis2_char_t* of the array ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHosts_at( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, int i, ++ const axis2_char_t* arg_remoteHosts); ++ ++ ++ /** ++ * Add to remoteHosts. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param arg_remoteHosts element to add axis2_char_t* to the array ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_add_remoteHosts( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_remoteHosts); ++ ++ /** ++ * Get the size of the remoteHosts array. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct. ++ * @return the size of the remoteHosts array. ++ */ ++ int AXIS2_CALL ++ adb_ncStartNetworkType_sizeof_remoteHosts( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ /** ++ * Remove the ith element of remoteHosts. ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param i index of the item to remove ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_remove_remoteHosts_at( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_correlationId_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_userId_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_return_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_statusMessage_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_statusMessage_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether remoteHosts is nill ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_remoteHosts_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether remoteHostPort is nill ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_remoteHostPort_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether vlan is nill ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_vlan_nil( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env); ++ ++ ++ ++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/ ++ ++ /** ++ * NOTE: You may set this to remove specific elements in the array ++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs ++ */ ++ ++ /** ++ * Check whether remoteHosts is nill at i ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to return. ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_remoteHosts_nil_at( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, int i); ++ ++ ++ /** ++ * Set remoteHosts to nill at i ++ * @param _ncStartNetworkType _ adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct. ++ * @param i index of the item to set. ++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise. ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_set_remoteHosts_nil_at( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, int i); ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncStartNetworkType_deserialize( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncStartNetworkType_declare_parent_namespaces( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncStartNetworkType adb_ncStartNetworkType_t object ++ * @param env pointer to environment struct ++ * @param ncStartNetworkType_om_node node to serialize from ++ * @param ncStartNetworkType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncStartNetworkType_serialize( ++ adb_ncStartNetworkType_t* _ncStartNetworkType, ++ const axutil_env_t *env, ++ axiom_node_t* ncStartNetworkType_om_node, axiom_element_t *ncStartNetworkType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncStartNetworkType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncStartNetworkType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCSTARTNETWORKTYPE_H */ ++ ++ + +=== added file 'node/generated/adb_ncTerminateInstance.c' +--- old/node/generated/adb_ncTerminateInstance.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncTerminateInstance.c 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncTerminateInstance.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncTerminateInstance.h" ++ ++ /* ++ * implmentation of the ncTerminateInstance|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncTerminateInstance ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncTerminateInstanceType_t* property_ncTerminateInstance; ++ ++ ++ axis2_bool_t is_valid_ncTerminateInstance; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncTerminateInstance_t* AXIS2_CALL ++ adb_ncTerminateInstance_create( ++ const axutil_env_t *env) ++ { ++ adb_ncTerminateInstance_t *_ncTerminateInstance = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncTerminateInstance = (adb_ncTerminateInstance_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncTerminateInstance_t)); ++ ++ if(NULL == _ncTerminateInstance) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncTerminateInstance, 0, sizeof(adb_ncTerminateInstance_t)); ++ ++ _ncTerminateInstance->property_ncTerminateInstance = NULL; ++ _ncTerminateInstance->is_valid_ncTerminateInstance = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncTerminateInstance", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncTerminateInstance->qname = qname; ++ ++ ++ return _ncTerminateInstance; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstance_free ( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstance, AXIS2_FAILURE); ++ ++ adb_ncTerminateInstance_reset_ncTerminateInstance(_ncTerminateInstance, env); ++ ++ if(_ncTerminateInstance->qname) ++ { ++ axutil_qname_free (_ncTerminateInstance->qname, env); ++ _ncTerminateInstance->qname = NULL; ++ } ++ ++ ++ if(_ncTerminateInstance) ++ { ++ AXIS2_FREE(env->allocator, _ncTerminateInstance); ++ _ncTerminateInstance = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstance_deserialize( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstance, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncTerminateInstance : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncTerminateInstance-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncTerminateInstance : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncTerminateInstance-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncTerminateInstance element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncTerminateInstance", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncTerminateInstanceType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncTerminateInstanceType_create(env); ++ ++ status = adb_ncTerminateInstanceType_deserialize((adb_ncTerminateInstanceType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncTerminateInstance"); ++ } ++ else ++ { ++ status = adb_ncTerminateInstance_set_ncTerminateInstance(_ncTerminateInstance, env, ++ (adb_ncTerminateInstanceType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncTerminateInstance "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncTerminateInstance missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstance_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncTerminateInstance_declare_parent_namespaces( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncTerminateInstance_serialize( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstance, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncTerminateInstance", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstance->is_valid_ncTerminateInstance) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncTerminateInstance") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncTerminateInstance xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncTerminateInstance"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncTerminateInstance"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncTerminateInstance element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncTerminateInstance", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncTerminateInstanceType_serialize(_ncTerminateInstance->property_ncTerminateInstance, ++ env, current_node, parent_element, ++ adb_ncTerminateInstanceType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncTerminateInstance. ++ */ ++ adb_ncTerminateInstanceType_t* AXIS2_CALL ++ adb_ncTerminateInstance_get_ncTerminateInstance( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstance, NULL); ++ ++ ++ return _ncTerminateInstance->property_ncTerminateInstance; ++ } ++ ++ /** ++ * setter for ncTerminateInstance ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstance_set_ncTerminateInstance( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env, ++ adb_ncTerminateInstanceType_t* arg_ncTerminateInstance) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstance, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstance->is_valid_ncTerminateInstance && ++ arg_ncTerminateInstance == _ncTerminateInstance->property_ncTerminateInstance) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncTerminateInstance_reset_ncTerminateInstance(_ncTerminateInstance, env); ++ ++ ++ if(NULL == arg_ncTerminateInstance) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncTerminateInstance->property_ncTerminateInstance = arg_ncTerminateInstance; ++ _ncTerminateInstance->is_valid_ncTerminateInstance = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncTerminateInstance ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstance_reset_ncTerminateInstance( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstance, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncTerminateInstance->property_ncTerminateInstance != NULL) ++ { ++ ++ ++ adb_ncTerminateInstanceType_free(_ncTerminateInstance->property_ncTerminateInstance, env); ++ _ncTerminateInstance->property_ncTerminateInstance = NULL; ++ } ++ ++ ++ ++ _ncTerminateInstance->is_valid_ncTerminateInstance = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncTerminateInstance is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstance_is_ncTerminateInstance_nil( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstance, AXIS2_TRUE); ++ ++ return !_ncTerminateInstance->is_valid_ncTerminateInstance; ++ } ++ ++ /** ++ * Set ncTerminateInstance to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstance_set_ncTerminateInstance_nil( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstance_reset_ncTerminateInstance(_ncTerminateInstance, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncTerminateInstance.h' +--- old/node/generated/adb_ncTerminateInstance.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncTerminateInstance.h 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCTERMINATEINSTANCE_H ++ #define ADB_NCTERMINATEINSTANCE_H ++ ++ /** ++ * adb_ncTerminateInstance.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncTerminateInstance class ++ */ ++ typedef struct adb_ncTerminateInstance adb_ncTerminateInstance_t; ++ ++ ++ #include "adb_ncTerminateInstanceType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncTerminateInstance_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncTerminateInstance_t object ++ */ ++ adb_ncTerminateInstance_t* AXIS2_CALL ++ adb_ncTerminateInstance_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncTerminateInstance_t object ++ * @param _ncTerminateInstance adb_ncTerminateInstance_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstance_free ( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncTerminateInstance. ++ * @param _ncTerminateInstance adb_ncTerminateInstance_t object ++ * @param env pointer to environment struct ++ * @return adb_ncTerminateInstanceType_t* ++ */ ++ adb_ncTerminateInstanceType_t* AXIS2_CALL ++ adb_ncTerminateInstance_get_ncTerminateInstance( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncTerminateInstance. ++ * @param _ncTerminateInstance adb_ncTerminateInstance_t object ++ * @param env pointer to environment struct ++ * @param arg_ncTerminateInstance adb_ncTerminateInstanceType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstance_set_ncTerminateInstance( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env, ++ adb_ncTerminateInstanceType_t* arg_ncTerminateInstance); ++ ++ /** ++ * Resetter for ncTerminateInstance ++ * @param _ncTerminateInstance adb_ncTerminateInstance_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstance_reset_ncTerminateInstance( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncTerminateInstance is nill ++ * @param _ncTerminateInstance adb_ncTerminateInstance_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstance_is_ncTerminateInstance_nil( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncTerminateInstance to nill (currently the same as reset) ++ * @param _ncTerminateInstance adb_ncTerminateInstance_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstance_set_ncTerminateInstance_nil( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncTerminateInstance adb_ncTerminateInstance_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstance_deserialize( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncTerminateInstance adb_ncTerminateInstance_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncTerminateInstance_declare_parent_namespaces( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncTerminateInstance adb_ncTerminateInstance_t object ++ * @param env pointer to environment struct ++ * @param ncTerminateInstance_om_node node to serialize from ++ * @param ncTerminateInstance_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncTerminateInstance_serialize( ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ const axutil_env_t *env, ++ axiom_node_t* ncTerminateInstance_om_node, axiom_element_t *ncTerminateInstance_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncTerminateInstance is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstance_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCTERMINATEINSTANCE_H */ ++ ++ + +=== added file 'node/generated/adb_ncTerminateInstanceResponse.c' +--- old/node/generated/adb_ncTerminateInstanceResponse.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncTerminateInstanceResponse.c 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,525 @@ ++ ++ ++ /** ++ * adb_ncTerminateInstanceResponse.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncTerminateInstanceResponse.h" ++ ++ /* ++ * implmentation of the ncTerminateInstanceResponse|http://eucalyptus.ucsb.edu/ element ++ */ ++ ++ ++ ++ struct adb_ncTerminateInstanceResponse ++ { ++ ++ axutil_qname_t* qname; ++ adb_ncTerminateInstanceResponseType_t* property_ncTerminateInstanceResponse; ++ ++ ++ axis2_bool_t is_valid_ncTerminateInstanceResponse; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncTerminateInstanceResponse_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponse_create( ++ const axutil_env_t *env) ++ { ++ adb_ncTerminateInstanceResponse_t *_ncTerminateInstanceResponse = NULL; ++ ++ axutil_qname_t* qname = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncTerminateInstanceResponse = (adb_ncTerminateInstanceResponse_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncTerminateInstanceResponse_t)); ++ ++ if(NULL == _ncTerminateInstanceResponse) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncTerminateInstanceResponse, 0, sizeof(adb_ncTerminateInstanceResponse_t)); ++ ++ _ncTerminateInstanceResponse->property_ncTerminateInstanceResponse = NULL; ++ _ncTerminateInstanceResponse->is_valid_ncTerminateInstanceResponse = AXIS2_FALSE; ++ ++ qname = axutil_qname_create (env, ++ "ncTerminateInstanceResponse", ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ _ncTerminateInstanceResponse->qname = qname; ++ ++ ++ return _ncTerminateInstanceResponse; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_free ( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponse, AXIS2_FAILURE); ++ ++ adb_ncTerminateInstanceResponse_reset_ncTerminateInstanceResponse(_ncTerminateInstanceResponse, env); ++ ++ if(_ncTerminateInstanceResponse->qname) ++ { ++ axutil_qname_free (_ncTerminateInstanceResponse->qname, env); ++ _ncTerminateInstanceResponse->qname = NULL; ++ } ++ ++ ++ if(_ncTerminateInstanceResponse) ++ { ++ AXIS2_FREE(env->allocator, _ncTerminateInstanceResponse); ++ _ncTerminateInstanceResponse = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_deserialize( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ void *element = NULL; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponse, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncTerminateInstanceResponse : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env); ++ qname = axiom_element_get_qname(current_element, env, parent); ++ if (axutil_qname_equals(qname, env, _ncTerminateInstanceResponse-> qname)) ++ { ++ ++ first_node = parent; ++ ++ } ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncTerminateInstanceResponse : " ++ "Expected %s but returned %s", ++ axutil_qname_to_string(_ncTerminateInstanceResponse-> qname, env), ++ axutil_qname_to_string(qname, env)); ++ ++ return AXIS2_FAILURE; ++ } ++ ++ ++ ++ /* ++ * building ncTerminateInstanceResponse element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "ncTerminateInstanceResponse", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if (adb_ncTerminateInstanceResponseType_is_particle() || ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ element = (void*)adb_ncTerminateInstanceResponseType_create(env); ++ ++ status = adb_ncTerminateInstanceResponseType_deserialize((adb_ncTerminateInstanceResponseType_t*)element, ++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE); ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element ncTerminateInstanceResponse"); ++ } ++ else ++ { ++ status = adb_ncTerminateInstanceResponse_set_ncTerminateInstanceResponse(_ncTerminateInstanceResponse, env, ++ (adb_ncTerminateInstanceResponseType_t*)element); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ncTerminateInstanceResponse "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element ncTerminateInstanceResponse missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncTerminateInstanceResponse_declare_parent_namespaces( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponse_serialize( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ int next_ns_index_value = 0; ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponse, NULL); ++ ++ ++ namespaces = axutil_hash_make(env); ++ next_ns_index = &next_ns_index_value; ++ ++ ns1 = axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ "n"); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n")); ++ ++ ++ parent_element = axiom_element_create (env, NULL, "ncTerminateInstanceResponse", ns1 , &parent); ++ ++ ++ axiom_element_set_namespace(parent_element, env, ns1, parent); ++ ++ ++ ++ data_source = axiom_data_source_create(env, parent, ¤t_node); ++ stream = axiom_data_source_get_stream(data_source, env); ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceResponse->is_valid_ncTerminateInstanceResponse) ++ { ++ ++ ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncTerminateInstanceResponse") + ++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\""))); ++ ++ ++ sprintf(start_input_str, "<%s%sncTerminateInstanceResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str)); ++ AXIS2_FREE(env->allocator,start_input_str); ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("ncTerminateInstanceResponse"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ncTerminateInstanceResponse"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing ncTerminateInstanceResponse element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sncTerminateInstanceResponse", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ adb_ncTerminateInstanceResponseType_serialize(_ncTerminateInstanceResponse->property_ncTerminateInstanceResponse, ++ env, current_node, parent_element, ++ adb_ncTerminateInstanceResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(namespaces) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, NULL, NULL, &val); ++ AXIS2_FREE(env->allocator, val); ++ } ++ axutil_hash_free(namespaces, env); ++ } ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for ncTerminateInstanceResponse. ++ */ ++ adb_ncTerminateInstanceResponseType_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponse_get_ncTerminateInstanceResponse( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponse, NULL); ++ ++ ++ return _ncTerminateInstanceResponse->property_ncTerminateInstanceResponse; ++ } ++ ++ /** ++ * setter for ncTerminateInstanceResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_set_ncTerminateInstanceResponse( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env, ++ adb_ncTerminateInstanceResponseType_t* arg_ncTerminateInstanceResponse) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponse, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceResponse->is_valid_ncTerminateInstanceResponse && ++ arg_ncTerminateInstanceResponse == _ncTerminateInstanceResponse->property_ncTerminateInstanceResponse) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncTerminateInstanceResponse_reset_ncTerminateInstanceResponse(_ncTerminateInstanceResponse, env); ++ ++ ++ if(NULL == arg_ncTerminateInstanceResponse) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncTerminateInstanceResponse->property_ncTerminateInstanceResponse = arg_ncTerminateInstanceResponse; ++ _ncTerminateInstanceResponse->is_valid_ncTerminateInstanceResponse = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for ncTerminateInstanceResponse ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_reset_ncTerminateInstanceResponse( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponse, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncTerminateInstanceResponse->property_ncTerminateInstanceResponse != NULL) ++ { ++ ++ ++ adb_ncTerminateInstanceResponseType_free(_ncTerminateInstanceResponse->property_ncTerminateInstanceResponse, env); ++ _ncTerminateInstanceResponse->property_ncTerminateInstanceResponse = NULL; ++ } ++ ++ ++ ++ _ncTerminateInstanceResponse->is_valid_ncTerminateInstanceResponse = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether ncTerminateInstanceResponse is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_is_ncTerminateInstanceResponse_nil( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponse, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceResponse->is_valid_ncTerminateInstanceResponse; ++ } ++ ++ /** ++ * Set ncTerminateInstanceResponse to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_set_ncTerminateInstanceResponse_nil( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceResponse_reset_ncTerminateInstanceResponse(_ncTerminateInstanceResponse, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncTerminateInstanceResponse.h' +--- old/node/generated/adb_ncTerminateInstanceResponse.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncTerminateInstanceResponse.h 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,208 @@ ++ ++ ++ #ifndef ADB_NCTERMINATEINSTANCERESPONSE_H ++ #define ADB_NCTERMINATEINSTANCERESPONSE_H ++ ++ /** ++ * adb_ncTerminateInstanceResponse.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncTerminateInstanceResponse class ++ */ ++ typedef struct adb_ncTerminateInstanceResponse adb_ncTerminateInstanceResponse_t; ++ ++ ++ #include "adb_ncTerminateInstanceResponseType.h" ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncTerminateInstanceResponse_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncTerminateInstanceResponse_t object ++ */ ++ adb_ncTerminateInstanceResponse_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponse_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncTerminateInstanceResponse_t object ++ * @param _ncTerminateInstanceResponse adb_ncTerminateInstanceResponse_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_free ( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for ncTerminateInstanceResponse. ++ * @param _ncTerminateInstanceResponse adb_ncTerminateInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @return adb_ncTerminateInstanceResponseType_t* ++ */ ++ adb_ncTerminateInstanceResponseType_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponse_get_ncTerminateInstanceResponse( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for ncTerminateInstanceResponse. ++ * @param _ncTerminateInstanceResponse adb_ncTerminateInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @param arg_ncTerminateInstanceResponse adb_ncTerminateInstanceResponseType_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_set_ncTerminateInstanceResponse( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env, ++ adb_ncTerminateInstanceResponseType_t* arg_ncTerminateInstanceResponse); ++ ++ /** ++ * Resetter for ncTerminateInstanceResponse ++ * @param _ncTerminateInstanceResponse adb_ncTerminateInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_reset_ncTerminateInstanceResponse( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether ncTerminateInstanceResponse is nill ++ * @param _ncTerminateInstanceResponse adb_ncTerminateInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_is_ncTerminateInstanceResponse_nil( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set ncTerminateInstanceResponse to nill (currently the same as reset) ++ * @param _ncTerminateInstanceResponse adb_ncTerminateInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_set_ncTerminateInstanceResponse_nil( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env); ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncTerminateInstanceResponse adb_ncTerminateInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_deserialize( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncTerminateInstanceResponse adb_ncTerminateInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncTerminateInstanceResponse_declare_parent_namespaces( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncTerminateInstanceResponse adb_ncTerminateInstanceResponse_t object ++ * @param env pointer to environment struct ++ * @param ncTerminateInstanceResponse_om_node node to serialize from ++ * @param ncTerminateInstanceResponse_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponse_serialize( ++ adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, ++ const axutil_env_t *env, ++ axiom_node_t* ncTerminateInstanceResponse_om_node, axiom_element_t *ncTerminateInstanceResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncTerminateInstanceResponse is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponse_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCTERMINATEINSTANCERESPONSE_H */ ++ ++ + +=== added file 'node/generated/adb_ncTerminateInstanceResponseType.c' +--- old/node/generated/adb_ncTerminateInstanceResponseType.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncTerminateInstanceResponseType.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,2394 @@ ++ ++ ++ /** ++ * adb_ncTerminateInstanceResponseType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncTerminateInstanceResponseType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncTerminateInstanceResponseType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncTerminateInstanceResponseType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_char_t* property_instanceId; ++ ++ ++ axis2_bool_t is_valid_instanceId; ++ ++ ++ axis2_char_t* property_shutdownState; ++ ++ ++ axis2_bool_t is_valid_shutdownState; ++ ++ ++ axis2_char_t* property_previousState; ++ ++ ++ axis2_bool_t is_valid_previousState; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_correlationId_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_userId_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_return_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_instanceId_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_shutdownState_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_previousState_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncTerminateInstanceResponseType_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncTerminateInstanceResponseType_t *_ncTerminateInstanceResponseType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncTerminateInstanceResponseType = (adb_ncTerminateInstanceResponseType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncTerminateInstanceResponseType_t)); ++ ++ if(NULL == _ncTerminateInstanceResponseType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncTerminateInstanceResponseType, 0, sizeof(adb_ncTerminateInstanceResponseType_t)); ++ ++ _ncTerminateInstanceResponseType->property_correlationId = NULL; ++ _ncTerminateInstanceResponseType->is_valid_correlationId = AXIS2_FALSE; ++ _ncTerminateInstanceResponseType->property_userId = NULL; ++ _ncTerminateInstanceResponseType->is_valid_userId = AXIS2_FALSE; ++ _ncTerminateInstanceResponseType->is_valid_return = AXIS2_FALSE; ++ _ncTerminateInstanceResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncTerminateInstanceResponseType->property_instanceId = NULL; ++ _ncTerminateInstanceResponseType->is_valid_instanceId = AXIS2_FALSE; ++ _ncTerminateInstanceResponseType->property_shutdownState = NULL; ++ _ncTerminateInstanceResponseType->is_valid_shutdownState = AXIS2_FALSE; ++ _ncTerminateInstanceResponseType->property_previousState = NULL; ++ _ncTerminateInstanceResponseType->is_valid_previousState = AXIS2_FALSE; ++ ++ ++ return _ncTerminateInstanceResponseType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_free ( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ adb_ncTerminateInstanceResponseType_reset_correlationId(_ncTerminateInstanceResponseType, env); ++ adb_ncTerminateInstanceResponseType_reset_userId(_ncTerminateInstanceResponseType, env); ++ adb_ncTerminateInstanceResponseType_reset_return(_ncTerminateInstanceResponseType, env); ++ adb_ncTerminateInstanceResponseType_reset_statusMessage(_ncTerminateInstanceResponseType, env); ++ adb_ncTerminateInstanceResponseType_reset_instanceId(_ncTerminateInstanceResponseType, env); ++ adb_ncTerminateInstanceResponseType_reset_shutdownState(_ncTerminateInstanceResponseType, env); ++ adb_ncTerminateInstanceResponseType_reset_previousState(_ncTerminateInstanceResponseType, env); ++ ++ ++ if(_ncTerminateInstanceResponseType) ++ { ++ AXIS2_FREE(env->allocator, _ncTerminateInstanceResponseType); ++ _ncTerminateInstanceResponseType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_deserialize( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncTerminateInstanceResponseType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncTerminateInstanceResponseType_set_correlationId(_ncTerminateInstanceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncTerminateInstanceResponseType_set_correlationId(_ncTerminateInstanceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncTerminateInstanceResponseType_set_userId(_ncTerminateInstanceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncTerminateInstanceResponseType_set_userId(_ncTerminateInstanceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncTerminateInstanceResponseType_set_return(_ncTerminateInstanceResponseType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncTerminateInstanceResponseType_set_return(_ncTerminateInstanceResponseType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncTerminateInstanceResponseType_set_statusMessage(_ncTerminateInstanceResponseType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncTerminateInstanceResponseType_set_instanceId(_ncTerminateInstanceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncTerminateInstanceResponseType_set_instanceId(_ncTerminateInstanceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element instanceId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building shutdownState element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "shutdownState", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncTerminateInstanceResponseType_set_shutdownState(_ncTerminateInstanceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element shutdownState"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncTerminateInstanceResponseType_set_shutdownState(_ncTerminateInstanceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for shutdownState "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building previousState element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "previousState", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncTerminateInstanceResponseType_set_previousState(_ncTerminateInstanceResponseType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element previousState"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncTerminateInstanceResponseType_set_previousState(_ncTerminateInstanceResponseType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for previousState "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_declare_parent_namespaces( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_serialize( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *text_value_6; ++ axis2_char_t *text_value_6_temp; ++ ++ axis2_char_t *text_value_7; ++ axis2_char_t *text_value_7_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceResponseType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncTerminateInstanceResponseType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceResponseType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncTerminateInstanceResponseType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceResponseType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncTerminateInstanceResponseType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceResponseType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncTerminateInstanceResponseType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceResponseType->is_valid_instanceId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _ncTerminateInstanceResponseType->property_instanceId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceResponseType->is_valid_shutdownState) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("shutdownState"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("shutdownState"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing shutdownState element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sshutdownState>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_6 = _ncTerminateInstanceResponseType->property_shutdownState; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE); ++ if (text_value_6_temp) ++ { ++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp)); ++ AXIS2_FREE(env->allocator, text_value_6_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceResponseType->is_valid_previousState) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("previousState"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("previousState"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing previousState element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%spreviousState>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_7 = _ncTerminateInstanceResponseType->property_previousState; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE); ++ if (text_value_7_temp) ++ { ++ axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp)); ++ AXIS2_FREE(env->allocator, text_value_7_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_correlationId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, NULL); ++ ++ ++ return _ncTerminateInstanceResponseType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_correlationId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceResponseType->is_valid_correlationId && ++ arg_correlationId == _ncTerminateInstanceResponseType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncTerminateInstanceResponseType_reset_correlationId(_ncTerminateInstanceResponseType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncTerminateInstanceResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncTerminateInstanceResponseType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncTerminateInstanceResponseType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_correlationId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncTerminateInstanceResponseType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncTerminateInstanceResponseType->property_correlationId); ++ _ncTerminateInstanceResponseType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncTerminateInstanceResponseType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_correlationId_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceResponseType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_correlationId_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceResponseType_reset_correlationId(_ncTerminateInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_userId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, NULL); ++ ++ ++ return _ncTerminateInstanceResponseType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_userId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceResponseType->is_valid_userId && ++ arg_userId == _ncTerminateInstanceResponseType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncTerminateInstanceResponseType_reset_userId(_ncTerminateInstanceResponseType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncTerminateInstanceResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncTerminateInstanceResponseType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncTerminateInstanceResponseType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_userId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncTerminateInstanceResponseType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncTerminateInstanceResponseType->property_userId); ++ _ncTerminateInstanceResponseType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncTerminateInstanceResponseType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_userId_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceResponseType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_userId_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceResponseType_reset_userId(_ncTerminateInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_return( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, (axis2_bool_t)0); ++ ++ ++ return _ncTerminateInstanceResponseType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_return( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceResponseType->is_valid_return && ++ arg_return == _ncTerminateInstanceResponseType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncTerminateInstanceResponseType_reset_return(_ncTerminateInstanceResponseType, env); ++ ++ _ncTerminateInstanceResponseType->property_return = arg_return; ++ _ncTerminateInstanceResponseType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_return( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncTerminateInstanceResponseType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_return_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceResponseType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_return_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceResponseType_reset_return(_ncTerminateInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_statusMessage( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, (int)0); ++ ++ ++ return _ncTerminateInstanceResponseType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_statusMessage( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceResponseType->is_valid_statusMessage && ++ arg_statusMessage == _ncTerminateInstanceResponseType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncTerminateInstanceResponseType_reset_statusMessage(_ncTerminateInstanceResponseType, env); ++ ++ _ncTerminateInstanceResponseType->property_statusMessage = arg_statusMessage; ++ _ncTerminateInstanceResponseType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_statusMessage( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ _ncTerminateInstanceResponseType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_statusMessage_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceResponseType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_statusMessage_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceResponseType_reset_statusMessage(_ncTerminateInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_instanceId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, NULL); ++ ++ ++ return _ncTerminateInstanceResponseType->property_instanceId; ++ } ++ ++ /** ++ * setter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_instanceId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceResponseType->is_valid_instanceId && ++ arg_instanceId == _ncTerminateInstanceResponseType->property_instanceId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncTerminateInstanceResponseType_reset_instanceId(_ncTerminateInstanceResponseType, env); ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncTerminateInstanceResponseType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId); ++ if(NULL == _ncTerminateInstanceResponseType->property_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId"); ++ return AXIS2_FAILURE; ++ } ++ _ncTerminateInstanceResponseType->is_valid_instanceId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_instanceId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncTerminateInstanceResponseType->property_instanceId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncTerminateInstanceResponseType->property_instanceId); ++ _ncTerminateInstanceResponseType->property_instanceId = NULL; ++ } ++ ++ ++ ++ _ncTerminateInstanceResponseType->is_valid_instanceId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_instanceId_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceResponseType->is_valid_instanceId; ++ } ++ ++ /** ++ * Set instanceId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_instanceId_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceResponseType_reset_instanceId(_ncTerminateInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for shutdownState. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_shutdownState( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, NULL); ++ ++ ++ return _ncTerminateInstanceResponseType->property_shutdownState; ++ } ++ ++ /** ++ * setter for shutdownState ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_shutdownState( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_shutdownState) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceResponseType->is_valid_shutdownState && ++ arg_shutdownState == _ncTerminateInstanceResponseType->property_shutdownState) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncTerminateInstanceResponseType_reset_shutdownState(_ncTerminateInstanceResponseType, env); ++ ++ ++ if(NULL == arg_shutdownState) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncTerminateInstanceResponseType->property_shutdownState = (axis2_char_t *)axutil_strdup(env, arg_shutdownState); ++ if(NULL == _ncTerminateInstanceResponseType->property_shutdownState) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for shutdownState"); ++ return AXIS2_FAILURE; ++ } ++ _ncTerminateInstanceResponseType->is_valid_shutdownState = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for shutdownState ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_shutdownState( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncTerminateInstanceResponseType->property_shutdownState != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncTerminateInstanceResponseType->property_shutdownState); ++ _ncTerminateInstanceResponseType->property_shutdownState = NULL; ++ } ++ ++ ++ ++ _ncTerminateInstanceResponseType->is_valid_shutdownState = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether shutdownState is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_shutdownState_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceResponseType->is_valid_shutdownState; ++ } ++ ++ /** ++ * Set shutdownState to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_shutdownState_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceResponseType_reset_shutdownState(_ncTerminateInstanceResponseType, env); ++ } ++ ++ ++ ++ /** ++ * getter for previousState. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_previousState( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, NULL); ++ ++ ++ return _ncTerminateInstanceResponseType->property_previousState; ++ } ++ ++ /** ++ * setter for previousState ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_previousState( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_previousState) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceResponseType->is_valid_previousState && ++ arg_previousState == _ncTerminateInstanceResponseType->property_previousState) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncTerminateInstanceResponseType_reset_previousState(_ncTerminateInstanceResponseType, env); ++ ++ ++ if(NULL == arg_previousState) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncTerminateInstanceResponseType->property_previousState = (axis2_char_t *)axutil_strdup(env, arg_previousState); ++ if(NULL == _ncTerminateInstanceResponseType->property_previousState) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for previousState"); ++ return AXIS2_FAILURE; ++ } ++ _ncTerminateInstanceResponseType->is_valid_previousState = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for previousState ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_previousState( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncTerminateInstanceResponseType->property_previousState != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncTerminateInstanceResponseType->property_previousState); ++ _ncTerminateInstanceResponseType->property_previousState = NULL; ++ } ++ ++ ++ ++ _ncTerminateInstanceResponseType->is_valid_previousState = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether previousState is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_previousState_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceResponseType->is_valid_previousState; ++ } ++ ++ /** ++ * Set previousState to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_previousState_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceResponseType_reset_previousState(_ncTerminateInstanceResponseType, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncTerminateInstanceResponseType.h' +--- old/node/generated/adb_ncTerminateInstanceResponseType.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncTerminateInstanceResponseType.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,518 @@ ++ ++ ++ #ifndef ADB_NCTERMINATEINSTANCERESPONSETYPE_H ++ #define ADB_NCTERMINATEINSTANCERESPONSETYPE_H ++ ++ /** ++ * adb_ncTerminateInstanceResponseType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncTerminateInstanceResponseType class ++ */ ++ typedef struct adb_ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncTerminateInstanceResponseType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncTerminateInstanceResponseType_t object ++ */ ++ adb_ncTerminateInstanceResponseType_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncTerminateInstanceResponseType_t object ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_free ( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_correlationId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_correlationId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_correlationId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_userId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_userId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_userId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_return( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_return( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_return( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_statusMessage( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_statusMessage( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_statusMessage( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceId. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_instanceId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceId. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_instanceId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId); ++ ++ /** ++ * Resetter for instanceId ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_instanceId( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for shutdownState. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_shutdownState( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for shutdownState. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_shutdownState axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_shutdownState( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_shutdownState); ++ ++ /** ++ * Resetter for shutdownState ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_shutdownState( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for previousState. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_get_previousState( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for previousState. ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param arg_previousState axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_previousState( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_previousState); ++ ++ /** ++ * Resetter for previousState ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_reset_previousState( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_correlationId_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_userId_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_return_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_statusMessage_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_set_statusMessage_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether instanceId is nill ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_instanceId_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether shutdownState is nill ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_shutdownState_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether previousState is nill ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_previousState_nil( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_deserialize( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_declare_parent_namespaces( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncTerminateInstanceResponseType adb_ncTerminateInstanceResponseType_t object ++ * @param env pointer to environment struct ++ * @param ncTerminateInstanceResponseType_om_node node to serialize from ++ * @param ncTerminateInstanceResponseType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_serialize( ++ adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType, ++ const axutil_env_t *env, ++ axiom_node_t* ncTerminateInstanceResponseType_om_node, axiom_element_t *ncTerminateInstanceResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncTerminateInstanceResponseType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceResponseType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCTERMINATEINSTANCERESPONSETYPE_H */ ++ ++ + +=== added file 'node/generated/adb_ncTerminateInstanceType.c' +--- old/node/generated/adb_ncTerminateInstanceType.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncTerminateInstanceType.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,1720 @@ ++ ++ ++ /** ++ * adb_ncTerminateInstanceType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_ncTerminateInstanceType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = ncTerminateInstanceType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_ncTerminateInstanceType ++ { ++ axis2_char_t* property_correlationId; ++ ++ ++ axis2_bool_t is_valid_correlationId; ++ ++ ++ axis2_char_t* property_userId; ++ ++ ++ axis2_bool_t is_valid_userId; ++ ++ ++ axis2_bool_t property_return; ++ ++ ++ axis2_bool_t is_valid_return; ++ ++ ++ int property_statusMessage; ++ ++ ++ axis2_bool_t is_valid_statusMessage; ++ ++ ++ axis2_char_t* property_instanceId; ++ ++ ++ axis2_bool_t is_valid_instanceId; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_correlationId_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_userId_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_return_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_instanceId_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_ncTerminateInstanceType_t* AXIS2_CALL ++ adb_ncTerminateInstanceType_create( ++ const axutil_env_t *env) ++ { ++ adb_ncTerminateInstanceType_t *_ncTerminateInstanceType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _ncTerminateInstanceType = (adb_ncTerminateInstanceType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_ncTerminateInstanceType_t)); ++ ++ if(NULL == _ncTerminateInstanceType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_ncTerminateInstanceType, 0, sizeof(adb_ncTerminateInstanceType_t)); ++ ++ _ncTerminateInstanceType->property_correlationId = NULL; ++ _ncTerminateInstanceType->is_valid_correlationId = AXIS2_FALSE; ++ _ncTerminateInstanceType->property_userId = NULL; ++ _ncTerminateInstanceType->is_valid_userId = AXIS2_FALSE; ++ _ncTerminateInstanceType->is_valid_return = AXIS2_FALSE; ++ _ncTerminateInstanceType->is_valid_statusMessage = AXIS2_FALSE; ++ _ncTerminateInstanceType->property_instanceId = NULL; ++ _ncTerminateInstanceType->is_valid_instanceId = AXIS2_FALSE; ++ ++ ++ return _ncTerminateInstanceType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_free ( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_FAILURE); ++ ++ adb_ncTerminateInstanceType_reset_correlationId(_ncTerminateInstanceType, env); ++ adb_ncTerminateInstanceType_reset_userId(_ncTerminateInstanceType, env); ++ adb_ncTerminateInstanceType_reset_return(_ncTerminateInstanceType, env); ++ adb_ncTerminateInstanceType_reset_statusMessage(_ncTerminateInstanceType, env); ++ adb_ncTerminateInstanceType_reset_instanceId(_ncTerminateInstanceType, env); ++ ++ ++ if(_ncTerminateInstanceType) ++ { ++ AXIS2_FREE(env->allocator, _ncTerminateInstanceType); ++ _ncTerminateInstanceType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_deserialize( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for ncTerminateInstanceType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building correlationId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncTerminateInstanceType_set_correlationId(_ncTerminateInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncTerminateInstanceType_set_correlationId(_ncTerminateInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building userId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncTerminateInstanceType_set_userId(_ncTerminateInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncTerminateInstanceType_set_userId(_ncTerminateInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building return element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ if (!axutil_strcasecmp(text_value , "true")) ++ { ++ status = adb_ncTerminateInstanceType_set_return(_ncTerminateInstanceType, env, ++ AXIS2_TRUE); ++ } ++ else ++ { ++ status = adb_ncTerminateInstanceType_set_return(_ncTerminateInstanceType, env, ++ AXIS2_FALSE); ++ } ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building statusMessage element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncTerminateInstanceType_set_statusMessage(_ncTerminateInstanceType, env, ++ atoi(text_value)); ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building instanceId element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_ncTerminateInstanceType_set_instanceId(_ncTerminateInstanceType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_ncTerminateInstanceType_set_instanceId(_ncTerminateInstanceType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element instanceId missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_ncTerminateInstanceType_declare_parent_namespaces( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_ncTerminateInstanceType_serialize( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t text_value_4[64]; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceType->is_valid_correlationId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("correlationId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing correlationId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scorrelationId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _ncTerminateInstanceType->property_correlationId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceType->is_valid_userId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("userId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing userId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%suserId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _ncTerminateInstanceType->property_userId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceType->is_valid_return) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("return"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing return element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sreturn>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ strcpy(text_value_3, (_ncTerminateInstanceType->property_return)?"true":"false"); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceType->is_valid_statusMessage) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("statusMessage"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing statusMessage element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstatusMessage>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncTerminateInstanceType->property_statusMessage); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_ncTerminateInstanceType->is_valid_instanceId) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceId"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("instanceId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing instanceId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sinstanceId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _ncTerminateInstanceType->property_instanceId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for correlationId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceType_get_correlationId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, NULL); ++ ++ ++ return _ncTerminateInstanceType->property_correlationId; ++ } ++ ++ /** ++ * setter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_correlationId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceType->is_valid_correlationId && ++ arg_correlationId == _ncTerminateInstanceType->property_correlationId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncTerminateInstanceType_reset_correlationId(_ncTerminateInstanceType, env); ++ ++ ++ if(NULL == arg_correlationId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncTerminateInstanceType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId); ++ if(NULL == _ncTerminateInstanceType->property_correlationId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId"); ++ return AXIS2_FAILURE; ++ } ++ _ncTerminateInstanceType->is_valid_correlationId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for correlationId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_reset_correlationId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncTerminateInstanceType->property_correlationId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncTerminateInstanceType->property_correlationId); ++ _ncTerminateInstanceType->property_correlationId = NULL; ++ } ++ ++ ++ ++ _ncTerminateInstanceType->is_valid_correlationId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether correlationId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_is_correlationId_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceType->is_valid_correlationId; ++ } ++ ++ /** ++ * Set correlationId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_correlationId_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceType_reset_correlationId(_ncTerminateInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for userId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceType_get_userId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, NULL); ++ ++ ++ return _ncTerminateInstanceType->property_userId; ++ } ++ ++ /** ++ * setter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_userId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceType->is_valid_userId && ++ arg_userId == _ncTerminateInstanceType->property_userId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncTerminateInstanceType_reset_userId(_ncTerminateInstanceType, env); ++ ++ ++ if(NULL == arg_userId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncTerminateInstanceType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId); ++ if(NULL == _ncTerminateInstanceType->property_userId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId"); ++ return AXIS2_FAILURE; ++ } ++ _ncTerminateInstanceType->is_valid_userId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for userId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_reset_userId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncTerminateInstanceType->property_userId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncTerminateInstanceType->property_userId); ++ _ncTerminateInstanceType->property_userId = NULL; ++ } ++ ++ ++ ++ _ncTerminateInstanceType->is_valid_userId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether userId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_is_userId_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceType->is_valid_userId; ++ } ++ ++ /** ++ * Set userId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_userId_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceType_reset_userId(_ncTerminateInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for return. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_get_return( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, (axis2_bool_t)0); ++ ++ ++ return _ncTerminateInstanceType->property_return; ++ } ++ ++ /** ++ * setter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_return( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceType->is_valid_return && ++ arg_return == _ncTerminateInstanceType->property_return) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncTerminateInstanceType_reset_return(_ncTerminateInstanceType, env); ++ ++ _ncTerminateInstanceType->property_return = arg_return; ++ _ncTerminateInstanceType->is_valid_return = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for return ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_reset_return( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_FAILURE); ++ ++ ++ _ncTerminateInstanceType->is_valid_return = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether return is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_is_return_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceType->is_valid_return; ++ } ++ ++ /** ++ * Set return to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_return_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceType_reset_return(_ncTerminateInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for statusMessage. ++ */ ++ int AXIS2_CALL ++ adb_ncTerminateInstanceType_get_statusMessage( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, (int)0); ++ ++ ++ return _ncTerminateInstanceType->property_statusMessage; ++ } ++ ++ /** ++ * setter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_statusMessage( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ const int arg_statusMessage) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceType->is_valid_statusMessage && ++ arg_statusMessage == _ncTerminateInstanceType->property_statusMessage) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_ncTerminateInstanceType_reset_statusMessage(_ncTerminateInstanceType, env); ++ ++ _ncTerminateInstanceType->property_statusMessage = arg_statusMessage; ++ _ncTerminateInstanceType->is_valid_statusMessage = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for statusMessage ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_reset_statusMessage( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_FAILURE); ++ ++ ++ _ncTerminateInstanceType->is_valid_statusMessage = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether statusMessage is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_is_statusMessage_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceType->is_valid_statusMessage; ++ } ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_statusMessage_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceType_reset_statusMessage(_ncTerminateInstanceType, env); ++ } ++ ++ ++ ++ /** ++ * getter for instanceId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceType_get_instanceId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, NULL); ++ ++ ++ return _ncTerminateInstanceType->property_instanceId; ++ } ++ ++ /** ++ * setter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_instanceId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_FAILURE); ++ ++ if(_ncTerminateInstanceType->is_valid_instanceId && ++ arg_instanceId == _ncTerminateInstanceType->property_instanceId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceId is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_ncTerminateInstanceType_reset_instanceId(_ncTerminateInstanceType, env); ++ ++ ++ if(NULL == arg_instanceId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _ncTerminateInstanceType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId); ++ if(NULL == _ncTerminateInstanceType->property_instanceId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId"); ++ return AXIS2_FAILURE; ++ } ++ _ncTerminateInstanceType->is_valid_instanceId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for instanceId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_reset_instanceId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_ncTerminateInstanceType->property_instanceId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _ncTerminateInstanceType->property_instanceId); ++ _ncTerminateInstanceType->property_instanceId = NULL; ++ } ++ ++ ++ ++ _ncTerminateInstanceType->is_valid_instanceId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether instanceId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_is_instanceId_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceType, AXIS2_TRUE); ++ ++ return !_ncTerminateInstanceType->is_valid_instanceId; ++ } ++ ++ /** ++ * Set instanceId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_instanceId_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env) ++ { ++ return adb_ncTerminateInstanceType_reset_instanceId(_ncTerminateInstanceType, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_ncTerminateInstanceType.h' +--- old/node/generated/adb_ncTerminateInstanceType.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_ncTerminateInstanceType.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,414 @@ ++ ++ ++ #ifndef ADB_NCTERMINATEINSTANCETYPE_H ++ #define ADB_NCTERMINATEINSTANCETYPE_H ++ ++ /** ++ * adb_ncTerminateInstanceType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_ncTerminateInstanceType class ++ */ ++ typedef struct adb_ncTerminateInstanceType adb_ncTerminateInstanceType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_ncTerminateInstanceType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_ncTerminateInstanceType_t object ++ */ ++ adb_ncTerminateInstanceType_t* AXIS2_CALL ++ adb_ncTerminateInstanceType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_ncTerminateInstanceType_t object ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_free ( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for correlationId. ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceType_get_correlationId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for correlationId. ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_correlationId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_correlationId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_correlationId); ++ ++ /** ++ * Resetter for correlationId ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_reset_correlationId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for userId. ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceType_get_userId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for userId. ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_userId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_userId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_userId); ++ ++ /** ++ * Resetter for userId ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_reset_userId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for return. ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_bool_t ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_get_return( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for return. ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_return axis2_bool_t ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_return( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ axis2_bool_t arg_return); ++ ++ /** ++ * Resetter for return ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_reset_return( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for statusMessage. ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_ncTerminateInstanceType_get_statusMessage( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for statusMessage. ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_statusMessage int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_statusMessage( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ const int arg_statusMessage); ++ ++ /** ++ * Resetter for statusMessage ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_reset_statusMessage( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for instanceId. ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_ncTerminateInstanceType_get_instanceId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for instanceId. ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @param arg_instanceId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_instanceId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_instanceId); ++ ++ /** ++ * Resetter for instanceId ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_reset_instanceId( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether correlationId is nill ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_is_correlationId_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether userId is nill ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_is_userId_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether return is nill ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_is_return_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether statusMessage is nill ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_is_statusMessage_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ /** ++ * Set statusMessage to nill (currently the same as reset) ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_set_statusMessage_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ /** ++ * Check whether instanceId is nill ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_is_instanceId_nil( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_ncTerminateInstanceType_deserialize( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_ncTerminateInstanceType_declare_parent_namespaces( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _ncTerminateInstanceType adb_ncTerminateInstanceType_t object ++ * @param env pointer to environment struct ++ * @param ncTerminateInstanceType_om_node node to serialize from ++ * @param ncTerminateInstanceType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_ncTerminateInstanceType_serialize( ++ adb_ncTerminateInstanceType_t* _ncTerminateInstanceType, ++ const axutil_env_t *env, ++ axiom_node_t* ncTerminateInstanceType_om_node, axiom_element_t *ncTerminateInstanceType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_ncTerminateInstanceType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_ncTerminateInstanceType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NCTERMINATEINSTANCETYPE_H */ ++ ++ + +=== added file 'node/generated/adb_netConfigType.c' +--- old/node/generated/adb_netConfigType.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_netConfigType.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,1879 @@ ++ ++ ++ /** ++ * adb_netConfigType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_netConfigType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = netConfigType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_netConfigType ++ { ++ axis2_char_t* property_privateMacAddress; ++ ++ ++ axis2_bool_t is_valid_privateMacAddress; ++ ++ ++ axis2_char_t* property_publicMacAddress; ++ ++ ++ axis2_bool_t is_valid_publicMacAddress; ++ ++ ++ int property_vlan; ++ ++ ++ axis2_bool_t is_valid_vlan; ++ ++ ++ axis2_char_t* property_privateIp; ++ ++ ++ axis2_bool_t is_valid_privateIp; ++ ++ ++ axis2_char_t* property_publicIp; ++ ++ ++ axis2_bool_t is_valid_publicIp; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_privateMacAddress_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_publicMacAddress_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_vlan_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_privateIp_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_publicIp_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_netConfigType_t* AXIS2_CALL ++ adb_netConfigType_create( ++ const axutil_env_t *env) ++ { ++ adb_netConfigType_t *_netConfigType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _netConfigType = (adb_netConfigType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_netConfigType_t)); ++ ++ if(NULL == _netConfigType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_netConfigType, 0, sizeof(adb_netConfigType_t)); ++ ++ _netConfigType->property_privateMacAddress = NULL; ++ _netConfigType->is_valid_privateMacAddress = AXIS2_FALSE; ++ _netConfigType->property_publicMacAddress = NULL; ++ _netConfigType->is_valid_publicMacAddress = AXIS2_FALSE; ++ _netConfigType->is_valid_vlan = AXIS2_FALSE; ++ _netConfigType->property_privateIp = NULL; ++ _netConfigType->is_valid_privateIp = AXIS2_FALSE; ++ _netConfigType->property_publicIp = NULL; ++ _netConfigType->is_valid_publicIp = AXIS2_FALSE; ++ ++ ++ return _netConfigType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_free ( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE); ++ ++ adb_netConfigType_reset_privateMacAddress(_netConfigType, env); ++ adb_netConfigType_reset_publicMacAddress(_netConfigType, env); ++ adb_netConfigType_reset_vlan(_netConfigType, env); ++ adb_netConfigType_reset_privateIp(_netConfigType, env); ++ adb_netConfigType_reset_publicIp(_netConfigType, env); ++ ++ ++ if(_netConfigType) ++ { ++ AXIS2_FREE(env->allocator, _netConfigType); ++ _netConfigType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_deserialize( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for netConfigType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building privateMacAddress element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "privateMacAddress", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_netConfigType_set_privateMacAddress(_netConfigType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element privateMacAddress"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_netConfigType_set_privateMacAddress(_netConfigType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for privateMacAddress "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element privateMacAddress missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building publicMacAddress element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "publicMacAddress", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_netConfigType_set_publicMacAddress(_netConfigType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element publicMacAddress"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_netConfigType_set_publicMacAddress(_netConfigType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for publicMacAddress "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element publicMacAddress missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building vlan element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "vlan", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_netConfigType_set_vlan(_netConfigType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element vlan"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for vlan "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element vlan missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building privateIp element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "privateIp", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_netConfigType_set_privateIp(_netConfigType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element privateIp"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_netConfigType_set_privateIp(_netConfigType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for privateIp "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element privateIp missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building publicIp element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "publicIp", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_netConfigType_set_publicIp(_netConfigType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element publicIp"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_netConfigType_set_publicIp(_netConfigType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for publicIp "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ else if(!dont_care_minoccurs) ++ { ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ /* this is not a nillable element*/ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element publicIp missing"); ++ return AXIS2_FAILURE; ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_netConfigType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_netConfigType_declare_parent_namespaces( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_netConfigType_serialize( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t *text_value_4; ++ axis2_char_t *text_value_4_temp; ++ ++ axis2_char_t *text_value_5; ++ axis2_char_t *text_value_5_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_netConfigType->is_valid_privateMacAddress) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property privateMacAddress"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("privateMacAddress"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("privateMacAddress"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing privateMacAddress element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sprivateMacAddress>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _netConfigType->property_privateMacAddress; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_netConfigType->is_valid_publicMacAddress) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property publicMacAddress"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("publicMacAddress"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("publicMacAddress"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing publicMacAddress element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%spublicMacAddress>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _netConfigType->property_publicMacAddress; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_netConfigType->is_valid_vlan) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property vlan"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("vlan"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("vlan"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing vlan element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%svlan>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_3, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _netConfigType->property_vlan); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_netConfigType->is_valid_privateIp) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property privateIp"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("privateIp"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("privateIp"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing privateIp element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sprivateIp>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_4 = _netConfigType->property_privateIp; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_4_temp = axutil_xml_quote_string(env, text_value_4, AXIS2_TRUE); ++ if (text_value_4_temp) ++ { ++ axutil_stream_write(stream, env, text_value_4_temp, axutil_strlen(text_value_4_temp)); ++ AXIS2_FREE(env->allocator, text_value_4_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_netConfigType->is_valid_publicIp) ++ { ++ ++ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property publicIp"); ++ return NULL; ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("publicIp"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("publicIp"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing publicIp element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%spublicIp>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_5 = _netConfigType->property_publicIp; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE); ++ if (text_value_5_temp) ++ { ++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp)); ++ AXIS2_FREE(env->allocator, text_value_5_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for privateMacAddress. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_netConfigType_get_privateMacAddress( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, NULL); ++ ++ ++ return _netConfigType->property_privateMacAddress; ++ } ++ ++ /** ++ * setter for privateMacAddress ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_privateMacAddress( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_privateMacAddress) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE); ++ ++ if(_netConfigType->is_valid_privateMacAddress && ++ arg_privateMacAddress == _netConfigType->property_privateMacAddress) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_privateMacAddress) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "privateMacAddress is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_netConfigType_reset_privateMacAddress(_netConfigType, env); ++ ++ ++ if(NULL == arg_privateMacAddress) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _netConfigType->property_privateMacAddress = (axis2_char_t *)axutil_strdup(env, arg_privateMacAddress); ++ if(NULL == _netConfigType->property_privateMacAddress) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for privateMacAddress"); ++ return AXIS2_FAILURE; ++ } ++ _netConfigType->is_valid_privateMacAddress = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for privateMacAddress ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_reset_privateMacAddress( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_netConfigType->property_privateMacAddress != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _netConfigType->property_privateMacAddress); ++ _netConfigType->property_privateMacAddress = NULL; ++ } ++ ++ ++ ++ _netConfigType->is_valid_privateMacAddress = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether privateMacAddress is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_netConfigType_is_privateMacAddress_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_TRUE); ++ ++ return !_netConfigType->is_valid_privateMacAddress; ++ } ++ ++ /** ++ * Set privateMacAddress to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_privateMacAddress_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ return adb_netConfigType_reset_privateMacAddress(_netConfigType, env); ++ } ++ ++ ++ ++ /** ++ * getter for publicMacAddress. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_netConfigType_get_publicMacAddress( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, NULL); ++ ++ ++ return _netConfigType->property_publicMacAddress; ++ } ++ ++ /** ++ * setter for publicMacAddress ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_publicMacAddress( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_publicMacAddress) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE); ++ ++ if(_netConfigType->is_valid_publicMacAddress && ++ arg_publicMacAddress == _netConfigType->property_publicMacAddress) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_publicMacAddress) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "publicMacAddress is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_netConfigType_reset_publicMacAddress(_netConfigType, env); ++ ++ ++ if(NULL == arg_publicMacAddress) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _netConfigType->property_publicMacAddress = (axis2_char_t *)axutil_strdup(env, arg_publicMacAddress); ++ if(NULL == _netConfigType->property_publicMacAddress) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for publicMacAddress"); ++ return AXIS2_FAILURE; ++ } ++ _netConfigType->is_valid_publicMacAddress = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for publicMacAddress ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_reset_publicMacAddress( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_netConfigType->property_publicMacAddress != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _netConfigType->property_publicMacAddress); ++ _netConfigType->property_publicMacAddress = NULL; ++ } ++ ++ ++ ++ _netConfigType->is_valid_publicMacAddress = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether publicMacAddress is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_netConfigType_is_publicMacAddress_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_TRUE); ++ ++ return !_netConfigType->is_valid_publicMacAddress; ++ } ++ ++ /** ++ * Set publicMacAddress to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_publicMacAddress_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ return adb_netConfigType_reset_publicMacAddress(_netConfigType, env); ++ } ++ ++ ++ ++ /** ++ * getter for vlan. ++ */ ++ int AXIS2_CALL ++ adb_netConfigType_get_vlan( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, (int)0); ++ ++ ++ return _netConfigType->property_vlan; ++ } ++ ++ /** ++ * setter for vlan ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_vlan( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ const int arg_vlan) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE); ++ ++ if(_netConfigType->is_valid_vlan && ++ arg_vlan == _netConfigType->property_vlan) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_netConfigType_reset_vlan(_netConfigType, env); ++ ++ _netConfigType->property_vlan = arg_vlan; ++ _netConfigType->is_valid_vlan = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for vlan ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_reset_vlan( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE); ++ ++ ++ _netConfigType->is_valid_vlan = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether vlan is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_netConfigType_is_vlan_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_TRUE); ++ ++ return !_netConfigType->is_valid_vlan; ++ } ++ ++ /** ++ * Set vlan to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_vlan_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ return adb_netConfigType_reset_vlan(_netConfigType, env); ++ } ++ ++ ++ ++ /** ++ * getter for privateIp. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_netConfigType_get_privateIp( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, NULL); ++ ++ ++ return _netConfigType->property_privateIp; ++ } ++ ++ /** ++ * setter for privateIp ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_privateIp( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_privateIp) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE); ++ ++ if(_netConfigType->is_valid_privateIp && ++ arg_privateIp == _netConfigType->property_privateIp) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_privateIp) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "privateIp is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_netConfigType_reset_privateIp(_netConfigType, env); ++ ++ ++ if(NULL == arg_privateIp) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _netConfigType->property_privateIp = (axis2_char_t *)axutil_strdup(env, arg_privateIp); ++ if(NULL == _netConfigType->property_privateIp) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for privateIp"); ++ return AXIS2_FAILURE; ++ } ++ _netConfigType->is_valid_privateIp = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for privateIp ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_reset_privateIp( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_netConfigType->property_privateIp != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _netConfigType->property_privateIp); ++ _netConfigType->property_privateIp = NULL; ++ } ++ ++ ++ ++ _netConfigType->is_valid_privateIp = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether privateIp is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_netConfigType_is_privateIp_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_TRUE); ++ ++ return !_netConfigType->is_valid_privateIp; ++ } ++ ++ /** ++ * Set privateIp to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_privateIp_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ return adb_netConfigType_reset_privateIp(_netConfigType, env); ++ } ++ ++ ++ ++ /** ++ * getter for publicIp. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_netConfigType_get_publicIp( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, NULL); ++ ++ ++ return _netConfigType->property_publicIp; ++ } ++ ++ /** ++ * setter for publicIp ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_publicIp( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_publicIp) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE); ++ ++ if(_netConfigType->is_valid_publicIp && ++ arg_publicIp == _netConfigType->property_publicIp) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ if(NULL == arg_publicIp) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "publicIp is being set to NULL, but it is not a nullable element"); ++ return AXIS2_FAILURE; ++ } ++ adb_netConfigType_reset_publicIp(_netConfigType, env); ++ ++ ++ if(NULL == arg_publicIp) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _netConfigType->property_publicIp = (axis2_char_t *)axutil_strdup(env, arg_publicIp); ++ if(NULL == _netConfigType->property_publicIp) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for publicIp"); ++ return AXIS2_FAILURE; ++ } ++ _netConfigType->is_valid_publicIp = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for publicIp ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_reset_publicIp( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_netConfigType->property_publicIp != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _netConfigType->property_publicIp); ++ _netConfigType->property_publicIp = NULL; ++ } ++ ++ ++ ++ _netConfigType->is_valid_publicIp = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether publicIp is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_netConfigType_is_publicIp_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_TRUE); ++ ++ return !_netConfigType->is_valid_publicIp; ++ } ++ ++ /** ++ * Set publicIp to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_publicIp_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env) ++ { ++ return adb_netConfigType_reset_publicIp(_netConfigType, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_netConfigType.h' +--- old/node/generated/adb_netConfigType.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_netConfigType.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,403 @@ ++ ++ ++ #ifndef ADB_NETCONFIGTYPE_H ++ #define ADB_NETCONFIGTYPE_H ++ ++ /** ++ * adb_netConfigType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_netConfigType class ++ */ ++ typedef struct adb_netConfigType adb_netConfigType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_netConfigType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_netConfigType_t object ++ */ ++ adb_netConfigType_t* AXIS2_CALL ++ adb_netConfigType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_netConfigType_t object ++ * @param _netConfigType adb_netConfigType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_free ( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for privateMacAddress. ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_netConfigType_get_privateMacAddress( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for privateMacAddress. ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @param arg_privateMacAddress axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_privateMacAddress( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_privateMacAddress); ++ ++ /** ++ * Resetter for privateMacAddress ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_reset_privateMacAddress( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for publicMacAddress. ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_netConfigType_get_publicMacAddress( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for publicMacAddress. ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @param arg_publicMacAddress axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_publicMacAddress( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_publicMacAddress); ++ ++ /** ++ * Resetter for publicMacAddress ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_reset_publicMacAddress( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for vlan. ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_netConfigType_get_vlan( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for vlan. ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @param arg_vlan int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_vlan( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ const int arg_vlan); ++ ++ /** ++ * Resetter for vlan ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_reset_vlan( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for privateIp. ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_netConfigType_get_privateIp( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for privateIp. ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @param arg_privateIp axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_privateIp( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_privateIp); ++ ++ /** ++ * Resetter for privateIp ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_reset_privateIp( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for publicIp. ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_netConfigType_get_publicIp( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for publicIp. ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @param arg_publicIp axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_set_publicIp( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_publicIp); ++ ++ /** ++ * Resetter for publicIp ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_reset_publicIp( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether privateMacAddress is nill ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_netConfigType_is_privateMacAddress_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether publicMacAddress is nill ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_netConfigType_is_publicMacAddress_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether vlan is nill ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_netConfigType_is_vlan_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether privateIp is nill ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_netConfigType_is_privateIp_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether publicIp is nill ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_netConfigType_is_publicIp_nil( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_netConfigType_deserialize( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_netConfigType_declare_parent_namespaces( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _netConfigType adb_netConfigType_t object ++ * @param env pointer to environment struct ++ * @param netConfigType_om_node node to serialize from ++ * @param netConfigType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_netConfigType_serialize( ++ adb_netConfigType_t* _netConfigType, ++ const axutil_env_t *env, ++ axiom_node_t* netConfigType_om_node, axiom_element_t *netConfigType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_netConfigType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_netConfigType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_NETCONFIGTYPE_H */ ++ ++ + +=== added file 'node/generated/adb_virtualMachineType.c' +--- old/node/generated/adb_virtualMachineType.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_virtualMachineType.c 2010-01-05 01:00:34 +0000 +@@ -0,0 +1,943 @@ ++ ++ ++ /** ++ * adb_virtualMachineType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_virtualMachineType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = virtualMachineType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_virtualMachineType ++ { ++ int property_memory; ++ ++ ++ axis2_bool_t is_valid_memory; ++ ++ ++ int property_cores; ++ ++ ++ axis2_bool_t is_valid_cores; ++ ++ ++ int property_disk; ++ ++ ++ axis2_bool_t is_valid_disk; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_memory_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_cores_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_disk_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_virtualMachineType_t* AXIS2_CALL ++ adb_virtualMachineType_create( ++ const axutil_env_t *env) ++ { ++ adb_virtualMachineType_t *_virtualMachineType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _virtualMachineType = (adb_virtualMachineType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_virtualMachineType_t)); ++ ++ if(NULL == _virtualMachineType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_virtualMachineType, 0, sizeof(adb_virtualMachineType_t)); ++ ++ _virtualMachineType->is_valid_memory = AXIS2_FALSE; ++ _virtualMachineType->is_valid_cores = AXIS2_FALSE; ++ _virtualMachineType->is_valid_disk = AXIS2_FALSE; ++ ++ ++ return _virtualMachineType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_free ( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE); ++ ++ adb_virtualMachineType_reset_memory(_virtualMachineType, env); ++ adb_virtualMachineType_reset_cores(_virtualMachineType, env); ++ adb_virtualMachineType_reset_disk(_virtualMachineType, env); ++ ++ ++ if(_virtualMachineType) ++ { ++ AXIS2_FREE(env->allocator, _virtualMachineType); ++ _virtualMachineType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_deserialize( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for virtualMachineType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building memory element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "memory", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_virtualMachineType_set_memory(_virtualMachineType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element memory"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for memory "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building cores element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "cores", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_virtualMachineType_set_cores(_virtualMachineType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element cores"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for cores "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building disk element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "disk", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_virtualMachineType_set_disk(_virtualMachineType, env, ++ atoi(text_value)); ++ } ++ ++ else ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element disk"); ++ status = AXIS2_FAILURE; ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for disk "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_virtualMachineType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_virtualMachineType_declare_parent_namespaces( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_virtualMachineType_serialize( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t text_value_1[64]; ++ ++ axis2_char_t text_value_2[64]; ++ ++ axis2_char_t text_value_3[64]; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_virtualMachineType->is_valid_memory) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("memory"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("memory"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing memory element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%smemory>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_1, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _virtualMachineType->property_memory); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_virtualMachineType->is_valid_cores) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("cores"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("cores"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing cores element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%scores>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_2, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _virtualMachineType->property_cores); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_virtualMachineType->is_valid_disk) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("disk"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("disk"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing disk element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sdisk>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ sprintf (text_value_3, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _virtualMachineType->property_disk); ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for memory. ++ */ ++ int AXIS2_CALL ++ adb_virtualMachineType_get_memory( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, (int)0); ++ ++ ++ return _virtualMachineType->property_memory; ++ } ++ ++ /** ++ * setter for memory ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_memory( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, ++ const int arg_memory) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE); ++ ++ if(_virtualMachineType->is_valid_memory && ++ arg_memory == _virtualMachineType->property_memory) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_virtualMachineType_reset_memory(_virtualMachineType, env); ++ ++ _virtualMachineType->property_memory = arg_memory; ++ _virtualMachineType->is_valid_memory = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for memory ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_reset_memory( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE); ++ ++ ++ _virtualMachineType->is_valid_memory = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether memory is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_virtualMachineType_is_memory_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_TRUE); ++ ++ return !_virtualMachineType->is_valid_memory; ++ } ++ ++ /** ++ * Set memory to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_memory_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ return adb_virtualMachineType_reset_memory(_virtualMachineType, env); ++ } ++ ++ ++ ++ /** ++ * getter for cores. ++ */ ++ int AXIS2_CALL ++ adb_virtualMachineType_get_cores( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, (int)0); ++ ++ ++ return _virtualMachineType->property_cores; ++ } ++ ++ /** ++ * setter for cores ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_cores( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, ++ const int arg_cores) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE); ++ ++ if(_virtualMachineType->is_valid_cores && ++ arg_cores == _virtualMachineType->property_cores) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_virtualMachineType_reset_cores(_virtualMachineType, env); ++ ++ _virtualMachineType->property_cores = arg_cores; ++ _virtualMachineType->is_valid_cores = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for cores ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_reset_cores( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE); ++ ++ ++ _virtualMachineType->is_valid_cores = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether cores is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_virtualMachineType_is_cores_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_TRUE); ++ ++ return !_virtualMachineType->is_valid_cores; ++ } ++ ++ /** ++ * Set cores to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_cores_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ return adb_virtualMachineType_reset_cores(_virtualMachineType, env); ++ } ++ ++ ++ ++ /** ++ * getter for disk. ++ */ ++ int AXIS2_CALL ++ adb_virtualMachineType_get_disk( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, (int)0); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, (int)0); ++ ++ ++ return _virtualMachineType->property_disk; ++ } ++ ++ /** ++ * setter for disk ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_disk( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, ++ const int arg_disk) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE); ++ ++ if(_virtualMachineType->is_valid_disk && ++ arg_disk == _virtualMachineType->property_disk) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_virtualMachineType_reset_disk(_virtualMachineType, env); ++ ++ _virtualMachineType->property_disk = arg_disk; ++ _virtualMachineType->is_valid_disk = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for disk ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_reset_disk( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE); ++ ++ ++ _virtualMachineType->is_valid_disk = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether disk is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_virtualMachineType_is_disk_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_TRUE); ++ ++ return !_virtualMachineType->is_valid_disk; ++ } ++ ++ /** ++ * Set disk to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_disk_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env) ++ { ++ return adb_virtualMachineType_reset_disk(_virtualMachineType, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_virtualMachineType.h' +--- old/node/generated/adb_virtualMachineType.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_virtualMachineType.h 2010-01-05 01:00:34 +0000 +@@ -0,0 +1,299 @@ ++ ++ ++ #ifndef ADB_VIRTUALMACHINETYPE_H ++ #define ADB_VIRTUALMACHINETYPE_H ++ ++ /** ++ * adb_virtualMachineType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_virtualMachineType class ++ */ ++ typedef struct adb_virtualMachineType adb_virtualMachineType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_virtualMachineType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_virtualMachineType_t object ++ */ ++ adb_virtualMachineType_t* AXIS2_CALL ++ adb_virtualMachineType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_virtualMachineType_t object ++ * @param _virtualMachineType adb_virtualMachineType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_free ( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for memory. ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_virtualMachineType_get_memory( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for memory. ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @param arg_memory int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_memory( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, ++ const int arg_memory); ++ ++ /** ++ * Resetter for memory ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_reset_memory( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for cores. ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_virtualMachineType_get_cores( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for cores. ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @param arg_cores int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_cores( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, ++ const int arg_cores); ++ ++ /** ++ * Resetter for cores ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_reset_cores( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for disk. ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @return int ++ */ ++ int AXIS2_CALL ++ adb_virtualMachineType_get_disk( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for disk. ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @param arg_disk int ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_set_disk( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, ++ const int arg_disk); ++ ++ /** ++ * Resetter for disk ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_reset_disk( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether memory is nill ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_virtualMachineType_is_memory_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether cores is nill ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_virtualMachineType_is_cores_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether disk is nill ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_virtualMachineType_is_disk_nil( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_virtualMachineType_deserialize( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_virtualMachineType_declare_parent_namespaces( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _virtualMachineType adb_virtualMachineType_t object ++ * @param env pointer to environment struct ++ * @param virtualMachineType_om_node node to serialize from ++ * @param virtualMachineType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_virtualMachineType_serialize( ++ adb_virtualMachineType_t* _virtualMachineType, ++ const axutil_env_t *env, ++ axiom_node_t* virtualMachineType_om_node, axiom_element_t *virtualMachineType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_virtualMachineType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_virtualMachineType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_VIRTUALMACHINETYPE_H */ ++ ++ + +=== added file 'node/generated/adb_volumeType.c' +--- old/node/generated/adb_volumeType.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_volumeType.c 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,1547 @@ ++ ++ ++ /** ++ * adb_volumeType.c ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00) ++ */ ++ ++ #include "adb_volumeType.h" ++ ++ /* ++ * This type was generated from the piece of schema that had ++ * name = volumeType ++ * Namespace URI = http://eucalyptus.ucsb.edu/ ++ * Namespace Prefix = ns1 ++ */ ++ ++ ++ ++ struct adb_volumeType ++ { ++ axis2_char_t* property_volumeId; ++ ++ ++ axis2_bool_t is_valid_volumeId; ++ ++ ++ axis2_char_t* property_remoteDev; ++ ++ ++ axis2_bool_t is_valid_remoteDev; ++ ++ ++ axis2_char_t* property_localDev; ++ ++ ++ axis2_bool_t is_valid_localDev; ++ ++ ++ axis2_char_t* property_state; ++ ++ ++ axis2_bool_t is_valid_state; ++ ++ ++ ++ }; ++ ++ ++ /************************* Private Function prototypes ********************************/ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_volumeId_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_remoteDev_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_localDev_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_state_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ /************************* Function Implmentations ********************************/ ++ adb_volumeType_t* AXIS2_CALL ++ adb_volumeType_create( ++ const axutil_env_t *env) ++ { ++ adb_volumeType_t *_volumeType = NULL; ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ ++ _volumeType = (adb_volumeType_t *) AXIS2_MALLOC(env-> ++ allocator, sizeof(adb_volumeType_t)); ++ ++ if(NULL == _volumeType) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); ++ return NULL; ++ } ++ ++ memset(_volumeType, 0, sizeof(adb_volumeType_t)); ++ ++ _volumeType->property_volumeId = NULL; ++ _volumeType->is_valid_volumeId = AXIS2_FALSE; ++ _volumeType->property_remoteDev = NULL; ++ _volumeType->is_valid_remoteDev = AXIS2_FALSE; ++ _volumeType->property_localDev = NULL; ++ _volumeType->is_valid_localDev = AXIS2_FALSE; ++ _volumeType->property_state = NULL; ++ _volumeType->is_valid_state = AXIS2_FALSE; ++ ++ ++ return _volumeType; ++ } ++ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_free ( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE); ++ ++ adb_volumeType_reset_volumeId(_volumeType, env); ++ adb_volumeType_reset_remoteDev(_volumeType, env); ++ adb_volumeType_reset_localDev(_volumeType, env); ++ adb_volumeType_reset_state(_volumeType, env); ++ ++ ++ if(_volumeType) ++ { ++ AXIS2_FREE(env->allocator, _volumeType); ++ _volumeType = NULL; ++ } ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_deserialize( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, ++ axiom_node_t **dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs) ++ { ++ axiom_node_t *parent = *dp_parent; ++ ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ axis2_char_t* text_value = NULL; ++ axutil_qname_t *qname = NULL; ++ ++ axutil_qname_t *element_qname = NULL; ++ ++ axiom_node_t *first_node = NULL; ++ axis2_bool_t is_early_node_valid = AXIS2_TRUE; ++ axiom_node_t *current_node = NULL; ++ axiom_element_t *current_element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE); ++ ++ ++ ++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT) ++ { ++ parent = axiom_node_get_next_sibling(parent, env); ++ } ++ if (NULL == parent) ++ { ++ /* This should be checked before everything */ ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, ++ "Failed in building adb object for volumeType : " ++ "NULL elemenet can not be passed to deserialize"); ++ return AXIS2_FAILURE; ++ } ++ ++ ++ first_node = axiom_node_get_first_child(parent, env); ++ ++ ++ ++ ++ /* ++ * building volumeId element ++ */ ++ ++ ++ ++ current_node = first_node; ++ is_early_node_valid = AXIS2_FALSE; ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ element_qname = axutil_qname_create(env, "volumeId", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_volumeType_set_volumeId(_volumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element volumeId"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_volumeType_set_volumeId(_volumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for volumeId "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building remoteDev element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "remoteDev", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_volumeType_set_remoteDev(_volumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element remoteDev"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_volumeType_set_remoteDev(_volumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for remoteDev "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building localDev element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "localDev", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_volumeType_set_localDev(_volumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element localDev"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_volumeType_set_localDev(_volumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for localDev "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ ++ ++ /* ++ * building state element ++ */ ++ ++ ++ ++ /* ++ * because elements are ordered this works fine ++ */ ++ ++ ++ if(current_node != NULL && is_early_node_valid) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ ++ ++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) ++ { ++ current_node = axiom_node_get_next_sibling(current_node, env); ++ } ++ if(current_node != NULL) ++ { ++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); ++ qname = axiom_element_get_qname(current_element, env, current_node); ++ } ++ ++ } ++ is_early_node_valid = AXIS2_FALSE; ++ ++ element_qname = axutil_qname_create(env, "state", "http://eucalyptus.ucsb.edu/", NULL); ++ ++ ++ if ( ++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))) ++ { ++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname))) ++ { ++ is_early_node_valid = AXIS2_TRUE; ++ } ++ ++ ++ text_value = axiom_element_get_text(current_element, env, current_node); ++ if(text_value != NULL) ++ { ++ status = adb_volumeType_set_state(_volumeType, env, ++ text_value); ++ } ++ ++ else ++ { ++ /* ++ * axis2_qname_t *qname = NULL; ++ * axiom_attribute_t *the_attri = NULL; ++ * ++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi"); ++ * the_attri = axiom_element_get_attribute(current_element, env, qname); ++ */ ++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */ ++ ++ axiom_attribute_t *the_attri = NULL; ++ axis2_char_t *attrib_text = NULL; ++ axutil_hash_t *attribute_hash = NULL; ++ ++ attribute_hash = axiom_element_get_all_attributes(current_element, env); ++ ++ attrib_text = NULL; ++ if(attribute_hash) ++ { ++ axutil_hash_index_t *hi; ++ void *val; ++ const void *key; ++ ++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) ++ { ++ axutil_hash_this(hi, &key, NULL, &val); ++ ++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance")) ++ { ++ the_attri = (axiom_attribute_t*)val; ++ break; ++ } ++ } ++ } ++ ++ if(the_attri) ++ { ++ attrib_text = axiom_attribute_get_value(the_attri, env); ++ } ++ else ++ { ++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */ ++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil"); ++ } ++ ++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1")) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element state"); ++ status = AXIS2_FAILURE; ++ } ++ else ++ { ++ /* after all, we found this is a empty string */ ++ status = adb_volumeType_set_state(_volumeType, env, ++ ""); ++ } ++ } ++ ++ if(AXIS2_FAILURE == status) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for state "); ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ } ++ return AXIS2_FAILURE; ++ } ++ } ++ ++ if(element_qname) ++ { ++ axutil_qname_free(element_qname, env); ++ element_qname = NULL; ++ } ++ ++ return status; ++ } ++ ++ axis2_bool_t AXIS2_CALL ++ adb_volumeType_is_particle() ++ { ++ ++ return AXIS2_FALSE; ++ ++ } ++ ++ ++ void AXIS2_CALL ++ adb_volumeType_declare_parent_namespaces( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ /* Here this is an empty function, Nothing to declare */ ++ ++ } ++ ++ ++ ++ axiom_node_t* AXIS2_CALL ++ adb_volumeType_serialize( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index) ++ { ++ ++ ++ axis2_char_t *string_to_stream; ++ ++ ++ axiom_node_t *current_node = NULL; ++ int tag_closed = 0; ++ ++ ++ ++ axiom_namespace_t *ns1 = NULL; ++ ++ axis2_char_t *qname_uri = NULL; ++ axis2_char_t *qname_prefix = NULL; ++ axis2_char_t *p_prefix = NULL; ++ axis2_bool_t ns_already_defined; ++ ++ axis2_char_t *text_value_1; ++ axis2_char_t *text_value_1_temp; ++ ++ axis2_char_t *text_value_2; ++ axis2_char_t *text_value_2_temp; ++ ++ axis2_char_t *text_value_3; ++ axis2_char_t *text_value_3_temp; ++ ++ axis2_char_t *text_value_4; ++ axis2_char_t *text_value_4_temp; ++ ++ axis2_char_t *start_input_str = NULL; ++ axis2_char_t *end_input_str = NULL; ++ unsigned int start_input_str_len = 0; ++ unsigned int end_input_str_len = 0; ++ ++ ++ axiom_data_source_t *data_source = NULL; ++ axutil_stream_t *stream = NULL; ++ ++ ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, NULL); ++ ++ ++ current_node = parent; ++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env); ++ if (!data_source) ++ return NULL; ++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */ ++ if (!stream) ++ return NULL; ++ ++ if(!parent_tag_closed) ++ { ++ ++ string_to_stream = ">"; ++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream)); ++ tag_closed = 1; ++ ++ } ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_volumeType->is_valid_volumeId) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("volumeId"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("volumeId"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing volumeId element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%svolumeId>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_1 = _volumeType->property_volumeId; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE); ++ if (text_value_1_temp) ++ { ++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp)); ++ AXIS2_FREE(env->allocator, text_value_1_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_volumeType->is_valid_remoteDev) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("remoteDev"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("remoteDev"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing remoteDev element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sremoteDev>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_2 = _volumeType->property_remoteDev; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE); ++ if (text_value_2_temp) ++ { ++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp)); ++ AXIS2_FREE(env->allocator, text_value_2_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_volumeType->is_valid_localDev) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("localDev"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("localDev"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing localDev element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%slocalDev>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_3 = _volumeType->property_localDev; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE); ++ if (text_value_3_temp) ++ { ++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp)); ++ AXIS2_FREE(env->allocator, text_value_3_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING))) ++ { ++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT); ++ sprintf(p_prefix, "n%d", (*next_ns_index)++); ++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix); ++ ++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env, ++ "http://eucalyptus.ucsb.edu/", ++ p_prefix)); ++ } ++ ++ ++ if (!_volumeType->is_valid_state) ++ { ++ ++ /* no need to complain for minoccurs=0 element */ ++ ++ ++ } ++ else ++ { ++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (4 + axutil_strlen(p_prefix) + ++ axutil_strlen("state"))); ++ ++ /* axutil_strlen("<:>") + 1 = 4 */ ++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * ++ (5 + axutil_strlen(p_prefix) + axutil_strlen("state"))); ++ /* axutil_strlen("") + 1 = 5 */ ++ ++ ++ ++ ++ ++ ++ /* ++ * parsing state element ++ */ ++ ++ ++ ++ sprintf(start_input_str, "<%s%sstate>", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ ++ start_input_str_len = axutil_strlen(start_input_str); ++ sprintf(end_input_str, "", ++ p_prefix?p_prefix:"", ++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); ++ end_input_str_len = axutil_strlen(end_input_str); ++ ++ text_value_4 = _volumeType->property_state; ++ ++ axutil_stream_write(stream, env, start_input_str, start_input_str_len); ++ ++ ++ text_value_4_temp = axutil_xml_quote_string(env, text_value_4, AXIS2_TRUE); ++ if (text_value_4_temp) ++ { ++ axutil_stream_write(stream, env, text_value_4_temp, axutil_strlen(text_value_4_temp)); ++ AXIS2_FREE(env->allocator, text_value_4_temp); ++ } ++ else ++ { ++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4)); ++ } ++ ++ axutil_stream_write(stream, env, end_input_str, end_input_str_len); ++ ++ ++ AXIS2_FREE(env->allocator,start_input_str); ++ AXIS2_FREE(env->allocator,end_input_str); ++ } ++ ++ ++ ++ return parent; ++ } ++ ++ ++ ++ ++ /** ++ * getter for volumeId. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_volumeType_get_volumeId( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, NULL); ++ ++ ++ return _volumeType->property_volumeId; ++ } ++ ++ /** ++ * setter for volumeId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_volumeId( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_volumeId) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE); ++ ++ if(_volumeType->is_valid_volumeId && ++ arg_volumeId == _volumeType->property_volumeId) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_volumeType_reset_volumeId(_volumeType, env); ++ ++ ++ if(NULL == arg_volumeId) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _volumeType->property_volumeId = (axis2_char_t *)axutil_strdup(env, arg_volumeId); ++ if(NULL == _volumeType->property_volumeId) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for volumeId"); ++ return AXIS2_FAILURE; ++ } ++ _volumeType->is_valid_volumeId = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for volumeId ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_reset_volumeId( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_volumeType->property_volumeId != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _volumeType->property_volumeId); ++ _volumeType->property_volumeId = NULL; ++ } ++ ++ ++ ++ _volumeType->is_valid_volumeId = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether volumeId is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_volumeType_is_volumeId_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_TRUE); ++ ++ return !_volumeType->is_valid_volumeId; ++ } ++ ++ /** ++ * Set volumeId to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_volumeId_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ return adb_volumeType_reset_volumeId(_volumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for remoteDev. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_volumeType_get_remoteDev( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, NULL); ++ ++ ++ return _volumeType->property_remoteDev; ++ } ++ ++ /** ++ * setter for remoteDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_remoteDev( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_remoteDev) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE); ++ ++ if(_volumeType->is_valid_remoteDev && ++ arg_remoteDev == _volumeType->property_remoteDev) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_volumeType_reset_remoteDev(_volumeType, env); ++ ++ ++ if(NULL == arg_remoteDev) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _volumeType->property_remoteDev = (axis2_char_t *)axutil_strdup(env, arg_remoteDev); ++ if(NULL == _volumeType->property_remoteDev) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for remoteDev"); ++ return AXIS2_FAILURE; ++ } ++ _volumeType->is_valid_remoteDev = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for remoteDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_reset_remoteDev( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_volumeType->property_remoteDev != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _volumeType->property_remoteDev); ++ _volumeType->property_remoteDev = NULL; ++ } ++ ++ ++ ++ _volumeType->is_valid_remoteDev = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether remoteDev is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_volumeType_is_remoteDev_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_TRUE); ++ ++ return !_volumeType->is_valid_remoteDev; ++ } ++ ++ /** ++ * Set remoteDev to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_remoteDev_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ return adb_volumeType_reset_remoteDev(_volumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for localDev. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_volumeType_get_localDev( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, NULL); ++ ++ ++ return _volumeType->property_localDev; ++ } ++ ++ /** ++ * setter for localDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_localDev( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_localDev) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE); ++ ++ if(_volumeType->is_valid_localDev && ++ arg_localDev == _volumeType->property_localDev) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_volumeType_reset_localDev(_volumeType, env); ++ ++ ++ if(NULL == arg_localDev) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _volumeType->property_localDev = (axis2_char_t *)axutil_strdup(env, arg_localDev); ++ if(NULL == _volumeType->property_localDev) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for localDev"); ++ return AXIS2_FAILURE; ++ } ++ _volumeType->is_valid_localDev = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for localDev ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_reset_localDev( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_volumeType->property_localDev != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _volumeType->property_localDev); ++ _volumeType->property_localDev = NULL; ++ } ++ ++ ++ ++ _volumeType->is_valid_localDev = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether localDev is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_volumeType_is_localDev_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_TRUE); ++ ++ return !_volumeType->is_valid_localDev; ++ } ++ ++ /** ++ * Set localDev to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_localDev_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ return adb_volumeType_reset_localDev(_volumeType, env); ++ } ++ ++ ++ ++ /** ++ * getter for state. ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_volumeType_get_state( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ ++ AXIS2_ENV_CHECK(env, NULL); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, NULL); ++ ++ ++ return _volumeType->property_state; ++ } ++ ++ /** ++ * setter for state ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_state( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_state) ++ { ++ ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE); ++ ++ if(_volumeType->is_valid_state && ++ arg_state == _volumeType->property_state) ++ { ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ adb_volumeType_reset_state(_volumeType, env); ++ ++ ++ if(NULL == arg_state) ++ { ++ /* We are already done */ ++ return AXIS2_SUCCESS; ++ } ++ _volumeType->property_state = (axis2_char_t *)axutil_strdup(env, arg_state); ++ if(NULL == _volumeType->property_state) ++ { ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for state"); ++ return AXIS2_FAILURE; ++ } ++ _volumeType->is_valid_state = AXIS2_TRUE; ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * resetter for state ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_reset_state( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ int i = 0; ++ int count = 0; ++ void *element = NULL; ++ ++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE); ++ ++ ++ ++ ++ ++ if(_volumeType->property_state != NULL) ++ { ++ ++ ++ AXIS2_FREE(env-> allocator, _volumeType->property_state); ++ _volumeType->property_state = NULL; ++ } ++ ++ ++ ++ _volumeType->is_valid_state = AXIS2_FALSE; ++ return AXIS2_SUCCESS; ++ } ++ ++ /** ++ * Check whether state is nill ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_volumeType_is_state_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ AXIS2_ENV_CHECK(env, AXIS2_TRUE); ++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_TRUE); ++ ++ return !_volumeType->is_valid_state; ++ } ++ ++ /** ++ * Set state to nill (currently the same as reset) ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_state_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env) ++ { ++ return adb_volumeType_reset_state(_volumeType, env); ++ } ++ ++ ++ + +=== added file 'node/generated/adb_volumeType.h' +--- old/node/generated/adb_volumeType.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/adb_volumeType.h 2010-01-05 01:00:35 +0000 +@@ -0,0 +1,351 @@ ++ ++ ++ #ifndef ADB_VOLUMETYPE_H ++ #define ADB_VOLUMETYPE_H ++ ++ /** ++ * adb_volumeType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT) ++ */ ++ ++ /** ++ * adb_volumeType class ++ */ ++ typedef struct adb_volumeType adb_volumeType_t; ++ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ #ifdef __cplusplus ++ extern "C" ++ { ++ #endif ++ ++ #define ADB_DEFAULT_DIGIT_LIMIT 64 ++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64 ++ ++ ++ /******************************* Create and Free functions *********************************/ ++ ++ /** ++ * Constructor for creating adb_volumeType_t ++ * @param env pointer to environment struct ++ * @return newly created adb_volumeType_t object ++ */ ++ adb_volumeType_t* AXIS2_CALL ++ adb_volumeType_create( ++ const axutil_env_t *env ); ++ ++ /** ++ * Free adb_volumeType_t object ++ * @param _volumeType adb_volumeType_t object to free ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_free ( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ /********************************** Getters and Setters **************************************/ ++ ++ ++ ++ /** ++ * Getter for volumeId. ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_volumeType_get_volumeId( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for volumeId. ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_volumeId axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_volumeId( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_volumeId); ++ ++ /** ++ * Resetter for volumeId ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_reset_volumeId( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for remoteDev. ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_volumeType_get_remoteDev( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for remoteDev. ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_remoteDev axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_remoteDev( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_remoteDev); ++ ++ /** ++ * Resetter for remoteDev ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_reset_remoteDev( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for localDev. ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_volumeType_get_localDev( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for localDev. ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_localDev axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_localDev( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_localDev); ++ ++ /** ++ * Resetter for localDev ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_reset_localDev( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Getter for state. ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @return axis2_char_t* ++ */ ++ axis2_char_t* AXIS2_CALL ++ adb_volumeType_get_state( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ /** ++ * Setter for state. ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @param arg_state axis2_char_t* ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_set_state( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, ++ const axis2_char_t* arg_state); ++ ++ /** ++ * Resetter for state ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_reset_state( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /******************************* Checking and Setting NIL values *********************************/ ++ ++ ++ /** ++ * NOTE: set_nil is only available for nillable properties ++ */ ++ ++ ++ ++ /** ++ * Check whether volumeId is nill ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_volumeType_is_volumeId_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether remoteDev is nill ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_volumeType_is_remoteDev_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether localDev is nill ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_volumeType_is_localDev_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /** ++ * Check whether state is nill ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_volumeType_is_state_nil( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env); ++ ++ ++ ++ ++ /**************************** Serialize and Deserialize functions ***************************/ ++ /*********** These functions are for use only inside the generated code *********************/ ++ ++ ++ /** ++ * Deserialize an XML to adb objects ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @param dp_parent double pointer to the parent node to deserialize ++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?) ++ * @param dont_care_minoccurs Dont set errors on validating minoccurs, ++ * (Parent will order this in a case of choice) ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axis2_status_t AXIS2_CALL ++ adb_volumeType_deserialize( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, ++ axiom_node_t** dp_parent, ++ axis2_bool_t *dp_is_early_node_valid, ++ axis2_bool_t dont_care_minoccurs); ++ ++ ++ ++ /** ++ * Declare namespace in the most parent node ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @param parent_element parent element ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index pointer to an int which contain the next namespace index ++ */ ++ void AXIS2_CALL ++ adb_volumeType_declare_parent_namespaces( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, axiom_element_t *parent_element, ++ axutil_hash_t *namespaces, int *next_ns_index); ++ ++ ++ ++ /** ++ * Serialize to an XML from the adb objects ++ * @param _volumeType adb_volumeType_t object ++ * @param env pointer to environment struct ++ * @param volumeType_om_node node to serialize from ++ * @param volumeType_om_element parent element to serialize from ++ * @param tag_closed whether the parent tag is closed or not ++ * @param namespaces hash of namespace uri to prefix ++ * @param next_ns_index an int which contain the next namespace index ++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE ++ */ ++ axiom_node_t* AXIS2_CALL ++ adb_volumeType_serialize( ++ adb_volumeType_t* _volumeType, ++ const axutil_env_t *env, ++ axiom_node_t* volumeType_om_node, axiom_element_t *volumeType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index); ++ ++ /** ++ * Check whether the adb_volumeType is a particle class (E.g. group, inner sequence) ++ * @return whether this is a particle class. ++ */ ++ axis2_bool_t AXIS2_CALL ++ adb_volumeType_is_particle(); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ #endif /* ADB_VOLUMETYPE_H */ ++ ++ + +=== added file 'node/generated/axis2_skel_EucalyptusNC.c' +--- old/node/generated/axis2_skel_EucalyptusNC.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/axis2_skel_EucalyptusNC.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,166 @@ ++ ++ ++ /** ++ * axis2_skel_EucalyptusNC.c ++ * ++ * This file was auto-generated from WSDL for "EucalyptusNC|http://eucalyptus.ucsb.edu/" service ++ * by the Apache Axis2/C version: 1.4 Built on : Apr 26, 2008 (06:24:30 EDT) ++ * axis2_skel_EucalyptusNC Axis2/C skeleton for the axisService ++ */ ++ ++#include "axis2_skel_EucalyptusNC.h" ++#include ++ ++ ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "ncRunInstance|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param ncRunInstance ++ * ++ * @return adb_ncRunInstanceResponse_t** @param ncRunInstance ++ */ ++ adb_ncRunInstanceResponse_t* axis2_skel_EucalyptusNC_ncRunInstance (const axutil_env_t *env , ++ adb_ncRunInstance_t* ncRunInstance ) ++ { return (ncRunInstanceMarshal(ncRunInstance, env)); } ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "ncRebootInstance|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param ncRebootInstance ++ * ++ * @return adb_ncRebootInstanceResponse_t** @param ncRebootInstance ++ */ ++ adb_ncRebootInstanceResponse_t* axis2_skel_EucalyptusNC_ncRebootInstance (const axutil_env_t *env , ++ adb_ncRebootInstance_t* ncRebootInstance ) ++ { return (ncRebootInstanceMarshal(ncRebootInstance, env)); } ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "ncGetConsoleOutput|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param ncGetConsoleOutput ++ * ++ * @return adb_ncGetConsoleOutputResponse_t** @param ncGetConsoleOutput ++ */ ++ adb_ncGetConsoleOutputResponse_t* axis2_skel_EucalyptusNC_ncGetConsoleOutput (const axutil_env_t *env , ++ adb_ncGetConsoleOutput_t* ncGetConsoleOutput ) ++ { return (ncGetConsoleOutputMarshal(ncGetConsoleOutput, env)); } ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "ncDetachVolume|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param ncDetachVolume ++ * ++ * @return adb_ncDetachVolumeResponse_t** @param ncDetachVolume ++ */ ++ adb_ncDetachVolumeResponse_t* axis2_skel_EucalyptusNC_ncDetachVolume (const axutil_env_t *env , ++ adb_ncDetachVolume_t* ncDetachVolume ) ++ { return (ncDetachVolumeMarshal(ncDetachVolume, env)); } ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "ncDescribeInstances|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param ncDescribeInstances ++ * ++ * @return adb_ncDescribeInstancesResponse_t** @param ncDescribeInstances ++ */ ++ adb_ncDescribeInstancesResponse_t* axis2_skel_EucalyptusNC_ncDescribeInstances (const axutil_env_t *env , ++ adb_ncDescribeInstances_t* ncDescribeInstances ) ++ { return (ncDescribeInstancesMarshal(ncDescribeInstances, env)); } ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "ncAttachVolume|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param ncAttachVolume ++ * ++ * @return adb_ncAttachVolumeResponse_t** @param ncAttachVolume ++ */ ++ adb_ncAttachVolumeResponse_t* axis2_skel_EucalyptusNC_ncAttachVolume (const axutil_env_t *env , ++ adb_ncAttachVolume_t* ncAttachVolume ) ++ { return (ncAttachVolumeMarshal(ncAttachVolume, env)); } ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "ncPowerDown|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param ncPowerDown ++ * ++ * @return adb_ncPowerDownResponse_t** @param ncPowerDown ++ */ ++ adb_ncPowerDownResponse_t* axis2_skel_EucalyptusNC_ncPowerDown (const axutil_env_t *env , ++ adb_ncPowerDown_t* ncPowerDown ) ++ { return (ncPowerDownMarshal(ncPowerDown, env)); } ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "ncDescribeResource|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param ncDescribeResource ++ * ++ * @return adb_ncDescribeResourceResponse_t** @param ncDescribeResource ++ */ ++ adb_ncDescribeResourceResponse_t* axis2_skel_EucalyptusNC_ncDescribeResource (const axutil_env_t *env , ++ adb_ncDescribeResource_t* ncDescribeResource ) ++ { return (ncDescribeResourceMarshal(ncDescribeResource, env)); } ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "ncTerminateInstance|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param ncTerminateInstance ++ * ++ * @return adb_ncTerminateInstanceResponse_t** @param ncTerminateInstance ++ */ ++ adb_ncTerminateInstanceResponse_t* axis2_skel_EucalyptusNC_ncTerminateInstance (const axutil_env_t *env , ++ adb_ncTerminateInstance_t* ncTerminateInstance ) ++ { return (ncTerminateInstanceMarshal(ncTerminateInstance, env)); } ++ ++ ++ ++ /** ++ * auto generated function definition signature ++ * for "ncStartNetwork|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param ncStartNetwork ++ * ++ * @return adb_ncStartNetworkResponse_t** @param ncStartNetwork ++ */ ++ adb_ncStartNetworkResponse_t* axis2_skel_EucalyptusNC_ncStartNetwork (const axutil_env_t *env , ++ adb_ncStartNetwork_t* ncStartNetwork ) ++ { return (ncStartNetworkMarshal(ncStartNetwork, env)); } ++ ++ + +=== added file 'node/generated/axis2_skel_EucalyptusNC.h' +--- old/node/generated/axis2_skel_EucalyptusNC.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/axis2_skel_EucalyptusNC.h 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,213 @@ ++ ++ ++ /** ++ * axis2_skel_EucalyptusNC.h ++ * ++ * This file was auto-generated from WSDL for "EucalyptusNC|http://eucalyptus.ucsb.edu/" service ++ * by the Apache Axis2/C version: 1.4 Built on : Apr 26, 2008 (06:24:30 EDT) ++ * axis2_skel_EucalyptusNC Axis2/C skeleton for the axisService- Header file ++ */ ++ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ ++ ++ #include "adb_ncRunInstance.h" ++ ++ #include "adb_ncRunInstanceResponse.h" ++ ++ #include "adb_ncRebootInstance.h" ++ ++ #include "adb_ncRebootInstanceResponse.h" ++ ++ #include "adb_ncGetConsoleOutput.h" ++ ++ #include "adb_ncGetConsoleOutputResponse.h" ++ ++ #include "adb_ncDetachVolume.h" ++ ++ #include "adb_ncDetachVolumeResponse.h" ++ ++ #include "adb_ncDescribeInstances.h" ++ ++ #include "adb_ncDescribeInstancesResponse.h" ++ ++ #include "adb_ncAttachVolume.h" ++ ++ #include "adb_ncAttachVolumeResponse.h" ++ ++ #include "adb_ncPowerDown.h" ++ ++ #include "adb_ncPowerDownResponse.h" ++ ++ #include "adb_ncDescribeResource.h" ++ ++ #include "adb_ncDescribeResourceResponse.h" ++ ++ #include "adb_ncTerminateInstance.h" ++ ++ #include "adb_ncTerminateInstanceResponse.h" ++ ++ #include "adb_ncStartNetwork.h" ++ ++ #include "adb_ncStartNetworkResponse.h" ++ ++ ++ #ifdef __cplusplus ++ extern "C" { ++ #endif ++ ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "ncRunInstance|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param ncRunInstance ++ * ++ * @return adb_ncRunInstanceResponse_t** @param ncRunInstance ++ */ ++ adb_ncRunInstanceResponse_t* axis2_skel_EucalyptusNC_ncRunInstance (const axutil_env_t *env , ++ adb_ncRunInstance_t* ncRunInstance ); ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "ncRebootInstance|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param ncRebootInstance ++ * ++ * @return adb_ncRebootInstanceResponse_t** @param ncRebootInstance ++ */ ++ adb_ncRebootInstanceResponse_t* axis2_skel_EucalyptusNC_ncRebootInstance (const axutil_env_t *env , ++ adb_ncRebootInstance_t* ncRebootInstance ); ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "ncGetConsoleOutput|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param ncGetConsoleOutput ++ * ++ * @return adb_ncGetConsoleOutputResponse_t** @param ncGetConsoleOutput ++ */ ++ adb_ncGetConsoleOutputResponse_t* axis2_skel_EucalyptusNC_ncGetConsoleOutput (const axutil_env_t *env , ++ adb_ncGetConsoleOutput_t* ncGetConsoleOutput ); ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "ncDetachVolume|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param ncDetachVolume ++ * ++ * @return adb_ncDetachVolumeResponse_t** @param ncDetachVolume ++ */ ++ adb_ncDetachVolumeResponse_t* axis2_skel_EucalyptusNC_ncDetachVolume (const axutil_env_t *env , ++ adb_ncDetachVolume_t* ncDetachVolume ); ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "ncDescribeInstances|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param ncDescribeInstances ++ * ++ * @return adb_ncDescribeInstancesResponse_t** @param ncDescribeInstances ++ */ ++ adb_ncDescribeInstancesResponse_t* axis2_skel_EucalyptusNC_ncDescribeInstances (const axutil_env_t *env , ++ adb_ncDescribeInstances_t* ncDescribeInstances ); ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "ncAttachVolume|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param ncAttachVolume ++ * ++ * @return adb_ncAttachVolumeResponse_t** @param ncAttachVolume ++ */ ++ adb_ncAttachVolumeResponse_t* axis2_skel_EucalyptusNC_ncAttachVolume (const axutil_env_t *env , ++ adb_ncAttachVolume_t* ncAttachVolume ); ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "ncPowerDown|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param ncPowerDown ++ * ++ * @return adb_ncPowerDownResponse_t** @param ncPowerDown ++ */ ++ adb_ncPowerDownResponse_t* axis2_skel_EucalyptusNC_ncPowerDown (const axutil_env_t *env , ++ adb_ncPowerDown_t* ncPowerDown ); ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "ncDescribeResource|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param ncDescribeResource ++ * ++ * @return adb_ncDescribeResourceResponse_t** @param ncDescribeResource ++ */ ++ adb_ncDescribeResourceResponse_t* axis2_skel_EucalyptusNC_ncDescribeResource (const axutil_env_t *env , ++ adb_ncDescribeResource_t* ncDescribeResource ); ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "ncTerminateInstance|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param ncTerminateInstance ++ * ++ * @return adb_ncTerminateInstanceResponse_t** @param ncTerminateInstance ++ */ ++ adb_ncTerminateInstanceResponse_t* axis2_skel_EucalyptusNC_ncTerminateInstance (const axutil_env_t *env , ++ adb_ncTerminateInstance_t* ncTerminateInstance ); ++ ++ ++ ++ /** ++ * auto generated function declaration ++ * for "ncStartNetwork|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param ncStartNetwork ++ * ++ * @return adb_ncStartNetworkResponse_t** @param ncStartNetwork ++ */ ++ adb_ncStartNetworkResponse_t* axis2_skel_EucalyptusNC_ncStartNetwork (const axutil_env_t *env , ++ adb_ncStartNetwork_t* ncStartNetwork ); ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ + +=== added file 'node/generated/axis2_stub_EucalyptusNC.c' +--- old/node/generated/axis2_stub_EucalyptusNC.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/axis2_stub_EucalyptusNC.c 2010-01-05 01:00:32 +0000 +@@ -0,0 +1,3041 @@ ++ ++ ++ /** ++ * axis2_stub_EucalyptusNC.c ++ * ++ * This file was auto-generated from WSDL for "EucalyptusNC|http://eucalyptus.ucsb.edu/" service ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:24:30 EDT) ++ */ ++ ++ #include "axis2_stub_EucalyptusNC.h" ++ #include ++ ++ /** ++ * axis2_stub_EucalyptusNC C implementation ++ */ ++ ++ axis2_stub_t* ++ axis2_stub_create_EucalyptusNC(const axutil_env_t *env, ++ axis2_char_t *client_home, ++ axis2_char_t *endpoint_uri) ++ { ++ axis2_stub_t *stub = NULL; ++ axis2_endpoint_ref_t *endpoint_ref = NULL; ++ AXIS2_FUNC_PARAM_CHECK (client_home, env, NULL) ++ ++ if (NULL == endpoint_uri) ++ { ++ endpoint_uri = axis2_stub_get_endpoint_uri_of_EucalyptusNC(env); ++ } ++ ++ endpoint_ref = axis2_endpoint_ref_create(env, endpoint_uri); ++ ++ stub = axis2_stub_create_with_endpoint_ref_and_client_home (env, endpoint_ref, client_home); ++ ++ if (NULL == stub) ++ { ++ if(NULL != endpoint_ref) ++ { ++ axis2_endpoint_ref_free(endpoint_ref, env); ++ } ++ return NULL; ++ } ++ ++ ++ axis2_stub_populate_services_for_EucalyptusNC(stub, env); ++ return stub; ++ } ++ ++ ++ void ++ axis2_stub_populate_services_for_EucalyptusNC(axis2_stub_t *stub, const axutil_env_t *env) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axutil_qname_t *svc_qname = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axis2_svc_t *svc = NULL; ++ axis2_op_t *op = NULL; ++ axis2_op_t *annon_op = NULL; ++ axis2_msg_t *msg_out = NULL; ++ axis2_msg_t *msg_in = NULL; ++ axis2_msg_t *msg_out_fault = NULL; ++ axis2_msg_t *msg_in_fault = NULL; ++ ++ ++ /* Modifying the Service */ ++ svc_client = axis2_stub_get_svc_client (stub, env ); ++ svc = (axis2_svc_t*)axis2_svc_client_get_svc( svc_client, env ); ++ ++ annon_op = axis2_svc_get_op_with_name(svc, env, AXIS2_ANON_OUT_IN_OP); ++ msg_out = axis2_op_get_msg(annon_op, env, AXIS2_MSG_OUT); ++ msg_in = axis2_op_get_msg(annon_op, env, AXIS2_MSG_IN); ++ msg_out_fault = axis2_op_get_msg(annon_op, env, AXIS2_MSG_OUT_FAULT); ++ msg_in_fault = axis2_op_get_msg(annon_op, env, AXIS2_MSG_IN_FAULT); ++ ++ svc_qname = axutil_qname_create(env,"EucalyptusNC" ,NULL, NULL); ++ axis2_svc_set_qname (svc, env, svc_qname); ++ ++ /* creating the operations*/ ++ ++ ++ op_qname = axutil_qname_create(env, ++ "ncRunInstance" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "ncRebootInstance" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "ncGetConsoleOutput" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "ncDetachVolume" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "ncDescribeInstances" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "ncAttachVolume" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "ncPowerDown" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "ncDescribeResource" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "ncTerminateInstance" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ op_qname = axutil_qname_create(env, ++ "ncStartNetwork" , ++ "http://eucalyptus.ucsb.edu/", ++ NULL); ++ op = axis2_op_create_with_qname(env, op_qname); ++ ++ axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); ++ ++ axis2_msg_increment_ref(msg_out, env); ++ axis2_msg_increment_ref(msg_in, env); ++ axis2_msg_increment_ref(msg_out_fault, env); ++ axis2_msg_increment_ref(msg_in_fault, env); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); ++ axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); ++ axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); ++ ++ axis2_svc_add_op(svc, env, op); ++ ++ ++ } ++ ++ /** ++ *return end point picked from wsdl ++ */ ++ axis2_char_t* ++ axis2_stub_get_endpoint_uri_of_EucalyptusNC( const axutil_env_t *env ) ++ { ++ axis2_char_t *endpoint_uri = NULL; ++ /* set the address from here */ ++ ++ endpoint_uri = "http://spinner.cs.ucsb.edu:9090/axis2/services/EucalyptusNC"; ++ ++ return endpoint_uri; ++ } ++ ++ ++ ++ /** ++ * auto generated method signature ++ * for "ncRunInstance|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _ncRunInstance ++ * ++ * @return adb_ncRunInstanceResponse_t* ++ */ ++ adb_ncRunInstanceResponse_t* ++ axis2_stub_op_EucalyptusNC_ncRunInstance( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncRunInstance_t* _ncRunInstance) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_ncRunInstanceResponse_t* ret_val = NULL; ++ ++ payload = adb_ncRunInstance_serialize(_ncRunInstance, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncRunInstance"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncRunInstance"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_ncRunInstanceResponse_create(env); ++ ++ if(adb_ncRunInstanceResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_ncRunInstanceResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncRunInstanceResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "ncRebootInstance|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _ncRebootInstance ++ * ++ * @return adb_ncRebootInstanceResponse_t* ++ */ ++ adb_ncRebootInstanceResponse_t* ++ axis2_stub_op_EucalyptusNC_ncRebootInstance( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncRebootInstance_t* _ncRebootInstance) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_ncRebootInstanceResponse_t* ret_val = NULL; ++ ++ payload = adb_ncRebootInstance_serialize(_ncRebootInstance, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncRebootInstance"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncRebootInstance"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_ncRebootInstanceResponse_create(env); ++ ++ if(adb_ncRebootInstanceResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_ncRebootInstanceResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncRebootInstanceResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "ncGetConsoleOutput|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _ncGetConsoleOutput ++ * ++ * @return adb_ncGetConsoleOutputResponse_t* ++ */ ++ adb_ncGetConsoleOutputResponse_t* ++ axis2_stub_op_EucalyptusNC_ncGetConsoleOutput( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_ncGetConsoleOutputResponse_t* ret_val = NULL; ++ ++ payload = adb_ncGetConsoleOutput_serialize(_ncGetConsoleOutput, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncGetConsoleOutput"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncGetConsoleOutput"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_ncGetConsoleOutputResponse_create(env); ++ ++ if(adb_ncGetConsoleOutputResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_ncGetConsoleOutputResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncGetConsoleOutputResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "ncDetachVolume|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _ncDetachVolume ++ * ++ * @return adb_ncDetachVolumeResponse_t* ++ */ ++ adb_ncDetachVolumeResponse_t* ++ axis2_stub_op_EucalyptusNC_ncDetachVolume( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncDetachVolume_t* _ncDetachVolume) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_ncDetachVolumeResponse_t* ret_val = NULL; ++ ++ payload = adb_ncDetachVolume_serialize(_ncDetachVolume, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncDetachVolume"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncDetachVolume"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_ncDetachVolumeResponse_create(env); ++ ++ if(adb_ncDetachVolumeResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_ncDetachVolumeResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncDetachVolumeResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "ncDescribeInstances|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _ncDescribeInstances ++ * ++ * @return adb_ncDescribeInstancesResponse_t* ++ */ ++ adb_ncDescribeInstancesResponse_t* ++ axis2_stub_op_EucalyptusNC_ncDescribeInstances( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncDescribeInstances_t* _ncDescribeInstances) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_ncDescribeInstancesResponse_t* ret_val = NULL; ++ ++ payload = adb_ncDescribeInstances_serialize(_ncDescribeInstances, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncDescribeInstances"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncDescribeInstances"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_ncDescribeInstancesResponse_create(env); ++ ++ if(adb_ncDescribeInstancesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_ncDescribeInstancesResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncDescribeInstancesResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "ncAttachVolume|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _ncAttachVolume ++ * ++ * @return adb_ncAttachVolumeResponse_t* ++ */ ++ adb_ncAttachVolumeResponse_t* ++ axis2_stub_op_EucalyptusNC_ncAttachVolume( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncAttachVolume_t* _ncAttachVolume) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_ncAttachVolumeResponse_t* ret_val = NULL; ++ ++ payload = adb_ncAttachVolume_serialize(_ncAttachVolume, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncAttachVolume"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncAttachVolume"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_ncAttachVolumeResponse_create(env); ++ ++ if(adb_ncAttachVolumeResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_ncAttachVolumeResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncAttachVolumeResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "ncPowerDown|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _ncPowerDown ++ * ++ * @return adb_ncPowerDownResponse_t* ++ */ ++ adb_ncPowerDownResponse_t* ++ axis2_stub_op_EucalyptusNC_ncPowerDown( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncPowerDown_t* _ncPowerDown) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_ncPowerDownResponse_t* ret_val = NULL; ++ ++ payload = adb_ncPowerDown_serialize(_ncPowerDown, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncPowerDown"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncPowerDown"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_ncPowerDownResponse_create(env); ++ ++ if(adb_ncPowerDownResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_ncPowerDownResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncPowerDownResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "ncDescribeResource|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _ncDescribeResource ++ * ++ * @return adb_ncDescribeResourceResponse_t* ++ */ ++ adb_ncDescribeResourceResponse_t* ++ axis2_stub_op_EucalyptusNC_ncDescribeResource( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncDescribeResource_t* _ncDescribeResource) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_ncDescribeResourceResponse_t* ret_val = NULL; ++ ++ payload = adb_ncDescribeResource_serialize(_ncDescribeResource, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncDescribeResource"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncDescribeResource"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_ncDescribeResourceResponse_create(env); ++ ++ if(adb_ncDescribeResourceResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_ncDescribeResourceResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncDescribeResourceResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "ncTerminateInstance|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _ncTerminateInstance ++ * ++ * @return adb_ncTerminateInstanceResponse_t* ++ */ ++ adb_ncTerminateInstanceResponse_t* ++ axis2_stub_op_EucalyptusNC_ncTerminateInstance( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncTerminateInstance_t* _ncTerminateInstance) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_ncTerminateInstanceResponse_t* ret_val = NULL; ++ ++ payload = adb_ncTerminateInstance_serialize(_ncTerminateInstance, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncTerminateInstance"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncTerminateInstance"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_ncTerminateInstanceResponse_create(env); ++ ++ if(adb_ncTerminateInstanceResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_ncTerminateInstanceResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncTerminateInstanceResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ /** ++ * auto generated method signature ++ * for "ncStartNetwork|http://eucalyptus.ucsb.edu/" operation. ++ * ++ * @param _ncStartNetwork ++ * ++ * @return adb_ncStartNetworkResponse_t* ++ */ ++ adb_ncStartNetworkResponse_t* ++ axis2_stub_op_EucalyptusNC_ncStartNetwork( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncStartNetwork_t* _ncStartNetwork) ++ { ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ axiom_node_t *ret_node = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axiom_node_t *payload = NULL; ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ adb_ncStartNetworkResponse_t* ret_val = NULL; ++ ++ payload = adb_ncStartNetwork_serialize(_ncStartNetwork, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ svc_client = axis2_stub_get_svc_client(stub, env ); ++ ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return NULL; ++ } ++ soap_action = axis2_options_get_action( options, env ); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncStartNetwork"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncStartNetwork"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action ); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ++ ++ ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action( options, env, NULL); ++ } ++ ++ ++ ++ if ( NULL == ret_node ) ++ { ++ return NULL; ++ } ++ ret_val = adb_ncStartNetworkResponse_create(env); ++ ++ if(adb_ncStartNetworkResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ if(ret_val != NULL) ++ { ++ adb_ncStartNetworkResponse_free(ret_val, env); ++ } ++ ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncStartNetworkResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ return ret_val; ++ ++ } ++ ++ ++ struct axis2_stub_EucalyptusNC_ncRunInstance_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusNC_ncRunInstance(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusNC_ncRunInstance_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncRunInstance_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusNC_ncRunInstance(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, void *data); ++ struct axis2_stub_EucalyptusNC_ncRunInstance_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_ncRunInstanceResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncRunInstance_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_ncRunInstanceResponse_create(env); ++ ++ if(adb_ncRunInstanceResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_ncRunInstanceResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "ncRunInstance|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _ncRunInstance ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusNC_ncRunInstance( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncRunInstance_t* _ncRunInstance, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusNC_ncRunInstance_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncRunInstance_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusNC_ncRunInstance_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_ncRunInstance_serialize(_ncRunInstance, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncRunInstance"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncRunInstance"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusNC_ncRunInstance); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusNC_ncRunInstance); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusNC_ncRebootInstance_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusNC_ncRebootInstance(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusNC_ncRebootInstance_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncRebootInstance_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusNC_ncRebootInstance(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, void *data); ++ struct axis2_stub_EucalyptusNC_ncRebootInstance_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_ncRebootInstanceResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncRebootInstance_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_ncRebootInstanceResponse_create(env); ++ ++ if(adb_ncRebootInstanceResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_ncRebootInstanceResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "ncRebootInstance|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _ncRebootInstance ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusNC_ncRebootInstance( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusNC_ncRebootInstance_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncRebootInstance_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusNC_ncRebootInstance_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_ncRebootInstance_serialize(_ncRebootInstance, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncRebootInstance"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncRebootInstance"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusNC_ncRebootInstance); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusNC_ncRebootInstance); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusNC_ncGetConsoleOutput_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusNC_ncGetConsoleOutput(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusNC_ncGetConsoleOutput_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncGetConsoleOutput_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusNC_ncGetConsoleOutput(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, void *data); ++ struct axis2_stub_EucalyptusNC_ncGetConsoleOutput_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_ncGetConsoleOutputResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncGetConsoleOutput_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_ncGetConsoleOutputResponse_create(env); ++ ++ if(adb_ncGetConsoleOutputResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_ncGetConsoleOutputResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "ncGetConsoleOutput|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _ncGetConsoleOutput ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusNC_ncGetConsoleOutput( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusNC_ncGetConsoleOutput_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncGetConsoleOutput_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusNC_ncGetConsoleOutput_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_ncGetConsoleOutput_serialize(_ncGetConsoleOutput, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncGetConsoleOutput"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncGetConsoleOutput"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusNC_ncGetConsoleOutput); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusNC_ncGetConsoleOutput); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusNC_ncDetachVolume_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusNC_ncDetachVolume(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusNC_ncDetachVolume_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncDetachVolume_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusNC_ncDetachVolume(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, void *data); ++ struct axis2_stub_EucalyptusNC_ncDetachVolume_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_ncDetachVolumeResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncDetachVolume_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_ncDetachVolumeResponse_create(env); ++ ++ if(adb_ncDetachVolumeResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_ncDetachVolumeResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "ncDetachVolume|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _ncDetachVolume ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusNC_ncDetachVolume( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusNC_ncDetachVolume_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncDetachVolume_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusNC_ncDetachVolume_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_ncDetachVolume_serialize(_ncDetachVolume, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncDetachVolume"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncDetachVolume"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusNC_ncDetachVolume); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusNC_ncDetachVolume); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusNC_ncDescribeInstances_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusNC_ncDescribeInstances(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusNC_ncDescribeInstances_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncDescribeInstances_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusNC_ncDescribeInstances(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, void *data); ++ struct axis2_stub_EucalyptusNC_ncDescribeInstances_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_ncDescribeInstancesResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncDescribeInstances_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_ncDescribeInstancesResponse_create(env); ++ ++ if(adb_ncDescribeInstancesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_ncDescribeInstancesResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "ncDescribeInstances|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _ncDescribeInstances ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusNC_ncDescribeInstances( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusNC_ncDescribeInstances_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncDescribeInstances_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusNC_ncDescribeInstances_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_ncDescribeInstances_serialize(_ncDescribeInstances, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncDescribeInstances"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncDescribeInstances"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusNC_ncDescribeInstances); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusNC_ncDescribeInstances); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusNC_ncAttachVolume_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusNC_ncAttachVolume(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusNC_ncAttachVolume_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncAttachVolume_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusNC_ncAttachVolume(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, void *data); ++ struct axis2_stub_EucalyptusNC_ncAttachVolume_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_ncAttachVolumeResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncAttachVolume_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_ncAttachVolumeResponse_create(env); ++ ++ if(adb_ncAttachVolumeResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_ncAttachVolumeResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "ncAttachVolume|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _ncAttachVolume ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusNC_ncAttachVolume( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusNC_ncAttachVolume_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncAttachVolume_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusNC_ncAttachVolume_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_ncAttachVolume_serialize(_ncAttachVolume, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncAttachVolume"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncAttachVolume"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusNC_ncAttachVolume); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusNC_ncAttachVolume); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusNC_ncPowerDown_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncPowerDownResponse_t* _ncPowerDownResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusNC_ncPowerDown(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusNC_ncPowerDown_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncPowerDown_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusNC_ncPowerDown(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncPowerDownResponse_t* _ncPowerDownResponse, void *data); ++ struct axis2_stub_EucalyptusNC_ncPowerDown_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_ncPowerDownResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncPowerDown_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_ncPowerDownResponse_create(env); ++ ++ if(adb_ncPowerDownResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_ncPowerDownResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "ncPowerDown|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _ncPowerDown ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusNC_ncPowerDown( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncPowerDown_t* _ncPowerDown, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncPowerDownResponse_t* _ncPowerDownResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusNC_ncPowerDown_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncPowerDown_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusNC_ncPowerDown_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_ncPowerDown_serialize(_ncPowerDown, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncPowerDown"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncPowerDown"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusNC_ncPowerDown); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusNC_ncPowerDown); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusNC_ncDescribeResource_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusNC_ncDescribeResource(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusNC_ncDescribeResource_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncDescribeResource_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusNC_ncDescribeResource(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, void *data); ++ struct axis2_stub_EucalyptusNC_ncDescribeResource_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_ncDescribeResourceResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncDescribeResource_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_ncDescribeResourceResponse_create(env); ++ ++ if(adb_ncDescribeResourceResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_ncDescribeResourceResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "ncDescribeResource|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _ncDescribeResource ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusNC_ncDescribeResource( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusNC_ncDescribeResource_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncDescribeResource_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusNC_ncDescribeResource_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_ncDescribeResource_serialize(_ncDescribeResource, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncDescribeResource"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncDescribeResource"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusNC_ncDescribeResource); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusNC_ncDescribeResource); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusNC_ncTerminateInstance_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusNC_ncTerminateInstance(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusNC_ncTerminateInstance_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncTerminateInstance_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusNC_ncTerminateInstance(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, void *data); ++ struct axis2_stub_EucalyptusNC_ncTerminateInstance_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_ncTerminateInstanceResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncTerminateInstance_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_ncTerminateInstanceResponse_create(env); ++ ++ if(adb_ncTerminateInstanceResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_ncTerminateInstanceResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "ncTerminateInstance|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _ncTerminateInstance ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusNC_ncTerminateInstance( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusNC_ncTerminateInstance_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncTerminateInstance_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusNC_ncTerminateInstance_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_ncTerminateInstance_serialize(_ncTerminateInstance, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncTerminateInstance"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncTerminateInstance"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusNC_ncTerminateInstance); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusNC_ncTerminateInstance); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ struct axis2_stub_EucalyptusNC_ncStartNetwork_callback_data ++ { ++ void *data; ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, void *data); ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); ++ }; ++ ++ static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusNC_ncStartNetwork(axis2_callback_t *callback, const axutil_env_t *env, int exception) ++ { ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); ++ struct axis2_stub_EucalyptusNC_ncStartNetwork_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ ++ axis2_status_t status; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncStartNetwork_callback_data*)axis2_callback_get_data(callback); ++ ++ user_data = callback_data->data; ++ on_error = callback_data->on_error; ++ ++ status = on_error(env, exception, user_data); ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusNC_ncStartNetwork(axis2_callback_t *callback, const axutil_env_t *env) ++ { ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, void *data); ++ struct axis2_stub_EucalyptusNC_ncStartNetwork_callback_data* callback_data = NULL; ++ void *user_data = NULL; ++ axis2_status_t status = AXIS2_SUCCESS; ++ ++ adb_ncStartNetworkResponse_t* ret_val = NULL; ++ ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_soap_envelope_t *soap_envelope = NULL; ++ ++ ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncStartNetwork_callback_data*)axis2_callback_get_data(callback); ++ ++ soap_envelope = axis2_callback_get_envelope(callback, env); ++ if(soap_envelope) ++ { ++ axiom_soap_body_t *soap_body; ++ soap_body = axiom_soap_envelope_get_body(soap_envelope, env); ++ if(soap_body) ++ { ++ axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); ++ if(body_node) ++ { ++ ret_node = axiom_node_get_first_child(body_node, env); ++ } ++ } ++ ++ ++ } ++ ++ user_data = callback_data->data; ++ on_complete = callback_data->on_complete; ++ ++ ++ if(ret_node != NULL) ++ { ++ ret_val = adb_ncStartNetworkResponse_create(env); ++ ++ if(adb_ncStartNetworkResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " ++ "This should be due to an invalid XML"); ++ adb_ncStartNetworkResponse_free(ret_val, env); ++ ret_val = NULL; ++ } ++ } ++ else ++ { ++ ret_val = NULL; ++ } ++ status = on_complete(env, ret_val, user_data); ++ ++ ++ if(callback_data) ++ { ++ AXIS2_FREE(env->allocator, callback_data); ++ } ++ return status; ++ } ++ ++ /** ++ * auto generated method signature for asynchronous invocations ++ * for "ncStartNetwork|http://eucalyptus.ucsb.edu/" operation. ++ ++ * ++ * @param _ncStartNetwork ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ void axis2_stub_start_op_EucalyptusNC_ncStartNetwork( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) ++ { ++ ++ axis2_callback_t *callback = NULL; ++ ++ axis2_svc_client_t *svc_client = NULL; ++ axis2_options_t *options = NULL; ++ ++ const axis2_char_t *soap_action = NULL; ++ axiom_node_t *payload = NULL; ++ ++ axis2_bool_t is_soap_act_set = AXIS2_TRUE; ++ ++ axutil_string_t *soap_act = NULL; ++ ++ ++ struct axis2_stub_EucalyptusNC_ncStartNetwork_callback_data *callback_data; ++ ++ callback_data = (struct axis2_stub_EucalyptusNC_ncStartNetwork_callback_data*) AXIS2_MALLOC(env->allocator, ++ sizeof(struct axis2_stub_EucalyptusNC_ncStartNetwork_callback_data)); ++ if(NULL == callback_data) ++ { ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); ++ return; ++ } ++ ++ ++ payload = adb_ncStartNetwork_serialize(_ncStartNetwork, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ ++ ++ ++ ++ options = axis2_stub_get_options( stub, env); ++ if (NULL == options) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); ++ return; ++ } ++ svc_client = axis2_stub_get_svc_client (stub, env); ++ soap_action =axis2_options_get_action (options, env); ++ if (NULL == soap_action) ++ { ++ is_soap_act_set = AXIS2_FALSE; ++ soap_action = "EucalyptusNC#ncStartNetwork"; ++ ++ soap_act = axutil_string_create(env, "EucalyptusNC#ncStartNetwork"); ++ axis2_options_set_soap_action(options, env, soap_act); ++ ++ axis2_options_set_action( options, env, soap_action); ++ } ++ ++ axis2_options_set_soap_version(options, env, AXIOM_SOAP11); ++ ++ ++ callback = axis2_callback_create(env); ++ /* Set our on_complete fucntion pointer to the callback object */ ++ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusNC_ncStartNetwork); ++ /* Set our on_error function pointer to the callback object */ ++ axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusNC_ncStartNetwork); ++ ++ callback_data-> data = user_data; ++ callback_data-> on_complete = on_complete; ++ callback_data-> on_error = on_error; ++ ++ axis2_callback_set_data(callback, (void*)callback_data); ++ ++ /* Send request */ ++ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); ++ ++ if (!is_soap_act_set) ++ { ++ ++ axis2_options_set_soap_action(options, env, NULL); ++ ++ axis2_options_set_action(options, env, NULL); ++ } ++ } ++ ++ ++ ++ ++ /** ++ * function to free any soap input headers ++ */ ++ ++ ++ ++ /** ++ * function to free any soap output headers ++ */ ++ ++ + +=== added file 'node/generated/axis2_stub_EucalyptusNC.h' +--- old/node/generated/axis2_stub_EucalyptusNC.h 1970-01-01 00:00:00 +0000 ++++ new/node/generated/axis2_stub_EucalyptusNC.h 2010-01-05 01:00:32 +0000 +@@ -0,0 +1,480 @@ ++ ++ ++ /** ++ * axis2_stub_EucalyptusNC.h ++ * ++ * This file was auto-generated from WSDL for "EucalyptusNC|http://eucalyptus.ucsb.edu/" service ++ * by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:24:30 EDT) ++ */ ++ ++ #include ++ #include ++ #include ++ #include ++ #include ++ #include ++ ++ ++ #include "adb_ncRunInstance.h" ++ ++ #include "adb_ncRunInstanceResponse.h" ++ ++ #include "adb_ncRebootInstance.h" ++ ++ #include "adb_ncRebootInstanceResponse.h" ++ ++ #include "adb_ncGetConsoleOutput.h" ++ ++ #include "adb_ncGetConsoleOutputResponse.h" ++ ++ #include "adb_ncDetachVolume.h" ++ ++ #include "adb_ncDetachVolumeResponse.h" ++ ++ #include "adb_ncDescribeInstances.h" ++ ++ #include "adb_ncDescribeInstancesResponse.h" ++ ++ #include "adb_ncAttachVolume.h" ++ ++ #include "adb_ncAttachVolumeResponse.h" ++ ++ #include "adb_ncPowerDown.h" ++ ++ #include "adb_ncPowerDownResponse.h" ++ ++ #include "adb_ncDescribeResource.h" ++ ++ #include "adb_ncDescribeResourceResponse.h" ++ ++ #include "adb_ncTerminateInstance.h" ++ ++ #include "adb_ncTerminateInstanceResponse.h" ++ ++ #include "adb_ncStartNetwork.h" ++ ++ #include "adb_ncStartNetworkResponse.h" ++ ++ ++ #ifdef __cplusplus ++ extern "C" { ++ #endif ++ ++ /***************** function prototypes - for header file *************/ ++ /** ++ * axis2_stub_create_EucalyptusNC ++ * Create and return the stub with services populated ++ * @param env Environment ( mandatory) ++ * @param client_home Axis2/C home ( mandatory ) ++ * @param endpoint_uri Service endpoint uri( optional ) - if NULL default picked from WSDL used ++ * @return Newly created stub object ++ */ ++ axis2_stub_t* ++ axis2_stub_create_EucalyptusNC(const axutil_env_t *env, ++ axis2_char_t *client_home, ++ axis2_char_t *endpoint_uri); ++ /** ++ * axis2_stub_populate_services_for_EucalyptusNC ++ * populate the svc in stub with the service and operations ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ */ ++ void axis2_stub_populate_services_for_EucalyptusNC( axis2_stub_t *stub, const axutil_env_t *env); ++ /** ++ * axis2_stub_get_endpoint_uri_of_EucalyptusNC ++ * Return the endpoint URI picked from WSDL ++ * @param env environment ( mandatory) ++ * @return The endpoint picked from WSDL ++ */ ++ axis2_char_t * ++ axis2_stub_get_endpoint_uri_of_EucalyptusNC(const axutil_env_t *env); ++ ++ ++ /** ++ * Auto generated function declaration ++ * for "ncRunInstance|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _ncRunInstance ++ * ++ * @return adb_ncRunInstanceResponse_t* ++ */ ++ ++ ++ adb_ncRunInstanceResponse_t* ++ axis2_stub_op_EucalyptusNC_ncRunInstance( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncRunInstance_t* _ncRunInstance); ++ ++ /** ++ * Auto generated function declaration ++ * for "ncRebootInstance|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _ncRebootInstance ++ * ++ * @return adb_ncRebootInstanceResponse_t* ++ */ ++ ++ ++ adb_ncRebootInstanceResponse_t* ++ axis2_stub_op_EucalyptusNC_ncRebootInstance( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncRebootInstance_t* _ncRebootInstance); ++ ++ /** ++ * Auto generated function declaration ++ * for "ncGetConsoleOutput|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _ncGetConsoleOutput ++ * ++ * @return adb_ncGetConsoleOutputResponse_t* ++ */ ++ ++ ++ adb_ncGetConsoleOutputResponse_t* ++ axis2_stub_op_EucalyptusNC_ncGetConsoleOutput( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput); ++ ++ /** ++ * Auto generated function declaration ++ * for "ncDetachVolume|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _ncDetachVolume ++ * ++ * @return adb_ncDetachVolumeResponse_t* ++ */ ++ ++ ++ adb_ncDetachVolumeResponse_t* ++ axis2_stub_op_EucalyptusNC_ncDetachVolume( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncDetachVolume_t* _ncDetachVolume); ++ ++ /** ++ * Auto generated function declaration ++ * for "ncDescribeInstances|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _ncDescribeInstances ++ * ++ * @return adb_ncDescribeInstancesResponse_t* ++ */ ++ ++ ++ adb_ncDescribeInstancesResponse_t* ++ axis2_stub_op_EucalyptusNC_ncDescribeInstances( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncDescribeInstances_t* _ncDescribeInstances); ++ ++ /** ++ * Auto generated function declaration ++ * for "ncAttachVolume|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _ncAttachVolume ++ * ++ * @return adb_ncAttachVolumeResponse_t* ++ */ ++ ++ ++ adb_ncAttachVolumeResponse_t* ++ axis2_stub_op_EucalyptusNC_ncAttachVolume( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncAttachVolume_t* _ncAttachVolume); ++ ++ /** ++ * Auto generated function declaration ++ * for "ncPowerDown|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _ncPowerDown ++ * ++ * @return adb_ncPowerDownResponse_t* ++ */ ++ ++ ++ adb_ncPowerDownResponse_t* ++ axis2_stub_op_EucalyptusNC_ncPowerDown( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncPowerDown_t* _ncPowerDown); ++ ++ /** ++ * Auto generated function declaration ++ * for "ncDescribeResource|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _ncDescribeResource ++ * ++ * @return adb_ncDescribeResourceResponse_t* ++ */ ++ ++ ++ adb_ncDescribeResourceResponse_t* ++ axis2_stub_op_EucalyptusNC_ncDescribeResource( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncDescribeResource_t* _ncDescribeResource); ++ ++ /** ++ * Auto generated function declaration ++ * for "ncTerminateInstance|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _ncTerminateInstance ++ * ++ * @return adb_ncTerminateInstanceResponse_t* ++ */ ++ ++ ++ adb_ncTerminateInstanceResponse_t* ++ axis2_stub_op_EucalyptusNC_ncTerminateInstance( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncTerminateInstance_t* _ncTerminateInstance); ++ ++ /** ++ * Auto generated function declaration ++ * for "ncStartNetwork|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub (axis2_stub_t) ++ * @param env environment ( mandatory) ++ * ++ * @param _ncStartNetwork ++ * ++ * @return adb_ncStartNetworkResponse_t* ++ */ ++ ++ ++ adb_ncStartNetworkResponse_t* ++ axis2_stub_op_EucalyptusNC_ncStartNetwork( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncStartNetwork_t* _ncStartNetwork); ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "ncRunInstance|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _ncRunInstance ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusNC_ncRunInstance( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncRunInstance_t* _ncRunInstance, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncRunInstanceResponse_t* _ncRunInstanceResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "ncRebootInstance|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _ncRebootInstance ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusNC_ncRebootInstance( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncRebootInstance_t* _ncRebootInstance, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncRebootInstanceResponse_t* _ncRebootInstanceResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "ncGetConsoleOutput|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _ncGetConsoleOutput ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusNC_ncGetConsoleOutput( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncGetConsoleOutput_t* _ncGetConsoleOutput, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncGetConsoleOutputResponse_t* _ncGetConsoleOutputResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "ncDetachVolume|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _ncDetachVolume ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusNC_ncDetachVolume( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncDetachVolume_t* _ncDetachVolume, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncDetachVolumeResponse_t* _ncDetachVolumeResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "ncDescribeInstances|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _ncDescribeInstances ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusNC_ncDescribeInstances( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncDescribeInstances_t* _ncDescribeInstances, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncDescribeInstancesResponse_t* _ncDescribeInstancesResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "ncAttachVolume|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _ncAttachVolume ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusNC_ncAttachVolume( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncAttachVolume_t* _ncAttachVolume, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncAttachVolumeResponse_t* _ncAttachVolumeResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "ncPowerDown|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _ncPowerDown ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusNC_ncPowerDown( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncPowerDown_t* _ncPowerDown, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncPowerDownResponse_t* _ncPowerDownResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "ncDescribeResource|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _ncDescribeResource ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusNC_ncDescribeResource( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncDescribeResource_t* _ncDescribeResource, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncDescribeResourceResponse_t* _ncDescribeResourceResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "ncTerminateInstance|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _ncTerminateInstance ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusNC_ncTerminateInstance( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncTerminateInstance_t* _ncTerminateInstance, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncTerminateInstanceResponse_t* _ncTerminateInstanceResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ /** ++ * Auto generated function for asynchronous invocations ++ * for "ncStartNetwork|http://eucalyptus.ucsb.edu/" operation. ++ * @param stub The stub ++ * @param env environment ( mandatory) ++ ++ * @param _ncStartNetwork ++ * @param user_data user data to be accessed by the callbacks ++ * @param on_complete callback to handle on complete ++ * @param on_error callback to handle on error ++ */ ++ ++ ++ ++ void axis2_stub_start_op_EucalyptusNC_ncStartNetwork( axis2_stub_t *stub, const axutil_env_t *env, ++ adb_ncStartNetwork_t* _ncStartNetwork, ++ void *user_data, ++ axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ncStartNetworkResponse_t* _ncStartNetworkResponse, void *data) , ++ axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); ++ ++ ++ ++ /** ++ * function to free any soap input headers ++ * @param env environment ( mandatory) ++ */ ++ ++ ++ /** ++ * function to free any soap output headers ++ * @param env environment ( mandatory) ++ */ ++ ++ ++ #ifdef __cplusplus ++ } ++ #endif ++ ++ + +=== added file 'node/generated/axis2_svc_skel_EucalyptusNC.c' +--- old/node/generated/axis2_svc_skel_EucalyptusNC.c 1970-01-01 00:00:00 +0000 ++++ new/node/generated/axis2_svc_skel_EucalyptusNC.c 2010-01-05 01:00:49 +0000 +@@ -0,0 +1,676 @@ ++ ++ ++ /** ++ * axis2_svc_skel_EucalyptusNC.c ++ * ++ * This file was auto-generated from WSDL for "EucalyptusNC|http://eucalyptus.ucsb.edu/" service ++ * by the Apache Axis2 version: 1.4 Built on : Apr 26, 2008 (06:24:30 EDT) ++ * axis2_svc_skel_EucalyptusNC ++ */ ++ ++ #include "axis2_skel_EucalyptusNC.h" ++ #include ++ #include ++ #include ++#include "euca_auth.h" ++ ++ /** ++ * functions prototypes ++ */ ++ ++ /* On fault, handle the fault */ ++ axiom_node_t* AXIS2_CALL ++ axis2_svc_skel_EucalyptusNC_on_fault(axis2_svc_skeleton_t *svc_skeleton, ++ const axutil_env_t *env, axiom_node_t *node); ++ ++ /* Free the service */ ++ int AXIS2_CALL ++ axis2_svc_skel_EucalyptusNC_free(axis2_svc_skeleton_t *svc_skeleton, ++ const axutil_env_t *env); ++ ++ /* This method invokes the right service method */ ++ axiom_node_t* AXIS2_CALL ++ axis2_svc_skel_EucalyptusNC_invoke(axis2_svc_skeleton_t *svc_skeleton, ++ const axutil_env_t *env, ++ axiom_node_t *node, ++ axis2_msg_ctx_t *msg_ctx); ++ ++ /* Initializing the environment */ ++ int AXIS2_CALL ++ axis2_svc_skel_EucalyptusNC_init(axis2_svc_skeleton_t *svc_skeleton, ++ const axutil_env_t *env); ++ ++ /* Create the service */ ++ axis2_svc_skeleton_t* AXIS2_CALL ++ axis2_svc_skel_EucalyptusNC_create(const axutil_env_t *env); ++ ++ static const axis2_svc_skeleton_ops_t axis2_svc_skel_EucalyptusNC_svc_skeleton_ops_var = { ++ axis2_svc_skel_EucalyptusNC_init, ++ axis2_svc_skel_EucalyptusNC_invoke, ++ axis2_svc_skel_EucalyptusNC_on_fault, ++ axis2_svc_skel_EucalyptusNC_free ++ }; ++ ++ ++ /** ++ * Implementations for the functions ++ */ ++ ++ axis2_svc_skeleton_t* AXIS2_CALL ++ axis2_svc_skel_EucalyptusNC_create(const axutil_env_t *env) ++ { ++ axis2_svc_skeleton_t *svc_skeleton = NULL; ++ /* Allocate memory for the structs */ ++ svc_skeleton = (axis2_svc_skeleton_t *)AXIS2_MALLOC(env->allocator, ++ sizeof(axis2_svc_skeleton_t)); ++ ++ svc_skeleton->ops = &axis2_svc_skel_EucalyptusNC_svc_skeleton_ops_var; ++ ++ ++ return svc_skeleton; ++ } ++ ++ ++ int AXIS2_CALL ++ axis2_svc_skel_EucalyptusNC_init(axis2_svc_skeleton_t *svc_skeleton, ++ const axutil_env_t *env) ++ { ++ /* Any initialization stuff of axis2_skel_EucalyptusNC goes here */ ++ return AXIS2_SUCCESS; ++ } ++ ++ int AXIS2_CALL ++ axis2_svc_skel_EucalyptusNC_free(axis2_svc_skeleton_t *svc_skeleton, ++ const axutil_env_t *env) ++ { ++ ++ /* Free the service skeleton */ ++ if (svc_skeleton) ++ { ++ AXIS2_FREE(env->allocator, svc_skeleton); ++ svc_skeleton = NULL; ++ } ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ ++ ++ /** ++ * function to free any soap input headers ++ */ ++ ++ ++ ++ ++ /** ++ * function to free any soap output headers ++ */ ++ ++ ++ ++ ++ ++ /* ++ * This method invokes the right service method ++ */ ++ axiom_node_t* AXIS2_CALL ++ axis2_svc_skel_EucalyptusNC_invoke(axis2_svc_skeleton_t *svc_skeleton, ++ const axutil_env_t *env, ++ axiom_node_t *content_node, ++ axis2_msg_ctx_t *msg_ctx) ++ { ++ /* depending on the function name invoke the ++ * corresponding method ++ */ ++ ++ axis2_op_ctx_t *operation_ctx = NULL; ++ axis2_op_t *operation = NULL; ++ axutil_qname_t *op_qname = NULL; ++ axis2_char_t *op_name = NULL; ++ axis2_msg_ctx_t *in_msg_ctx = NULL; ++ ++ axiom_soap_envelope_t *req_soap_env = NULL; ++ axiom_soap_header_t *req_soap_header = NULL; ++ axiom_soap_envelope_t *res_soap_env = NULL; ++ axiom_soap_header_t *res_soap_header = NULL; ++ ++ axiom_node_t *ret_node = NULL; ++ axiom_node_t *input_header = NULL; ++ axiom_node_t *output_header = NULL; ++ axiom_node_t *header_base_node = NULL; ++ ++ ++ adb_ncRunInstanceResponse_t* ret_val1 = NULL; ++ adb_ncRunInstance_t* input_val1 = NULL; ++ ++ adb_ncRebootInstanceResponse_t* ret_val2 = NULL; ++ adb_ncRebootInstance_t* input_val2 = NULL; ++ ++ adb_ncGetConsoleOutputResponse_t* ret_val3 = NULL; ++ adb_ncGetConsoleOutput_t* input_val3 = NULL; ++ ++ adb_ncDetachVolumeResponse_t* ret_val4 = NULL; ++ adb_ncDetachVolume_t* input_val4 = NULL; ++ ++ adb_ncDescribeInstancesResponse_t* ret_val5 = NULL; ++ adb_ncDescribeInstances_t* input_val5 = NULL; ++ ++ adb_ncAttachVolumeResponse_t* ret_val6 = NULL; ++ adb_ncAttachVolume_t* input_val6 = NULL; ++ ++ adb_ncPowerDownResponse_t* ret_val7 = NULL; ++ adb_ncPowerDown_t* input_val7 = NULL; ++ ++ adb_ncDescribeResourceResponse_t* ret_val8 = NULL; ++ adb_ncDescribeResource_t* input_val8 = NULL; ++ ++ adb_ncTerminateInstanceResponse_t* ret_val9 = NULL; ++ adb_ncTerminateInstance_t* input_val9 = NULL; ++ ++ adb_ncStartNetworkResponse_t* ret_val10 = NULL; ++ adb_ncStartNetwork_t* input_val10 = NULL; ++ ++ ++ operation_ctx = axis2_msg_ctx_get_op_ctx(msg_ctx, env); ++ operation = axis2_op_ctx_get_op(operation_ctx, env); ++ op_qname = (axutil_qname_t *)axis2_op_get_qname(operation, env); ++ op_name = axutil_qname_get_localpart(op_qname, env); ++ ++ euca_authenticate(env,msg_ctx,operation_ctx); ++ ++ if (op_name) ++ { ++ ++ ++ if ( axutil_strcmp(op_name, "ncRunInstance") == 0 ) ++ { ++ ++ input_val1 = ++ adb_ncRunInstance_create( env); ++ if( AXIS2_FAILURE == adb_ncRunInstance_deserialize(input_val1, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_ncRunInstance_free(input_val1, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncRunInstance_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val1 = axis2_skel_EucalyptusNC_ncRunInstance(env ,input_val1 ); ++ ++ if ( NULL == ret_val1 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from ncRunInstance "); ++ ++ adb_ncRunInstance_free(input_val1, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_ncRunInstanceResponse_serialize(ret_val1, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_ncRunInstanceResponse_free(ret_val1, env); ++ ++ adb_ncRunInstance_free(input_val1, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ ++ if ( axutil_strcmp(op_name, "ncRebootInstance") == 0 ) ++ { ++ ++ input_val2 = ++ adb_ncRebootInstance_create( env); ++ if( AXIS2_FAILURE == adb_ncRebootInstance_deserialize(input_val2, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_ncRebootInstance_free(input_val2, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncRebootInstance_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val2 = axis2_skel_EucalyptusNC_ncRebootInstance(env ,input_val2 ); ++ ++ if ( NULL == ret_val2 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from ncRebootInstance "); ++ ++ adb_ncRebootInstance_free(input_val2, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_ncRebootInstanceResponse_serialize(ret_val2, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_ncRebootInstanceResponse_free(ret_val2, env); ++ ++ adb_ncRebootInstance_free(input_val2, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ ++ if ( axutil_strcmp(op_name, "ncGetConsoleOutput") == 0 ) ++ { ++ ++ input_val3 = ++ adb_ncGetConsoleOutput_create( env); ++ if( AXIS2_FAILURE == adb_ncGetConsoleOutput_deserialize(input_val3, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_ncGetConsoleOutput_free(input_val3, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncGetConsoleOutput_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val3 = axis2_skel_EucalyptusNC_ncGetConsoleOutput(env ,input_val3 ); ++ ++ if ( NULL == ret_val3 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from ncGetConsoleOutput "); ++ ++ adb_ncGetConsoleOutput_free(input_val3, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_ncGetConsoleOutputResponse_serialize(ret_val3, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_ncGetConsoleOutputResponse_free(ret_val3, env); ++ ++ adb_ncGetConsoleOutput_free(input_val3, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ ++ if ( axutil_strcmp(op_name, "ncDetachVolume") == 0 ) ++ { ++ ++ input_val4 = ++ adb_ncDetachVolume_create( env); ++ if( AXIS2_FAILURE == adb_ncDetachVolume_deserialize(input_val4, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_ncDetachVolume_free(input_val4, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncDetachVolume_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val4 = axis2_skel_EucalyptusNC_ncDetachVolume(env ,input_val4 ); ++ ++ if ( NULL == ret_val4 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from ncDetachVolume "); ++ ++ adb_ncDetachVolume_free(input_val4, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_ncDetachVolumeResponse_serialize(ret_val4, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_ncDetachVolumeResponse_free(ret_val4, env); ++ ++ adb_ncDetachVolume_free(input_val4, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ ++ if ( axutil_strcmp(op_name, "ncDescribeInstances") == 0 ) ++ { ++ ++ input_val5 = ++ adb_ncDescribeInstances_create( env); ++ if( AXIS2_FAILURE == adb_ncDescribeInstances_deserialize(input_val5, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_ncDescribeInstances_free(input_val5, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncDescribeInstances_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val5 = axis2_skel_EucalyptusNC_ncDescribeInstances(env ,input_val5 ); ++ ++ if ( NULL == ret_val5 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from ncDescribeInstances "); ++ ++ adb_ncDescribeInstances_free(input_val5, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_ncDescribeInstancesResponse_serialize(ret_val5, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_ncDescribeInstancesResponse_free(ret_val5, env); ++ ++ adb_ncDescribeInstances_free(input_val5, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ ++ if ( axutil_strcmp(op_name, "ncAttachVolume") == 0 ) ++ { ++ ++ input_val6 = ++ adb_ncAttachVolume_create( env); ++ if( AXIS2_FAILURE == adb_ncAttachVolume_deserialize(input_val6, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_ncAttachVolume_free(input_val6, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncAttachVolume_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val6 = axis2_skel_EucalyptusNC_ncAttachVolume(env ,input_val6 ); ++ ++ if ( NULL == ret_val6 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from ncAttachVolume "); ++ ++ adb_ncAttachVolume_free(input_val6, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_ncAttachVolumeResponse_serialize(ret_val6, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_ncAttachVolumeResponse_free(ret_val6, env); ++ ++ adb_ncAttachVolume_free(input_val6, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ ++ if ( axutil_strcmp(op_name, "ncPowerDown") == 0 ) ++ { ++ ++ input_val7 = ++ adb_ncPowerDown_create( env); ++ if( AXIS2_FAILURE == adb_ncPowerDown_deserialize(input_val7, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_ncPowerDown_free(input_val7, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncPowerDown_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val7 = axis2_skel_EucalyptusNC_ncPowerDown(env ,input_val7 ); ++ ++ if ( NULL == ret_val7 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from ncPowerDown "); ++ ++ adb_ncPowerDown_free(input_val7, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_ncPowerDownResponse_serialize(ret_val7, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_ncPowerDownResponse_free(ret_val7, env); ++ ++ adb_ncPowerDown_free(input_val7, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ ++ if ( axutil_strcmp(op_name, "ncDescribeResource") == 0 ) ++ { ++ ++ input_val8 = ++ adb_ncDescribeResource_create( env); ++ if( AXIS2_FAILURE == adb_ncDescribeResource_deserialize(input_val8, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_ncDescribeResource_free(input_val8, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncDescribeResource_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val8 = axis2_skel_EucalyptusNC_ncDescribeResource(env ,input_val8 ); ++ ++ if ( NULL == ret_val8 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from ncDescribeResource "); ++ ++ adb_ncDescribeResource_free(input_val8, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_ncDescribeResourceResponse_serialize(ret_val8, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_ncDescribeResourceResponse_free(ret_val8, env); ++ ++ adb_ncDescribeResource_free(input_val8, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ ++ if ( axutil_strcmp(op_name, "ncTerminateInstance") == 0 ) ++ { ++ ++ input_val9 = ++ adb_ncTerminateInstance_create( env); ++ if( AXIS2_FAILURE == adb_ncTerminateInstance_deserialize(input_val9, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_ncTerminateInstance_free(input_val9, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncTerminateInstance_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val9 = axis2_skel_EucalyptusNC_ncTerminateInstance(env ,input_val9 ); ++ ++ if ( NULL == ret_val9 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from ncTerminateInstance "); ++ ++ adb_ncTerminateInstance_free(input_val9, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_ncTerminateInstanceResponse_serialize(ret_val9, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_ncTerminateInstanceResponse_free(ret_val9, env); ++ ++ adb_ncTerminateInstance_free(input_val9, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ ++ if ( axutil_strcmp(op_name, "ncStartNetwork") == 0 ) ++ { ++ ++ input_val10 = ++ adb_ncStartNetwork_create( env); ++ if( AXIS2_FAILURE == adb_ncStartNetwork_deserialize(input_val10, env, &content_node, NULL, AXIS2_FALSE)) ++ { ++ adb_ncStartNetwork_free(input_val10, env); ++ ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ncStartNetwork_deserialize: " ++ "This should be due to an invalid XML"); ++ return NULL; ++ } ++ ++ ++ ++ ret_val10 = axis2_skel_EucalyptusNC_ncStartNetwork(env ,input_val10 ); ++ ++ if ( NULL == ret_val10 ) ++ { ++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE); ++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from ncStartNetwork "); ++ ++ adb_ncStartNetwork_free(input_val10, env); ++ ++ return NULL; ++ } ++ ret_node = ++ adb_ncStartNetworkResponse_serialize(ret_val10, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); ++ adb_ncStartNetworkResponse_free(ret_val10, env); ++ ++ adb_ncStartNetwork_free(input_val10, env); ++ ++ ++ return ret_node; ++ ++ ++ ++ ++ ++ } ++ ++ } ++ printf("axis2_svc_skel_EucalyptusNC service ERROR: invalid OM parameters in request\n"); ++ return NULL; ++ } ++ ++ axiom_node_t* AXIS2_CALL ++ axis2_svc_skel_EucalyptusNC_on_fault(axis2_svc_skeleton_t *svc_skeleton, ++ const axutil_env_t *env, axiom_node_t *node) ++ { ++ axiom_node_t *error_node = NULL; ++ axiom_element_t *error_ele = NULL; ++ error_ele = axiom_element_create(env, node, "fault", NULL, ++ &error_node); ++ axiom_element_set_text(error_ele, env, "EucalyptusNC|http://eucalyptus.ucsb.edu/ failed", ++ error_node); ++ return error_node; ++ } ++ ++ ++ /** ++ * Following block distinguish the exposed part of the dll. ++ */ ++ ++ AXIS2_EXTERN int ++ axis2_get_instance(struct axis2_svc_skeleton **inst, ++ const axutil_env_t *env) ++ { ++ *inst = axis2_svc_skel_EucalyptusNC_create(env); ++ ++ if(!(*inst)) ++ { ++ return AXIS2_FAILURE; ++ } ++ ++ return AXIS2_SUCCESS; ++ } ++ ++ AXIS2_EXTERN int ++ axis2_remove_instance(axis2_svc_skeleton_t *inst, ++ const axutil_env_t *env) ++ { ++ axis2_status_t status = AXIS2_FAILURE; ++ if (inst) ++ { ++ status = AXIS2_SVC_SKELETON_FREE(inst, env); ++ } ++ return status; ++ } ++ ++ ++ ++ + +=== added file 'node/generated/build.sh' +--- old/node/generated/build.sh 1970-01-01 00:00:00 +0000 ++++ new/node/generated/build.sh 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,11 @@ ++ ++gcc -g -shared -olibEucalyptusNC.so -I $AXIS2C_HOME/include/axis2-1.3.1/ -Isrc -L$AXIS2C_HOME/lib \ ++ -laxutil \ ++ -laxis2_axiom \ ++ -laxis2_engine \ ++ -laxis2_parser \ ++ -lpthread \ ++ -laxis2_http_sender \ ++ -laxis2_http_receiver \ ++ -lguththila \ ++ *.c src/*.c + +=== added file 'node/generated/services.xml' +--- old/node/generated/services.xml 1970-01-01 00:00:00 +0000 ++++ new/node/generated/services.xml 2010-01-05 01:00:36 +0000 +@@ -0,0 +1,37 @@ ++ ++ ++ ++EucalyptusNC ++EucalyptusNC Service ++ ++ ++EucalyptusNC#ncRunInstance ++ ++ ++EucalyptusNC#ncRebootInstance ++ ++ ++EucalyptusNC#ncGetConsoleOutput ++ ++ ++EucalyptusNC#ncDetachVolume ++ ++ ++EucalyptusNC#ncDescribeInstances ++ ++ ++EucalyptusNC#ncAttachVolume ++ ++ ++EucalyptusNC#ncPowerDown ++ ++ ++EucalyptusNC#ncDescribeResource ++ ++ ++EucalyptusNC#ncTerminateInstance ++ ++ ++EucalyptusNC#ncStartNetwork ++ ++ + --- eucalyptus-1.6.2.orig/debian/patches/series +++ eucalyptus-1.6.2/debian/patches/series @@ -0,0 +1 @@ +01-wsdl-stubs.patch --- eucalyptus-1.6.2.orig/debian/registration/node +++ eucalyptus-1.6.2/debian/registration/node @@ -0,0 +1,31 @@ +#!/bin/bash + +# Node controller registration script +# Registers NC at IP $2 with cluster $1 (on CC) + +# Source common functions +. /usr/share/eucalyptus/registration/common + +# Parameter sanitizing +CLUSTERNAME=${1% node*} +IP=$2 +testip "${IP}" + +# Check if we are on the target cluster +. /etc/eucalyptus/eucalyptus-cc.conf +if [ "${CLUSTERNAME}" != "${CC_NAME}" ]; then + reglog "Node is not a candidate for local cluster." + exit 1 +fi + +# Check if node isn't already registered +. /etc/eucalyptus/eucalyptus.conf +for nip in "$NODES"; do + if [ "${nip# }" == "${IP}" ]; then + reglog "Node $IP is already registered." + exit 1 + fi +done + +/usr/sbin/euca_conf --no-rsync --skip-scp-hostcheck --register-nodes "${IP}" +reglog "euca_conf --register-nodes returned $?" --- eucalyptus-1.6.2.orig/debian/registration/uec-registration +++ eucalyptus-1.6.2/debian/registration/uec-registration @@ -0,0 +1,96 @@ +#!/bin/bash +# UEC registration helper script +# Allows to set components registration mode (manual or automatic) + +NAME=`basename $0` +LOCK_LOCATION=/var/lib/eucalyptus/registration.lock + +usage () { + echo "$NAME [--manual|--auto|--help]" + echo + echo " Options:" + echo " --manual Disable automatic component registration" + echo " --auto Enable automatic component registration" + echo " -h, --help This message" +} + +check_root () { + if [[ $EUID -ne 0 ]]; then + echo "To change registration mode, you need to run this command as root." + echo "You can do so by running 'sudo $NAME $1'" + exit 1 + fi +} + +listener-is-running () { + if status uec-component-listener 2>&1 | grep "start/running" > /dev/null; then + return 0 + else + return 1 + fi +} + +if [ $# -gt 1 ]; then + echo "Error: Only one option allowed." + usage + exit 1 +fi + +if [ $# -eq 1 ]; then + if [ "$1" = "-h" -o "$1" = "--help" ]; then + usage + exit 0 + else + if [ "$1" = "--manual" ]; then + REGMODE="manual" + check_root --manual + else + if [ "$1" = "--auto" ]; then + REGMODE="auto" + check_root --auto + else + echo "Error: option '$1' is invalid" + usage + exit 1 + fi + fi + fi +fi + +if [ -f $LOCK_LOCATION ]; then + echo "Automatic components registration is disabled on this controller." + if listener-is-running; then + echo "However, uec-component-listener is still running." + else + REGSTATUS=manual + fi +else + echo "Automatic components registration is enabled on this controller." + if ! listener-is-running; then + echo "However, uec-component-listener is not running." + else + REGSTATUS=auto + fi +fi + +if [ "$REGMODE" = "manual" ]; then + if [ "$REGSTATUS" = "manual" ]; then + echo "Registration is already in manual mode." + else + echo "Setting UEC registration mode to manual." + touch $LOCK_LOCATION && stop uec-component-listener + exit $? + fi +fi + +if [ "$REGMODE" = "auto" ]; then + if [ "$REGSTATUS" = "auto" ]; then + echo "Registration is already in auto mode." + else + echo "Setting UEC registration mode to auto." + rm $LOCK_LOCATION && start uec-component-listener + exit $? + fi +fi + +exit 0 --- eucalyptus-1.6.2.orig/debian/registration/storage +++ eucalyptus-1.6.2/debian/registration/storage @@ -0,0 +1,44 @@ +#!/bin/bash + +# Storage controller registration script +# Registers SC at IP $2 with cluster $1 (on CLC) + +# Source common functions +. /usr/share/eucalyptus/registration/common + +# Parameter sanitizing +CLUSTERNAME=${1% storage} +IP=$2 +testip "${IP}" + +# Check if SC isn't already registered +for sc in `euca_conf --list-scs | tail -n +2 | awk '{ print $1 }'`; do + if [ "$sc" == "$CLUSTERNAME" ]; then + reglog "SC for $CLUSTERNAME is already registered." + exit 1 + fi +done + +# Register SC if CC exists +function tryregistersc { + for cc in `euca_conf --list-clusters | tail -n +2 | awk '{ print $1 }'`; do + if [ "$cc" == "$1" ]; then + /usr/sbin/euca_conf --no-rsync --skip-scp-hostcheck --register-sc "${CLUSTERNAME}" "${IP}" + reglog "euca_conf --register-sc returned $?" + exit 0 + fi + done +} + +tryregistersc "${CLUSTERNAME}" + +retries=2 +while [ $retries -gt 0 ]; do + reglog "Cluster $CLUSTERNAME doesn't exist, retrying in 10 seconds." + sleep 10 + tryregistersc "${CLUSTERNAME}" + tries=$(($tries-1)) +done + +reglog "Cluster $CLUSTERNAME doesn't exist" +exit 1 --- eucalyptus-1.6.2.orig/debian/registration/common +++ eucalyptus-1.6.2/debian/registration/common @@ -0,0 +1,28 @@ +#!/bin/bash + +# Common functions for registration scripts +LOCK_LOCATION=/var/lib/eucalyptus/registration.lock + +# Logging +function reglog { + if [ -d /var/log/eucalyptus ]; then + echo "$(date --rfc-3339=seconds) | $$ -> $1" >> /var/log/eucalyptus/registration.log + fi +} + +# Parameter sanitizing functions +function testip { + if [ -n "${1//[0-9.]/}" ]; then + reglog "Input parameter is not an IP address." + exit 2 + fi +} + +# Startup +reglog "Calling $(basename $0) $1 $2" + +# Test lock +if [ -f "${LOCK_LOCATION}" ]; then + reglog "Registration locked by ${LOCK_LOCATION}" + exit 0 +fi --- eucalyptus-1.6.2.orig/debian/registration/uec_component_listener.c +++ eucalyptus-1.6.2/debian/registration/uec_component_listener.c @@ -0,0 +1,269 @@ +/* $Id$ */ + +/*** + UEC component listener + - Listens to announcements of new _eucalyptus._tcp services + - Calls corresponding registration action based on type: + / + + This file is based on an example that is part of avahi, which is copyright: + Lennart Poettering + Trent Lloyd + Sebastien Estienne + Jakub Stachowski + James Willcox + Collabora Ltd. + Modifications for eucalyptus are copyright 2009 Canonical Ltd. + + avahi is free software; you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as + published by the Free Software Foundation; either version 2.1 of the + License, or (at your option) any later version. + + avahi is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General + Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with avahi; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + USA. +***/ + +#define _GNU_SOURCE 1 + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#include +#include +#include + +#define ACTIONS_DIR "/usr/share/eucalyptus/registration" +#define AVAHI_EUCALYPTUS "_eucalyptus._tcp" + +static AvahiSimplePoll *simple_poll = NULL; + +char *xasprintf (const char *fmt, ...) +{ + va_list ap; + char *result; + + va_start(ap, fmt); + if (vasprintf(&result, fmt, ap) < 0) { + if (errno == ENOMEM) { + fprintf(stderr, "out of memory\n"); + exit(1); + } + result = NULL; + } + va_end(ap); + + return result; +} + +/* Returns first value in TXT that matches key + Returned pointer must be freed by calling function */ +char *get_txt_contents(AvahiStringList *txt, char *key) { + AvahiStringList *list; + char *itemkey, *itemvalue; + + list = avahi_string_list_find(txt, key); + if (!list || avahi_string_list_get_pair(list, &itemkey, &itemvalue, NULL) != 0) { + fprintf(stderr, "Failed to get %s from service TXT\n",key); + return NULL; + } + avahi_free(itemkey); + return itemvalue; +} + +/* Called whenever a service has been resolved successfully or timed out */ +static void resolve_callback( + AvahiServiceResolver *r, + AVAHI_GCC_UNUSED AvahiIfIndex interface, + AVAHI_GCC_UNUSED AvahiProtocol protocol, + AvahiResolverEvent event, + const char *name, + const char *type, + const char *domain, + const char *host_name, + const AvahiAddress *address, + uint16_t port, + AvahiStringList *txt, + AvahiLookupResultFlags flags, + AVAHI_GCC_UNUSED void* userdata) { + + assert(r); + + switch (event) { + case AVAHI_RESOLVER_FAILURE: + fprintf(stderr, "(Resolver) Failed to resolve service '%s' of type '%s' in domain '%s': %s\n", name, type, domain, avahi_strerror(avahi_client_errno(avahi_service_resolver_get_client(r)))); + break; + + case AVAHI_RESOLVER_FOUND: { + char *ipaddr, *nodetype; + + /* Get IP address */ + ipaddr = get_txt_contents(txt, "ipaddr"); + /* Fallback to avahi IP resolution */ + if (! ipaddr) { + ipaddr = avahi_malloc0(AVAHI_ADDRESS_STR_MAX); + avahi_address_snprint(ipaddr, AVAHI_ADDRESS_STR_MAX, address); + } + /* Get component type */ + nodetype = get_txt_contents(txt, "type"); + + if (! nodetype || ! ipaddr) { + fprintf(stderr, "Missing items in TXT record ! Skipping.\n"); + } else if (strchr(nodetype, '/')) { + fprintf(stderr, "nodetype \"%s\" contains forbidden character '/'\n", nodetype); + } else { + char *action_command = xasprintf("%s/%s", ACTIONS_DIR, nodetype); + if (!access(action_command, F_OK)) { + /* Call corresponding action */ + pid_t child = 0; + fprintf(stderr, "Running %s \"%s\" \"%s\"\n", action_command, name, ipaddr); + child = fork(); + if (child < 0) { + perror("fork"); + exit(1); + } else if (child == 0) { + /* child */ + char *action_args[4]; + action_args[0] = action_command; + action_args[1] = (char *) name; /* execvp won't actually modify this */ + action_args[2] = ipaddr; + action_args[3] = NULL; + execvp(action_command, action_args); + _exit(255); /* shouldn't be reached */ + } + } + } + avahi_free(ipaddr); + avahi_free(nodetype); + } + } + avahi_service_resolver_free(r); +} + +/* Called whenever a new services becomes available on the LAN or is removed from the LAN */ +static void browse_callback( + AvahiServiceBrowser *b, + AvahiIfIndex interface, + AvahiProtocol protocol, + AvahiBrowserEvent event, + const char *name, + const char *type, + const char *domain, + AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, + void* userdata) { + + AvahiClient *c = userdata; + assert(b); + + switch (event) { + + case AVAHI_BROWSER_FAILURE: + + fprintf(stderr, "(Browser) %s\n", avahi_strerror(avahi_client_errno(avahi_service_browser_get_client(b)))); + avahi_simple_poll_quit(simple_poll); + return; + + case AVAHI_BROWSER_NEW: + fprintf(stderr, "(Browser) NEW: service '%s' of type '%s' in domain '%s'\n", name, type, domain); + + if (!(avahi_service_resolver_new(c, interface, protocol, name, type, domain, AVAHI_PROTO_UNSPEC, 0, resolve_callback, c))) + fprintf(stderr, "Failed to resolve service '%s': %s\n", name, avahi_strerror(avahi_client_errno(c))); + + break; + + } +} + +/* Called whenever the client or server state changes */ +static void client_callback(AvahiClient *c, AvahiClientState state, AVAHI_GCC_UNUSED void * userdata) { + assert(c); + + if (state == AVAHI_CLIENT_FAILURE) { + fprintf(stderr, "Server connection failure: %s\n", avahi_strerror(avahi_client_errno(c))); + avahi_simple_poll_quit(simple_poll); + } +} + +/* SIGCHLD handler */ +static void sigchld_hdl (int sig) { + while (waitpid(-1, NULL, WNOHANG) > 0) { + } +} + +int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char*argv[]) { + AvahiClient *client = NULL; + AvahiServiceBrowser *sb = NULL; + int error; + int ret = 1; + + /* Register a SIGCHLD handler */ + struct sigaction act; + memset (&act, 0, sizeof(act)); + act.sa_handler = sigchld_hdl; + if (sigaction(SIGCHLD, &act, 0)) { + fprintf(stderr, "Failed to register the SIGCHLD handler.\n"); + exit(1); + } + + /* Allocate main loop object */ + if (!(simple_poll = avahi_simple_poll_new())) { + fprintf(stderr, "Failed to create simple poll object.\n"); + goto fail; + } + + /* Allocate a new client */ + client = avahi_client_new(avahi_simple_poll_get(simple_poll), 0, client_callback, NULL, &error); + + /* Check wether creating the client object succeeded */ + if (!client) { + fprintf(stderr, "Failed to create client: %s\n", avahi_strerror(error)); + goto fail; + } + + /* Create the service browser */ + if (!(sb = avahi_service_browser_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, AVAHI_EUCALYPTUS, NULL, 0, browse_callback, client))) { + fprintf(stderr, "Failed to create service browser: %s\n", avahi_strerror(avahi_client_errno(client))); + goto fail; + } + + /* Run the main loop */ + avahi_simple_poll_loop(simple_poll); + + ret = 0; + +fail: + + /* Cleanup things */ + if (sb) + avahi_service_browser_free(sb); + + if (client) + avahi_client_free(client); + + if (simple_poll) + avahi_simple_poll_free(simple_poll); + + return ret; +} + --- eucalyptus-1.6.2.orig/debian/registration/cluster +++ eucalyptus-1.6.2/debian/registration/cluster @@ -0,0 +1,23 @@ +#!/bin/bash + +# Cluster controller registration script +# Registers CC as cluster $1 at IP $2 (on CLC) + +# Source common functions +. /usr/share/eucalyptus/registration/common + +# Parameter sanitizing +CLUSTERNAME=$1 +IP=$2 +testip "${IP}" + +# Check if cluster isn't already registered +for cc in `euca_conf --list-clusters | tail -n +2 | awk '{ print $1 }'`; do + if [ "$cc" == "$CLUSTERNAME" ]; then + reglog "Cluster $CLUSTERNAME is already registered." + exit 1 + fi +done + +/usr/sbin/euca_conf --no-rsync --skip-scp-hostcheck --register-cluster "${CLUSTERNAME}" "${IP}" +reglog "euca_conf --register-cluster returned $?" --- eucalyptus-1.6.2.orig/debian/registration/Makefile +++ eucalyptus-1.6.2/debian/registration/Makefile @@ -0,0 +1,7 @@ +CFLAGS := $(shell pkg-config --cflags avahi-client) -g +LDFLAGS := $(shell pkg-config --libs avahi-client) + +all: uec_component_listener + +clean: + rm -f uec_component_listener --- eucalyptus-1.6.2.orig/debian/registration/walrus +++ eucalyptus-1.6.2/debian/registration/walrus @@ -0,0 +1,22 @@ +#!/bin/bash + +# Walrus registration script +# Registers Walrus at IP $2 (on CLC) + +# Source common functions +. /usr/share/eucalyptus/registration/common + +# Parameter sanitizing +IP=$2 +testip "${IP}" + +# Check if walrus isn't already registered +for pip in `euca_conf --list-walruses | tail -n +2 | awk '{ print $2 }'`; do + if [ "$IP" == "$pip" ]; then + reglog "Walrus $IP is already registered." + exit 1 + fi +done + +/usr/sbin/euca_conf --no-rsync --skip-scp-hostcheck --register-walrus "${IP}" +reglog "euca_conf --register-walrus returned $?" --- eucalyptus-1.6.2.orig/debian/po/POTFILES.in +++ eucalyptus-1.6.2/debian/po/POTFILES.in @@ -0,0 +1,4 @@ +[type: gettext/rfc822deb] eucalyptus-udeb.templates +[type: gettext/rfc822deb] eucalyptus-cc.templates +[type: gettext/rfc822deb] eucalyptus-sc.templates +[type: gettext/rfc822deb] eucalyptus-nc.templates --- eucalyptus-1.6.2.orig/debian/po/templates.pot +++ eucalyptus-1.6.2/debian/po/templates.pot @@ -0,0 +1,230 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: cjwatson@ubuntu.com\n" +"POT-Creation-Date: 2009-12-10 18:23+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. Description +#. Main menu entry +#: ../eucalyptus-udeb.templates:1001 +msgid "Select cloud installation mode" +msgstr "" + +#. Type: multiselect +#. Description +#: ../eucalyptus-udeb.templates:2001 +msgid "Cloud installation mode:" +msgstr "" + +#. Type: text +#. Description +#. Entry in "Cloud installation mode:" menu +#: ../eucalyptus-udeb.templates:3001 +msgid "Cloud controller" +msgstr "" + +#. Type: text +#. Description +#. Entry in "Cloud installation mode:" menu +#: ../eucalyptus-udeb.templates:4001 +msgid "Walrus storage service" +msgstr "" + +#. Type: text +#. Description +#. Entry in "Cloud installation mode:" menu +#: ../eucalyptus-udeb.templates:5001 +msgid "Cluster controller" +msgstr "" + +#. Type: text +#. Description +#. Entry in "Cloud installation mode:" menu +#: ../eucalyptus-udeb.templates:6001 +msgid "Storage controller" +msgstr "" + +#. Type: text +#. Description +#. Entry in "Cloud installation mode:" menu +#: ../eucalyptus-udeb.templates:7001 +msgid "Node controller" +msgstr "" + +#. Type: text +#. Description +#: ../eucalyptus-udeb.templates:8001 +msgid "" +"No Eucalyptus cloud controller was found on your network, so you must " +"install a cloud controller. The default is to install all Eucalyptus " +"components aside from the node controller; this is reasonable for small " +"clouds. Larger installations may wish to install different components on " +"different machines for reasons of network architecture or performance." +msgstr "" + +#. Type: text +#. Description +#: ../eucalyptus-udeb.templates:9001 +msgid "" +"A Eucalyptus cloud controller was found on your network, but no Walrus " +"storage service. This installation will default to installing Walrus. If you " +"wish, you may also install other Eucalyptus components on this machine." +msgstr "" + +#. Type: text +#. Description +#: ../eucalyptus-udeb.templates:10001 +msgid "" +"No Eucalyptus cluster controller was found on your network, so this " +"installation will default to installing a new cluster with a local storage " +"controller. If this is a mistake and you already have cluster and storage " +"controllers in place, deselect these components and select \"Node controller" +"\" instead." +msgstr "" + +#. Type: text +#. Description +#: ../eucalyptus-udeb.templates:11001 +msgid "" +"A Eucalyptus cluster controller was found on your network, but no storage " +"controller. Each cluster controller must be paired with a storage " +"controller. This installation will default to installing a new storage " +"controller." +msgstr "" + +#. Type: text +#. Description +#: ../eucalyptus-udeb.templates:12001 +msgid "" +"There is already a Eucalyptus cluster controller on your network, so this " +"installation will default to installing a new computing node. If you want to " +"create another cluster, deselect \"Node\" and select \"Cluster controller\" " +"and optionally \"Storage controller\" instead." +msgstr "" + +#. Type: error +#. Description +#: ../eucalyptus-udeb.templates:13001 +msgid "Cannot install storage controller without cluster controller" +msgstr "" + +#. Type: error +#. Description +#: ../eucalyptus-udeb.templates:13001 +msgid "" +"Each storage controller must be paired with a cluster controller, but no " +"cluster controller was found on your network and you did not choose to " +"install one on this machine. You should probably install both a cluster " +"controller and a storage controller." +msgstr "" + +#. Type: string +#. Description +#: ../eucalyptus-udeb.templates:14001 +msgid "Cloud controller address:" +msgstr "" + +#. Type: string +#. Description +#: ../eucalyptus-udeb.templates:14001 +msgid "" +"No Eucalyptus cloud controller was found on your network. If this is a " +"mistake and there is in fact already a cloud controller, enter its hostname " +"or IP address here. Otherwise, leave this blank." +msgstr "" + +#. Type: select +#. Description +#: ../eucalyptus-udeb.templates:15001 +msgid "Select cloud controller:" +msgstr "" + +#. Type: select +#. Description +#: ../eucalyptus-udeb.templates:15001 +msgid "" +"More than one cloud controller is available on your network. Select which " +"cloud you want to join." +msgstr "" + +#. Type: select +#. Description +#: ../eucalyptus-udeb.templates:16001 +msgid "Select cluster controller:" +msgstr "" + +#. Type: select +#. Description +#: ../eucalyptus-udeb.templates:16001 +msgid "" +"More than one cluster controller is available on your network. Select which " +"cluster you want this node to join." +msgstr "" + +#. Type: select +#. Description +#: ../eucalyptus-udeb.templates:18001 +msgid "Network interface for communication with nodes:" +msgstr "" + +#. Type: select +#. Description +#: ../eucalyptus-udeb.templates:18001 +msgid "" +"More than one network interface is available on this system. The primary " +"interface configured during installation (${DEFAULT_INTERFACE}) will be used " +"for communication with the public network. If your computing nodes are on a " +"private network, then you will normally use a different network interface " +"for communication with computing nodes." +msgstr "" + +#. Type: select +#. Description +#: ../eucalyptus-udeb.templates:18001 +msgid "" +"Select the network interface that is physically attached to the same network " +"as your computing nodes." +msgstr "" + +#. Type: string +#. Description +#: ../eucalyptus-cc.templates:1001 ../eucalyptus-sc.templates:1001 +msgid "Eucalyptus cluster name:" +msgstr "" + +#. Type: string +#. Description +#: ../eucalyptus-cc.templates:1001 ../eucalyptus-sc.templates:1001 +msgid "" +"Enter a name for this cluster. The name should contain only ASCII letters, " +"digits, hyphens, and underscores. It will be shown to users as the name of " +"an availability zone." +msgstr "" + +#. Type: error +#. Description +#: ../eucalyptus-nc.templates:1001 +msgid "This hardware does not support virtualization acceleration" +msgstr "" + +#. Type: error +#. Description +#: ../eucalyptus-nc.templates:1001 +msgid "" +"This system's CPU does not have support for virtualization acceleration, " +"which is strongly recommended for Eucalyptus Nodes. Eucalyptus running on " +"this hardware will be unaccelerated." +msgstr "" --- eucalyptus-1.6.2.orig/debian/local/euca_find_component.c +++ eucalyptus-1.6.2/debian/local/euca_find_component.c @@ -0,0 +1,286 @@ +/* $Id$ */ + +/*** + This file is based on an example that is part of avahi, which is copyright: + Lennart Poettering + Trent Lloyd + Sebastien Estienne + Jakub Stachowski + James Willcox + Collabora Ltd. + Modifications for eucalyptus-udeb are copyright 2009 Canonical Ltd. + + avahi is free software; you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as + published by the Free Software Foundation; either version 2.1 of the + License, or (at your option) any later version. + + avahi is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General + Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with avahi; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + USA. +***/ + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +#include + +static AvahiSimplePoll *simple_poll = NULL; +static AvahiServer *server = NULL; + +static di_hash_table *resolver_hash = NULL; + +static const char *component_type = NULL; + +static int debug = 0; + +static void quiet_logger(AvahiLogLevel level, const char *txt) { +} + +static bool resolver_equal_func(const void *key1, const void *key2) { + return !strcmp((const char *) key1, (const char *) key2); +} + +static uint32_t resolver_hash_func(const void *key) { + /* save reimplementing our own hash algorithm ... */ + di_rstring rstring; + rstring.string = (char *) key; + rstring.size = strlen(key); + return di_rstring_hash(&rstring); +} + +static void resolve_callback( + AvahiSServiceResolver *r, + AVAHI_GCC_UNUSED AvahiIfIndex interface, + AVAHI_GCC_UNUSED AvahiProtocol protocol, + AvahiResolverEvent event, + const char *name, + const char *type, + const char *domain, + const char *host_name, + const AvahiAddress *address, + uint16_t port, + AvahiStringList *txt, + AvahiLookupResultFlags flags, + AVAHI_GCC_UNUSED void* userdata) { + + assert(r); + + /* Called whenever a service has been resolved successfully or timed out */ + + switch (event) { + case AVAHI_RESOLVER_FAILURE: + if (debug) + fprintf(stderr, "(Resolver) Failed to resolve service '%s' of type '%s' in domain '%s': %s\n", name, type, domain, avahi_strerror(avahi_server_errno(server))); + break; + + case AVAHI_RESOLVER_FOUND: { + char *human_address = avahi_malloc0(AVAHI_ADDRESS_STR_MAX); + char *key = NULL; + AvahiStringList *ipaddr_entry; + char *ipaddr_key, *ipaddr_value; + + ipaddr_entry = avahi_string_list_find(txt, "ipaddr"); + if (ipaddr_entry && avahi_string_list_get_pair(ipaddr_entry, &ipaddr_key, &ipaddr_value, NULL) == 0) { + key = avahi_strdup_printf("%s:%u", ipaddr_value, port); + avahi_free(ipaddr_value); + avahi_free(ipaddr_key); + } else if (avahi_address_snprint(human_address, AVAHI_ADDRESS_STR_MAX, address)) { + if (address->proto == AVAHI_PROTO_INET6) + key = avahi_strdup_printf("[%s]:%u", human_address, port); + else if (strncmp(human_address, "169.254.169.254", 15) == 0) + key = avahi_strdup_printf("%s:%u", name, port); + else + key = avahi_strdup_printf("%s:%u", human_address, port); + } else { + if (debug) + fprintf(stderr, "(Resolver) failed to resolve %s to IP address/port\n", key); + } + avahi_free(human_address); + + if (di_hash_table_lookup(resolver_hash, key)) { + if (debug) + fprintf(stderr, "(Resolver) Already seen %s\n", key); + free(key); + } else { + AvahiStringList *type_entry; + char *type_key, *type_value; + + type_entry = avahi_string_list_find(txt, "type"); + if (avahi_string_list_get_pair(type_entry, &type_key, &type_value, NULL) == 0) { + if (!strcmp(type_value, component_type)) { + di_hash_table_insert(resolver_hash, key, ""); + if (debug) + fprintf(stderr, "(Resolver) Service '%s' of type '%s' in domain '%s':\n", name, type, domain); + printf("%s %s\n", name, key); + avahi_free(type_value); + avahi_free(type_key); + } else { + if (debug) + fprintf(stderr, "(Resolver) %s has type '%s', not '%s'\n", key, type_value, component_type); + } + } else { + if (debug) + fprintf(stderr, "(Resolver) %s has no 'type' TXT record\n", key); + } + /* don't free key; di_hash_table_insert doesn't copy it */ + } + } + } + + avahi_s_service_resolver_free(r); +} + +static void browse_callback( + AvahiSServiceBrowser *b, + AvahiIfIndex interface, + AvahiProtocol protocol, + AvahiBrowserEvent event, + const char *name, + const char *type, + const char *domain, + AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, + void* userdata) { + + AvahiServer *s = userdata; + assert(b); + + /* Called whenever a new services becomes available on the LAN or is removed from the LAN */ + + switch (event) { + + case AVAHI_BROWSER_FAILURE: + fprintf(stderr, "(Browser) %s\n", avahi_strerror(avahi_server_errno(server))); + avahi_simple_poll_quit(simple_poll); + return; + + case AVAHI_BROWSER_NEW: + if (debug) + fprintf(stderr, "(Browser) NEW: service '%s' of type '%s' in domain '%s'\n", name, type, domain); + + /* We ignore the returned resolver object. In the callback + function we free it. If the server is terminated before + the callback function is called the server will free + the resolver for us. */ + + if (!(avahi_s_service_resolver_new(s, interface, protocol, name, type, domain, AVAHI_PROTO_INET, 0, resolve_callback, s))) + fprintf(stderr, "Failed to resolve service '%s': %s\n", name, avahi_strerror(avahi_server_errno(s))); + + break; + + case AVAHI_BROWSER_REMOVE: + if (debug) + fprintf(stderr, "(Browser) REMOVE: service '%s' of type '%s' in domain '%s'\n", name, type, domain); + break; + + case AVAHI_BROWSER_ALL_FOR_NOW: + if (debug) + fprintf(stderr, "(Browser) %s\n", "ALL_FOR_NOW"); + exit(0); + break; + + case AVAHI_BROWSER_CACHE_EXHAUSTED: + if (debug) + fprintf(stderr, "(Browser) %s\n", "CACHE_EXHAUSTED"); + break; + } +} + +int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char*argv[]) { + AvahiServerConfig config; + AvahiSServiceBrowser *sb = NULL; + int error; + struct timeval tv; + int ret = 1; + + if (getenv("EUCA_FIND_COMPONENT_DEBUG")) + debug = 1; + + if (argc < 2) { + fprintf(stderr, "Usage: %s COMPONENT-TYPE\n", argv[0]); + goto fail; + } + component_type = argv[1]; + + /* Initialize the pseudo-RNG */ + srand(time(NULL)); + + if (!debug) + avahi_set_log_function(quiet_logger); + + /* Allocate main loop object */ + if (!(simple_poll = avahi_simple_poll_new())) { + fprintf(stderr, "Failed to create simple poll object.\n"); + goto fail; + } + + /* Do not publish any local records */ + avahi_server_config_init(&config); + config.publish_hinfo = 0; + config.publish_addresses = 0; + config.publish_workstation = 0; + config.publish_domain = 0; + + /* Allocate a new server */ + server = avahi_server_new(avahi_simple_poll_get(simple_poll), &config, NULL, NULL, &error); + + /* Free the configuration data */ + avahi_server_config_free(&config); + + /* Check whether creating the server object succeeded */ + if (!server) { + fprintf(stderr, "Failed to create server: %s\n", avahi_strerror(error)); + goto fail; + } + + /* Create the service browser */ + if (!(sb = avahi_s_service_browser_new(server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "_eucalyptus._tcp", NULL, 0, browse_callback, server))) { + fprintf(stderr, "Failed to create service browser: %s\n", avahi_strerror(avahi_server_errno(server))); + goto fail; + } + + /* Create a hash table so we can uniquify resolver results */ + resolver_hash = di_hash_table_new_full(resolver_hash_func, resolver_equal_func, avahi_free, NULL); + + /* Run the main loop */ + avahi_simple_poll_loop(simple_poll); + + ret = 0; + +fail: + + if (resolver_hash) + di_hash_table_destroy (resolver_hash); + + /* Cleanup things */ + if (sb) + avahi_s_service_browser_free(sb); + + if (server) + avahi_server_free(server); + + if (simple_poll) + avahi_simple_poll_free(simple_poll); + + return ret; +} --- eucalyptus-1.6.2.orig/debian/local/Makefile +++ eucalyptus-1.6.2/debian/local/Makefile @@ -0,0 +1,7 @@ +CFLAGS := $(shell pkg-config --cflags avahi-core) -g +LDFLAGS := $(shell pkg-config --libs avahi-core) -ldebian-installer + +all: euca_find_component + +clean: + rm -f euca_find_component --- eucalyptus-1.6.2.orig/util/modprobe-aoe +++ eucalyptus-1.6.2/util/modprobe-aoe @@ -0,0 +1,2 @@ +#!/bin/sh +exec /sbin/modprobe aoe --- eucalyptus-1.6.2.orig/util/chgrp-dhcpd +++ eucalyptus-1.6.2/util/chgrp-dhcpd @@ -0,0 +1,3 @@ +#!/bin/bash + +exec /bin/chgrp -R dhcpd /var/run/eucalyptus/net --- eucalyptus-1.6.2.orig/util/chmod-dhcpd +++ eucalyptus-1.6.2/util/chmod-dhcpd @@ -0,0 +1,3 @@ +#!/bin/bash + +exec /bin/chmod -R 0775 /var/run/eucalyptus/net --- eucalyptus-1.6.2.orig/util/eucalyptus.h +++ eucalyptus-1.6.2/util/eucalyptus.h @@ -66,6 +66,7 @@ /* file paths relative to $EUCALYPTUS */ #define EUCALYPTUS_CONF_LOCATION "%s/etc/eucalyptus/eucalyptus.conf" #define EUCALYPTUS_CONF_OVERRIDE_LOCATION "%s/etc/eucalyptus/eucalyptus.local.conf" +#define NODES_LIST_LOCATION "%s/var/lib/eucalyptus/nodes.list" #define EUCALYPTUS_ROOTWRAP "%s/usr/lib/eucalyptus/euca_rootwrap" #define EUCALYPTUS_ADD_KEY "%s/usr/lib/eucalyptus/euca_rootwrap %s/usr/share/eucalyptus/add_key.pl %s/usr/lib/eucalyptus/euca_mountwrap" #define EUCALYPTUS_GEN_LIBVIRT_XML "%s/usr/lib/eucalyptus/euca_rootwrap %s/usr/share/eucalyptus/gen_libvirt_xml" --- eucalyptus-1.6.2.orig/util/dd-lv +++ eucalyptus-1.6.2/util/dd-lv @@ -0,0 +1,53 @@ +#!/usr/bin/python +# Copyright (C) 2009, Canonical, Ltd. +# Author: Kees Cook +# License: GPLv3 +# +# Attempt to sanitize the dd arguments, even though this still allows for arbitrary read/write +# and DoS of any LVs. + +import sys, os, glob + +if len(sys.argv)<3: + print >>sys.stderr, "Invalid arguments" + sys.exit(1) + +opts = dict() +for arg in sys.argv[1:]: + for opt in ['if','of']: + if arg.startswith(opt+'='): + if opts.has_key(opt): + print >>sys.stderr, "Option '%s' repeated" % (opt) + sys.exit(1) + opts.setdefault(opt,arg.split('=',1)[1]) +if 'if' not in opts or 'of' not in opts: + print >>sys.stderr, "Missing 'if' or 'of' arguments" + sys.exit(1) + +# Allowed: +# - /dev/zero -> anywhere +# - devmapper -> anywhere +# - anywhere -> devmapper +if opts['if'] != '/dev/zero': + found = False + + for device in [opts['if'], opts['of']]: + try: + src = os.stat(device) + except: + continue + for dm in glob.glob('/dev/mapper/*'): + if dm.endswith('/control'): + continue + if os.stat(dm).st_rdev == src.st_rdev: + found = True + break + if found: + break + + if not found: + print >>sys.stderr, "Source is not /dev/zero or source/target is not a devmapper device" + sys.exit(1) + +args = ['/bin/dd'] + sys.argv[1:] +os.execl('/bin/dd', *args) --- eucalyptus-1.6.2.orig/util/wrappers.conf +++ eucalyptus-1.6.2/util/wrappers.conf @@ -0,0 +1,50 @@ +# wrapper-name fully-qualified-path uid-or-capability-to-use +# +# Networking +ip /sbin/ip 0 #cap_net_admin +iptables /sbin/iptables 0 #cap_net_admin +iptables-save /sbin/iptables-save 0 #cap_net_admin +iptables-restore /sbin/iptables-restore 0 #cap_net_admin +euca_ipt /usr/share/eucalyptus/euca_ipt 0 #cap_net_admin # where does this write its tempfiles? +dhcpd3 /usr/sbin/dhcpd3 0 #cap_net_admin +vtund /usr/sbin/vtund 0 #cap_net_admin +vconfig /sbin/vconfig 0 #cap_net_admin +brctl /usr/sbin/brctl 0 #cap_net_admin +# Helpers +vblade /usr/sbin/vblade 0 +get_sys_info /usr/share/eucalyptus/get_sys_info 0 +get_xen_info /usr/share/eucalyptus/get_xen_info 0 +add_key.pl /usr/share/eucalyptus/add_key.pl 0 +partition2disk /usr/share/eucalyptus/partition2disk 0 +gen_kvm_libvirt_xml /usr/share/eucalyptus/gen_kvm_libvirt_xml 0 +gen_libvirt_xml /usr/share/eucalyptus/gen_libvirt_xml 0 +detach.pl /usr/share/eucalyptus/detach.pl 0 +# Services +powernap /usr/sbin/powernap-now 0 +# LVM management +losetup /sbin/losetup 0 +lvm /sbin/lvm 0 +pvcreate /sbin/pvcreate 0 +vgcreate /sbin/vgcreate 0 +vgextend /sbin/vgextend 0 +lvremove /sbin/lvremove 0 +lvchange /sbin/lvchange 0 +lvcreate /sbin/lvcreate 0 +vgremove /sbin/vgremove 0 +pvremove /sbin/pvremove 0 +vgreduce /sbin/vgreduce 0 +dmsetup /sbin/dmsetup 0 +kill /bin/kill 0 +id /usr/bin/id 0 +ietadm /usr/sbin/ietadm 0 +# redirected wrappers +modprobe /usr/share/eucalyptus/modprobe-aoe 0 #cap_sys_module +dd /usr/share/eucalyptus/dd-lv 0 +# need to write wrapper +chgrp /usr/share/eucalyptus/chgrp-dhcpd 0 +chmod /usr/share/eucalyptus/chmod-dhcpd 0 +# These do not need root wrapping +cat /bin/cat +powerwake /usr/bin/powerwake +virsh /usr/bin/virsh +which /usr/bin/which --- eucalyptus-1.6.2.orig/util/euca_rootwrap.c +++ eucalyptus-1.6.2/util/euca_rootwrap.c @@ -1,73 +1,218 @@ /* -Copyright (c) 2009 Eucalyptus Systems, Inc. + Copyright (C) 2009 Canonical, Ltd. + Author: Kees Cook + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, only version 3 of the License. + + This file is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License along + with this program. If not, see . -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, only version 3 of the License. - -This file is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -for more details. - -You should have received a copy of the GNU General Public License along -with this program. If not, see . - -Please contact Eucalyptus Systems, Inc., 130 Castilian -Dr., Goleta, CA 93101 USA or visit -if you need additional information or have any questions. - -This file may incorporate work covered under the following copyright and -permission notice: - - Software License Agreement (BSD License) - - Copyright (c) 2008, Regents of the University of California - - - Redistribution and use of this software in source and binary forms, with - or without modification, are permitted provided that the following - conditions are met: - - Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS - IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER - OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. USERS OF - THIS SOFTWARE ACKNOWLEDGE THE POSSIBLE PRESENCE OF OTHER OPEN SOURCE - LICENSED MATERIAL, COPYRIGHTED MATERIAL OR PATENTED MATERIAL IN THIS - SOFTWARE, AND IF ANY SUCH MATERIAL IS DISCOVERED THE PARTY DISCOVERING - IT MAY INFORM DR. RICH WOLSKI AT THE UNIVERSITY OF CALIFORNIA, SANTA - BARBARA WHO WILL THEN ASCERTAIN THE MOST APPROPRIATE REMEDY, WHICH IN - THE REGENTS’ DISCRETION MAY INCLUDE, WITHOUT LIMITATION, REPLACEMENT - OF THE CODE SO IDENTIFIED, LICENSING OF THE CODE SO IDENTIFIED, OR - WITHDRAWAL OF THE CODE CAPABILITY TO THE EXTENT NEEDED TO COMPLY WITH - ANY SUCH LICENSES OR RIGHTS. */ +#define _GNU_SOURCE #include #include +#include +#include #include +#include +#include +#include +#include +#include +#include + +struct wrapper_command { + char *name; + char *cmdline; + int uses_uid; + uid_t uid; + int uses_caps; + cap_value_t caps; +}; + +#define LINE_MAX 1024 +#define CMDS_CONF "/etc/eucalyptus/wrappers.conf" +#define CMDS_MAX 80 +struct wrapper_command cmds[CMDS_MAX] = { }; + +void load_cmds(void) +{ + char buf[LINE_MAX]; + int count = 0; + FILE *conf; + + if ( !(conf = fopen(CMDS_CONF,"r")) ) { + perror(CMDS_CONF); + exit(1); + } + while (fgets(buf, LINE_MAX-1, conf)) { + char *step, *name, *cmdline, *capabilities; + if (buf[0] == '#') continue; + buf[strlen(buf)] = '\n'; + step = buf; + name = strsep(&step, " \t\n"); + if (!name || strlen(name) <= 0) continue; + while (*step == ' ' || *step == '\t' || *step == '\n') step++; + + cmdline = strsep(&step, " \t\n"); + if (!cmdline || strlen(cmdline) <= 0) continue; + while (*step == ' ' || *step == '\t' || *step == '\n') step++; + + capabilities = strsep(&step, " \t\n"); + if (!capabilities || strlen(capabilities) <= 0) continue; + + // printf("NAME: |%s| CMD: |%s| CAP: |%s|\n", name, cmdline, capabilities); + + assert (countname; cmd++) { + printf("[%s] [%s] ", cmd->name, cmd->cmdline); + if (cmd->uses_uid) + printf("uid:%d", cmd->uid); + else if (cmd->uses_caps) { + char *cap_string = cap_to_name(cmd->caps); + printf("cap:%s(%d)", cap_string, cmd->caps); + cap_free(cap_string); + } + printf("\n"); + } +} +#endif + +void run(struct wrapper_command *cmd, int argc, char *argv[]) +{ + uid_t uid = getuid(); + gid_t gid = getgid(); + struct passwd *entry=NULL; + int i=0; + char **args=NULL; + cap_t caps; + + if (cmd->uses_uid) { + uid = cmd->uid; + } + if (cmd->uses_caps) { + /* Set capabilities */ + + /* Unfortunately, capabilities are unconditionally cleared across exec(). + So this wrapper is a bit useless at the moment in its attempt to limit + privileges. + http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=439873 + http://lkml.indiana.edu/hypermail/linux/kernel/0704.2/0667.html + */ + + assert (caps = cap_init()); + assert (cap_clear(caps) == 0); + assert (cap_set_flag(caps, CAP_EFFECTIVE, 1, &cmd->caps, CAP_SET) == 0); + assert (cap_set_flag(caps, CAP_PERMITTED, 1, &cmd->caps, CAP_SET) == 0); + assert (cap_set_flag(caps, CAP_INHERITABLE, 1, &cmd->caps, CAP_SET) == 0); + assert (cap_set_proc(caps) == 0); + + assert (prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0) == 0); + } + + if ( !(entry = getpwuid(uid)) ) { + perror("getpwuid"); + exit(253); + } + + uid = entry->pw_uid; + gid = entry->pw_gid; + + /* If we're changing user id, drop all the supplemental groups */ + if (uid != getuid()) { + if (setgroups(0, NULL)) { + perror("setgroups"); + exit(253); + } + } + + /* Set group */ + if (setresgid(gid, gid, gid)) { + perror("setresgid"); + exit(253); + } + /* Set uid */ + if (setresuid(uid, uid, uid)) { + perror("setresuid"); + exit(253); + } + + if (cmd->uses_caps) { + /* Re-gain capabilities */ + assert (cap_set_proc(caps) == 0); + assert (cap_free(caps) == 0); + } + + if ( !(args = calloc(argc, sizeof(char*))) ) { + perror("calloc"); + exit(253); + } + + args[0] = strdup(cmd->cmdline); + for (i = 2; i1) { + load_cmds(); + + cleancmd = strdup(argv[1]); + cleancmd = basename(cleancmd); + + for (cmd=cmds; cmd && cmd->name; cmd++) { + if (!cleancmd) continue; + if (strcmp(cleancmd,cmd->name) == 0 || + strcmp(argv[1],cmd->cmdline) == 0) { + + run(cmd, argc, argv); + exit(255); + } + } + fprintf(stderr,"ERROR: Disallowed command %s\n", argv[1]); + } + else { + fprintf(stderr, "ERROR: must supply a command to run, as a command-line argument.\n"); + } + exit(127); } --- eucalyptus-1.6.2.orig/util/Makefile +++ eucalyptus-1.6.2/util/Makefile @@ -9,7 +9,7 @@ build: all euca_rootwrap: - $(CC) $(CFLAGS) $(INCLUDES) -o euca_rootwrap euca_rootwrap.c + $(CC) $(CFLAGS) $(INCLUDES) -o euca_rootwrap euca_rootwrap.c -lcap euca_mountwrap: $(CC) $(CFLAGS) $(INCLUDES) -o euca_mountwrap euca_mountwrap.c @@ -27,8 +27,13 @@ rm -rf config.h install: - @$(INSTALL) -m 0755 euca_rootwrap $(DESTDIR)$(usrdir)/lib/eucalyptus/ - @$(INSTALL) -m 0755 euca_mountwrap $(DESTDIR)$(usrdir)/lib/eucalyptus/ + @$(INSTALL) -m 0755 euca_rootwrap $(DESTDIR)/$(usrdir)/lib/eucalyptus/ + @$(INSTALL) -m 0755 euca_mountwrap $(DESTDIR)/$(usrdir)/lib/eucalyptus/ + @$(INSTALL) -m 0755 chgrp-dhcpd $(DESTDIR)/$(usrdir)/share/eucalyptus/ + @$(INSTALL) -m 0755 chmod-dhcpd $(DESTDIR)/$(usrdir)/share/eucalyptus/ + @$(INSTALL) -m 0755 dd-lv $(DESTDIR)/$(usrdir)/share/eucalyptus/ + @$(INSTALL) -m 0755 modprobe-aoe $(DESTDIR)/$(usrdir)/share/eucalyptus/ + @$(INSTALL) -m 0644 wrappers.conf $(DESTDIR)/$(etcdir)/eucalyptus/ deploy: --- eucalyptus-1.6.2.orig/gatherlog/Makefile +++ eucalyptus-1.6.2/gatherlog/Makefile @@ -16,14 +16,17 @@ build: all generated/stubs: $(GLWSDL) - rm -rf generated - mkdir -p generated - @echo Generating client stubs - sh $(WSDL2C) -uri $(GLWSDL) -g -d adb -u -uw -f -o generated | grep -v 'the classpath' - @echo Generating server stubs - sh $(WSDL2C) -uri $(GLWSDL) -sd -ss -d adb -u -uw -f -o generated | grep -v 'the classpath' - @echo Adding marshalling calls to server stubs - ../tools/add_marshalling.pl generated/axis2_skel_*.c + if test -n "$(REBUILD_STUBS)"; \ + then \ + rm -rf generated; \ + mkdir -p generated; \ + echo Generating client stubs; \ + sh $(WSDL2C) -uri $(GLWSDL) -g -d adb -u -uw -f -o generated | grep -v 'the classpath'; \ + echo Generating server stubs; \ + sh $(WSDL2C) -uri $(GLWSDL) -sd -ss -d adb -u -uw -f -o generated | grep -v 'the classpath'; \ + echo Adding marshalling calls to server stubs; \ + ../tools/add_marshalling.pl generated/axis2_skel_*.c; \ + fi @echo Compiling the stubs cd generated; $(CC) -c $(CFLAGS) $(INCLUDES) -I../../util *.c; cd .. @echo "this is a cute little makefile marker" >generated/stubs @@ -64,7 +67,9 @@ rm -f $(SERVICE_SO) *.o $(CLIENT) *~* *#* distclean: - rm -rf generated $(SERVICE_SO) *.o $(CLIENT) *~* *#* + find generated -name '*.o' -print0 | xargs -0 rm -f + rm -f generated/stubs + rm -rf $(SERVICE_SO) *.o $(CLIENT) *~* *#* install: --- eucalyptus-1.6.2.orig/net/vnetwork.c +++ eucalyptus-1.6.2/net/vnetwork.c @@ -236,7 +236,7 @@ return(1); } - snprintf(cmd, 256, "%s/usr/lib/eucalyptus/euca_rootwrap ip addr add 169.254.169.254 scope link dev %s", vnetconfig->eucahome, vnetconfig->privInterface); + snprintf(cmd, 256, "%s/usr/lib/eucalyptus/euca_rootwrap ip addr add 169.254.169.254 scope link dev %s:metadata label %s:metadata", vnetconfig->eucahome, vnetconfig->privInterface, vnetconfig->privInterface); rc = system(cmd); if (vnetconfig->cloudIp != 0) { @@ -1603,7 +1603,7 @@ // snprintf(cmd, 1024, "%s/usr/lib/eucalyptus/euca_rootwrap ifconfig %s %s netmask %s up", vnetconfig->eucahome, devname, newip, netmask); slashnet = 32 - ((int)log2((double)(0xFFFFFFFF - vnetconfig->networks[vlan].nm)) + 1); - snprintf(cmd, 1024, "%s/usr/lib/eucalyptus/euca_rootwrap ip addr add %s/%d broadcast %s dev %s", vnetconfig->eucahome, newip, slashnet, broadcast, devname); + snprintf(cmd, 1024, "%s/usr/lib/eucalyptus/euca_rootwrap ip addr add %s/%d broadcast %s dev %s:priv label %s:priv", vnetconfig->eucahome, newip, slashnet, broadcast, devname, devname); logprintfl(EUCADEBUG, "vnetAddGatewayIP(): running cmd '%s'\n", cmd); rc = system(cmd); --- eucalyptus-1.6.2.orig/clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/public/EucalyptusWebInterface.html +++ eucalyptus-1.6.2/clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/public/EucalyptusWebInterface.html @@ -34,7 +34,7 @@ - Eucalyptus + Ubuntu Enterprise Cloud, powered by Eucalyptus --- eucalyptus-1.6.2.orig/clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/public/extensions/store/stylesheet.css +++ eucalyptus-1.6.2/clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/public/extensions/store/stylesheet.css @@ -1,22 +1,6 @@ -/** Add css rules here for your application. */ -/** Example rules used by the template application (remove for your app) */ -h1 { - font-size: 2em; - font-weight: bold; - color: #777777; - margin: 40px 0px 70px; - text-align: center; -} - -.sendButton { - display: block; - font-size: 16pt; -} - -/** Most GWT widgets already have a style name defined */ .gwt-DialogBox { - width: 400px; + width: 550px; } .dialogVPanel { @@ -36,6 +20,10 @@ width: 510px; } +.istore-image-store-widget td { + font-size: 1em; +} + .istore-section-title { font-weight: bold; font-size: 150%; @@ -204,6 +192,7 @@ } .istore-status-widget .istore-show-error-anchor { + white-space: nowrap; text-decoration: underline; color: #ff0000; } @@ -239,7 +228,6 @@ padding: 2px; padding-left: 0.3em; height: 26px; - font-size: 100%; margin-right: 10px; width: 350px; /* Update the spinner position when changing this. */ } --- eucalyptus-1.6.2.orig/clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/public/themes/ubuntu/stylesheet.css +++ eucalyptus-1.6.2/clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/public/themes/ubuntu/stylesheet.css @@ -223,7 +223,7 @@ border-color: #FF6600; background: #FFCC33; padding: 20px 20px 20px 20px; - width: 400px; + width: 550px; } .gwt-DialogBox .Caption { font-size: bold; @@ -239,4 +239,4 @@ .euca-nonfirst-cluster-entry { border-top:1px dashed grey; padding:10px; -} \ No newline at end of file +} --- eucalyptus-1.6.2.orig/clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/client/EucalyptusWebInterface.java +++ eucalyptus-1.6.2/clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/client/EucalyptusWebInterface.java @@ -72,8 +72,11 @@ import com.google.gwt.user.client.Window; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.ui.*; +import com.google.gwt.event.dom.client.ClickHandler; +import com.google.gwt.event.dom.client.ClickEvent; import edu.ucsb.eucalyptus.admin.client.extensions.store.ImageStoreClient; import edu.ucsb.eucalyptus.admin.client.extensions.store.ImageStoreWidget; +import edu.ucsb.eucalyptus.admin.client.extensions.store.FrameWidget; import java.util.Date; import java.util.HashMap; import java.util.List; @@ -155,6 +158,7 @@ private static int confTabIndex = -1; private static int downTabIndex = -1; private static int storeTabIndex = -1; + private static int servicesTabIndex = -1; private static boolean sortUsersLastFirst = true; /* UI selections remembered for future use */ @@ -220,7 +224,7 @@ if (props == null) { throw new Exception("Invalid server configuration"); } - version = (String)props.get("version"); + version = (String)props.get("version"); cloud_name = (String)props.get("cloud-name"); signup_greeting = (String)props.get("signup-greeting"); certificate_download_text = (String)props.get("certificate-download-text"); @@ -1337,12 +1341,13 @@ allTabs.addTab ("Images"); imgTabIndex = nTabs++; /////allTabs.addTab ("Instances"); instTabIndex = nTabs++; if (loggedInUser.isAdministrator().booleanValue()) { + if (extensions != null && extensions.contains("store")) { + allTabs.addTab ("Store"); storeTabIndex = nTabs++; + } allTabs.addTab ("Users"); usrTabIndex = nTabs++; allTabs.addTab ("Configuration"); confTabIndex = nTabs++; + allTabs.addTab ("Services"); servicesTabIndex = nTabs++; allTabs.addTab ("Extras"); downTabIndex = nTabs++; - if (extensions!=null && extensions.contains ("store") ) { - allTabs.addTab ("Store"); storeTabIndex = nTabs++; - } } // can happen if admin user re-logs in as regular without reloading if (currentTabIndex > (nTabs-1) ) { @@ -1360,6 +1365,7 @@ else if (tabIndex==confTabIndex) { displayConfTab(wrapper); } else if (tabIndex==downTabIndex) { displayDownloadsTab(wrapper); } else if (tabIndex==storeTabIndex) { displayStoreTab(wrapper); } + else if (tabIndex==servicesTabIndex) { displayServicesTab(wrapper); } else { displayErrorPage("Invalid tab!"); } } public boolean onBeforeTabSelected(SourcesTabEvents sender, int tabIndex) { @@ -1458,7 +1464,7 @@ if (ex==null) { ip = in; - text = "Warning: Rightscale could not discover the external IP address of your cloud. Hence, the pre-filled cloud URL may be incorrect. Check your firewall settings.

"; + text = "Warning: RightScale could not discover the external IP address of your cloud. Hence, the pre-filled cloud URL may be incorrect. Check your firewall settings.

"; } else if (!ex.equals(in)) { ip = ex; @@ -1488,6 +1494,92 @@ } } + private class LandscapeDialog extends DialogBox { + + private boolean cancelled = false; + private String landscapeUrl = null; + + public LandscapeDialog () { + + cancelled = false; + setHTML("   Checking the external IP address..."); + + final Button okButton = new Button("OK", + new ClickListener() { + public void onClick(Widget sender) { + LandscapeDialog.this.hide(); + if (landscapeUrl!=null) { + Window.open(landscapeUrl, "_blank", ""); + } + } + }); + okButton.setEnabled (false); + Button cancelButton = new Button("Cancel", + new ClickListener() { + public void onClick(Widget sender) { + LandscapeDialog.this.hide(); + cancelled = true; + } + }); + + HorizontalPanel buttonPanel = new HorizontalPanel(); + buttonPanel.add (okButton); + buttonPanel.add (cancelButton); + setWidget (buttonPanel); + + EucalyptusWebBackend.App.getInstance().getCloudInfo( + sessionId, + true, // DO check external IP + new AsyncCallback () { + public void onSuccess( Object result ) + { + if (cancelled) { + return; + } + cloudInfo = (CloudInfoWeb) result; + String ex = cloudInfo.getExternalHostPort(); + String in = cloudInfo.getInternalHostPort(); + String text = ""; + String ip; + + if (ex==null) { + ip = in; + text = "Warning: The external IP address of your cloud could not be discovered. Hence, the pre-filled cloud URL may be incorrect. Check your firewall settings.

"; + } else if (!ex.equals(in)) { + ip = ex; + text = "Warning: The external cloud IP discovered (" + ex + ") is different from the IP found by Eucalyptus (" + in + "). Hence, the pre-filled cloud URL may be incorrect. Check your firewall settings.

"; + } else { + ip = ex; + } + String callbackUrl = "https://" + + ip + + cloudInfo.getServicePath(); + // XXX Should really use the info-url instead + String ec2Url = "http://" + + ip + + "/services/Eucalyptus"; + landscapeUrl = + "https://landscape.canonical.com/register-cloud" + + "?endpoint=" + + GWTUtils.escape(ec2Url) + + "&info-url=" + + GWTUtils.escape(callbackUrl) + + "&cloud-id=" + + GWTUtils.escape(cloudInfo.getCloudId()); + String pre = "

Cloud registration

You are about to open a new window to Landscape's web site, on which you will be able to complete the registraton.

"; + setHTML(pre + text); + okButton.setEnabled(true); + center(); + } + public void onFailure(Throwable caught) + { + displayErrorPage(caught.getMessage()); + } + } + ); + } + } + public void actuallyDisplayCredentialsTab (VerticalPanel parent) { History.newItem("credentials"); @@ -1598,6 +1690,7 @@ // g.setWidget( 2, 0, rpanel ); g.getCellFormatter().setVerticalAlignment(2, 0, HasVerticalAlignment.ALIGN_TOP); // g.setWidget( 2, 1, secretButton ); g.getCellFormatter().setVerticalAlignment(2, 1, HasVerticalAlignment.ALIGN_TOP); +/* if (loggedInUser.isAdministrator() && show_cloud_registration) { VerticalPanel cloud_panel = new VerticalPanel(); cloud_panel.setSpacing (0); @@ -1639,6 +1732,7 @@ // g.getCellFormatter().setVerticalAlignment(3, 1, HasVerticalAlignment.ALIGN_TOP); credspanel.add(vp); } + */ //credspanel.add(g); } @@ -2241,6 +2335,7 @@ showActions = true; } + if (nimages>0) { final Grid g = new Grid(nimages + 1, 6); g.setStyleName("euca-table"); @@ -2331,7 +2426,157 @@ parent.clear(); parent.add(imageStore); } - + + private class SectionWidget extends Composite { + private VerticalPanel verticalPanel = new VerticalPanel(); + public SectionWidget(String title, String contentHtml) { + initialize(title, new HTML(contentHtml)); + } + public SectionWidget(String title, Widget contentWidget) { + initialize(title, contentWidget); + } + private void initialize(String title, Widget contentWidget) { + Label titleLabel = new Label(title); + titleLabel.setStyleName("istore-section-title"); + verticalPanel.add(titleLabel); + verticalPanel.add(new FrameWidget(contentWidget)); + contentWidget.addStyleName("istore-images-panel"); + initWidget(verticalPanel); + setStyleName("istore-image-section-widget"); + } + } + + public void displayServicesTab (final VerticalPanel parent) + { + History.newItem ("services"); + VerticalPanel servicesPanel = new VerticalPanel(); + servicesPanel.add(new SectionWidget( + "Ubuntu Enterprise Cloud Documentation", + "

For UEC documentation, community pages and the " + + "UEC user mailing list please see the Ubuntu site:

" + + "")); + servicesPanel.add(new SectionWidget( + "Training", + "

The Ubuntu Enterprise Cloud training course covers every " + + "aspect of running your own cloud. Including installing, " + + "configuring and optimising the infrastructure, along with " + + "setting up and managing virtual machines for your " + + "applications. To learn about the UEC course, and our other " + + "Ubuntu courses please see:

" + + "")); + servicesPanel.add(new SectionWidget( + "Eucalyptus", + "

The UEC is powered by Eucalyptus, an open-source cloud " + + "computing platform with support for popular hypervisor and " + + "cloud computing interfaces. Eucalyptus enables users to " + + "easily implement on-premise and hybrid clouds that leverage " + + "both internal and external resources.

" + + "

For open-source downloads, documentation and user forums " + + "please visit:

" + + "" + + "

For enterprise support, professional services and " + + "additional Eucalyptus products please visit:" + + "

")); + + HTMLPanel landscapePanel = new HTMLPanel( + "

Landscape is " + + "a systems management service that provides package management, " + + "security alerts, custom script automation and monitoring. " + + "With Landscape you can see and manage all of your Cloud " + + "environment.

" + + "

If you already have an account with Landscape, you can " + + "register this cloud now:

" + + ""); + + Anchor landscapeAnchor = Anchor.wrap( + landscapePanel.getElementById("ls-anchor")); + + landscapeAnchor.addClickHandler(new ClickHandler() { + public void onClick(ClickEvent event) { + event.preventDefault(); + new LandscapeDialog().center(); + } + }); + + servicesPanel.add(new SectionWidget( + "Landscape", + landscapePanel + )); + + if (loggedInUser.isAdministrator() && show_cloud_registration) { + HTMLPanel rightScalePanel = new HTMLPanel( + "

Your Eucalyptus cloud can also be registered with " + + "RightScale, " + + "providing you and your users with an easy-to-use interface " + + "to both EC2 and your Eucalyptus cloud. The following two " + + "parameters will be necessary for registration:

" + + "
" + + "

Cloud URL:

" + + "

Cloud ID:

" + + "
" + + "

If you already have an account with RightScale, you can " + + "register this cloud now:

" + + ""); + + rightScalePanel.add(new InlineLabel( + "https://" + + cloudInfo.getInternalHostPort() + + cloudInfo.getServicePath() + ), "rs-cloud-url"); + + rightScalePanel.add(new InlineLabel( + cloudInfo.getCloudId() + ), "rs-cloud-id"); + + Anchor rightScaleAnchor = Anchor.wrap( + rightScalePanel.getElementById("rs-anchor")); + + rightScaleAnchor.addClickHandler(new ClickHandler() { + public void onClick(ClickEvent event) { + event.preventDefault(); + new RightscaleDialog().center(); + } + }); + + servicesPanel.add(new SectionWidget( + "RightScale", + rightScalePanel + )); + } + + servicesPanel.add(new SectionWidget( + "Support", + "

With commercial support you have the certainty that your " + + "bugs and issues will be responded to promptly. Canonical " + + "provides business day and 24/7 for Ubuntu Enterprise Cloud. " + + "For more details on the service please see:

" + + "")); + + parent.clear(); + parent.add(servicesPanel); + } + public void displayFirstTimeConfiguration() { displayStatusPage("Loading first-time configuration page..."); --- eucalyptus-1.6.2.orig/clc/modules/cluster-manager/src/main/java/edu/ucsb/eucalyptus/cloud/cluster/VmInstance.java +++ eucalyptus-1.6.2/clc/modules/cluster-manager/src/main/java/edu/ucsb/eucalyptus/cloud/cluster/VmInstance.java @@ -346,13 +346,15 @@ m.put( "public-ipv4", this.getNetworkConfig( ).getIgnoredPublicIp( ) ); m.put( "reservation-id", this.getReservationId( ) ); m.put( "kernel-id", this.getImageInfo( ).getKernelId( ) ); - m.put( "ramdisk-id", this.getImageInfo( ).getRamdiskId( ) ); + if (this.getImageInfo( ).getRamdiskId( ) != null ) { + m.put( "ramdisk-id", this.getImageInfo( ).getRamdiskId( ) ); + } m.put( "security-groups", this.getNetworkNames( ).toString( ).replaceAll( "[\\Q[]\\E]", "" ).replaceAll( ", ", "\n" ) ); m.put( "block-device-mapping/", "emi\nephemeral0\nroot\nswap" ); m.put( "block-device-mapping/emi", "sda1" ); m.put( "block-device-mapping/ami", "sda1" ); - m.put( "block-device-mapping/ephemeral", "sda2" ); + m.put( "block-device-mapping/ephemeral0", "sda2" ); m.put( "block-device-mapping/swap", "sda3" ); m.put( "block-device-mapping/root", "/dev/sda1" ); @@ -366,6 +368,10 @@ String dir = ""; for ( String entry : m.keySet( ) ) { if ( entry.contains( "/" ) && !entry.endsWith( "/" ) ) continue; + if ( entry.equals("ramdisk-id") && + this.getImageInfo( ).getRamdiskId( ) == null ) { + continue; + } dir += entry + "\n"; } m.put( "", dir ); --- eucalyptus-1.6.2.orig/clc/modules/bootstrap/eucalyptus-bootstrap.c +++ eucalyptus-1.6.2/clc/modules/bootstrap/eucalyptus-bootstrap.c @@ -585,7 +585,9 @@ if(args->remote_walrus_flag) { JVM_ARG(opt[++x],"-Deuca.remote.walrus=true"); } - if(args->disable_iscsi_flag) { + //if(args->disable_iscsi_flag) { + // iSCSI is disabled for Ubuntu 10.04 LTS + if(1) { JVM_ARG(opt[++x],"-Deuca.disable.iscsi=true"); } if(args->debug_flag) { --- eucalyptus-1.6.2.orig/cluster/handlers.c +++ eucalyptus-1.6.2/cluster/handlers.c @@ -365,8 +365,8 @@ ret = 1; } else { if (!allocated) { - snprintf(cmd, 255, "%s/usr/lib/eucalyptus/euca_rootwrap ip addr add %s/32 dev %s", config->eucahome, src, vnetconfig->pubInterface); - logprintfl(EUCADEBUG,"running cmd %s\n", cmd); + snprintf(cmd, 255, "%s/usr/lib/eucalyptus/euca_rootwrap ip addr add %s/32 dev %s:pub label %s:pub", config->eucahome, src, vnetconfig->pubInterface, vnetconfig->pubInterface); + logprintfl(EUCAINFO,"running cmd %s\n", cmd); rc = system(cmd); rc = rc>>8; if (rc && (rc != 2)) { @@ -1154,9 +1154,9 @@ rc = 0; ret = 0; if (strcmp(res->mac, "00:00:00:00:00:00")) { - snprintf(cmd, 256, "%s/usr/lib/eucalyptus/euca_rootwrap powerwake -b %s %s", vnetconfig->eucahome, bc, res->mac); + snprintf(cmd, 256, "powerwake -b %s %s", bc, res->mac); } else if (strcmp(res->ip, "0.0.0.0")) { - snprintf(cmd, 256, "%s/usr/lib/eucalyptus/euca_rootwrap powerwake -b %s %s", vnetconfig->eucahome, bc, res->ip); + snprintf(cmd, 256, "powerwake -b %s %s", bc, res->ip); } else { ret = rc = 1; } @@ -2282,7 +2282,7 @@ } int update_config(void) { - char home[1024], *tmpstr=NULL; + char home[1024], *tmpstr=NULL, nodesList[1024]; ccResource *res=NULL; int rc, numHosts, ret; time_t configMtime; @@ -2294,8 +2294,11 @@ configMtime = 0; sem_mywait(CONFIG); + + snprintf(nodesList, 1024, NODES_LIST_LOCATION, config->eucahome); + + // stat the config file(s), update modification time for (i=0; i<2; i++) { - // stat the config file, update modification time rc = stat(config->configFiles[i], &statbuf); if (!rc) { if (statbuf.st_mtime > configMtime) { @@ -2303,6 +2306,17 @@ } } } + + // check the external nodes list file, if it exists + if (!check_file(nodesList)) { + rc = stat(nodesList, &statbuf); + if (!rc) { + if (statbuf.st_mtime > configMtime) { + configMtime = statbuf.st_mtime; + } + } + } + if (configMtime == 0) { logprintfl(EUCAERROR, "update_config(): could not stat config files (%s,%s)\n", config->configFiles[0], config->configFiles[1]); sem_mypost(CONFIG); @@ -2789,8 +2803,8 @@ // restore ip addresses logprintfl(EUCADEBUG, "restoreNetworkState(): restarting ips\n"); if (!strcmp(vnetconfig->mode, "MANAGED") || !strcmp(vnetconfig->mode, "MANAGED-NOVLAN")) { - snprintf(cmd, 255, "%s/usr/lib/eucalyptus/euca_rootwrap ip addr add 169.254.169.254/32 scope link dev %s", config->eucahome, vnetconfig->privInterface); - logprintfl(EUCADEBUG,"restoreNetworkState(): running cmd %s\n", cmd); + snprintf(cmd, 255, "%s/usr/lib/eucalyptus/euca_rootwrap ip addr add 169.254.169.254/32 scope link dev %s:metadata label %s:metadata", config->eucahome, vnetconfig->privInterface, vnetconfig->privInterface); + logprintfl(EUCAINFO,"restoreNetworkState(): running cmd %s\n", cmd); rc = system(cmd); if (rc) { logprintfl(EUCAWARN, "restoreNetworkState(): cannot add ip 169.254.169.254\n"); @@ -2843,10 +2857,13 @@ char ncservice[512]; int ncport; char **hosts; + char nodesFile[1024]; *numHosts = 0; *res = NULL; + snprintf(nodesFile, 1024, NODES_LIST_LOCATION, config->eucahome); + tmpstr = getConfString(config->configFiles, 2, CONFIG_NC_SERVICE); if (!tmpstr) { // error @@ -2871,7 +2888,14 @@ } if (tmpstr) free(tmpstr); - tmpstr = getConfString(config->configFiles, 2, CONFIG_NODES); + if (!check_file(nodesFile)) { + // nodesFile exists, read list of nodes from nodesFile + tmpstr = file2str(nodesFile); + } else { + // otherwise, read NODES="..." from eucalyptus config file(s) + tmpstr = getConfString(config->configFiles, 2, CONFIG_NODES); + } + if (!tmpstr) { // error logprintfl(EUCAWARN,"refreshNodes(): NODES parameter is missing from config files(%s,%s)\n", config->configFiles[1], config->configFiles[0]); --- eucalyptus-1.6.2.orig/cluster/Makefile +++ eucalyptus-1.6.2/cluster/Makefile @@ -24,18 +24,23 @@ build: all generated/stubs: $(CCWSDL) - rm -rf generated - mkdir -p generated - @echo Generating client stubs - sh $(WSDL2C) -uri $(CCWSDL) -g -d adb -u -uw -f -o generated | grep -v 'the classpath' - @echo Generating NCclient stubs - sh $(WSDL2C) -uri $(NCWSDL) -g -d adb -u -uw -f -o generated | grep -v 'the classpath' - @echo Generating server stubs - sh $(WSDL2C) -uri $(CCWSDL) -sd -ss -d adb -u -uw -f -o generated | grep -v 'the classpath' - @echo Adding marshalling calls to server stubs - ../tools/add_marshalling.pl generated/axis2_skel_*.c + if test -n "$(REBUILD_STUBS)"; \ + then \ + rm -rf generated; \ + mkdir -p generated; \ + echo Generating client stubs; \ + sh $(WSDL2C) -uri $(CCWSDL) -g -d adb -u -uw -f -o generated | grep -v 'the classpath'; \ + echo Generating NCclient stubs; \ + sh $(WSDL2C) -uri $(NCWSDL) -g -d adb -u -uw -f -o generated | grep -v 'the classpath'; \ + echo Generating server stubs; \ + sh $(WSDL2C) -uri $(CCWSDL) -sd -ss -d adb -u -uw -f -o generated | grep -v 'the classpath'; \ + echo Adding marshalling calls to server stubs; \ + ../tools/add_marshalling.pl generated/axis2_skel_*.c; \ + echo Patching; \ + patch -d generated -p1 < axis2_svc_generated.patch; \ + fi @echo Compiling the stubs - cd generated; patch -p1 < ../axis2_svc_generated.patch; $(CC) -c $(CFLAGS) $(INCLUDES) *.c + cd generated; $(CC) -c $(CFLAGS) $(INCLUDES) *.c @echo "this is a cute little makefile marker" >generated/stubs @echo Stubs generated. @@ -77,7 +82,9 @@ rm -f $(SERVICE_SO) *.o $(CLIENTKILLALL) $(CLIENT)_full *~* *#* distclean: clean - rm -rf generated + find generated -name '*.o' -print0 | xargs -0 rm -f + test -e generated/stubs && cd generated && patch -R -p1 < ../axis2_svc_generated.patch + rm -f generated/stubs install: deploy @$(INSTALL) -m 0555 $(CLIENTKILLALL) $(DESTDIR)$(sbindir) --- eucalyptus-1.6.2.orig/tools/euca_conf.in +++ eucalyptus-1.6.2/tools/euca_conf.in @@ -60,7 +60,8 @@ # #FAKEREG="yes" -FILE="@prefix@/etc/eucalyptus/eucalyptus.conf" +FILE="@prefix@/etc/eucalyptus/eucalyptus.local.conf" +DEFAULTS_FILE="@prefix@/etc/eucalyptus/eucalyptus.conf" IMPORTFILE="" EUCALYPTUS="" CC_PORT="" @@ -91,7 +92,9 @@ TO_BACKUP="Y" CREDENTIALZIPFILE="" SCP="`which scp 2> /dev/null`" +SCP_OPT="" RSYNC="`which rsync 2> /dev/null`" +LOCALSYNC="N" WGET="`which wget 2> /dev/null`" VERBOSE="N" LIST="" @@ -109,8 +112,10 @@ echo " --no-rsync don't use rsync" echo " --no-scp don't use scp" echo " --skip-scp-hostcheck skip scp interactive host keycheck" + echo " --local-sync force local key sync" echo " --get-credentials download credentials to " echo " --register-nodes \"host host ...\" add new nodes to EUCALYPTUS" + echo " --discover-nodes find and add nodes on local network" echo " --deregister-nodes \"host host ...\" remove nodes from EUCALYPTUS" echo " --register-cluster add new cluster to EUCALYPTUS" echo " --deregister-cluster remove cluster from EUCALYPTUS" @@ -132,7 +137,7 @@ echo " --dhcpd set the dhcpd binary to " echo " --dhcp_user set the username to run dhcpd as" echo " --name returns the value or " - echo " --import-conf import variables from into eucalyptus.conf" + echo " --import-conf import variables from into $FILE" echo " --setup perform initial setup" echo " --enable {cloud|walrus|sc} enable service at next start" echo " --disable {cloud|walrus|sc} disable service at next start" @@ -271,7 +276,6 @@ # copy files over. sync_keys() { - local SOURCEDIR="" local DESTDIR="" local REMOTE="" local FILES="" @@ -309,25 +313,20 @@ done # is REMOTE actually localhost? - if [ ${REMOTE} = "127.0.0.1" -o ${REMOTE} = localhost -o ${REMOTE} = "`hostname -s`" -o ${REMOTE} = "`hostname -f`" ]; then + if [ ${LOCALSYNC} = "Y" -o ${REMOTE} = "127.0.0.1" -o ${REMOTE} = localhost -o ${REMOTE} = "`hostname -s`" -o ${REMOTE} = "`hostname -f`" ]; then # machine is localhost, not need for remote syncing - if [ -d "$SOURCEDIR" ]; then for i in $FILES do if [ ! -e $i ]; then echo "ERROR: cannot find cluster credentials." exit 1 else - if ! rsync -a $i $DESTDIR ; then + if ! $RSYNC -a $i $DESTDIR ; then echo "ERROR: cannot copy file (${i}) to destination (${DESTDIR})" return 1 fi fi done - else - echo "ERROR: Cannot find source keys directory." - return 1 - fi return 0 fi @@ -335,7 +334,7 @@ if [ -n "$RSYNC" ]; then echo echo -n "Trying rsync to sync keys with \"${REMOTE}\"..." - if $RSYNC -az ${FILES} ${REMOTE}:${DESTDIR}/ > /dev/null ; then + if sudo -u ${EUCA_USER} $RSYNC $RSYNC_RSH -az ${FILES} ${EUCA_USER}@${REMOTE}:${DESTDIR}/ > /dev/null ; then echo "done." return 0 else @@ -356,8 +355,13 @@ fi fi echo - echo "Trying scp to sync keys with \"${1}\" (user \"${EUCA_USER}\")..." - if sudo -u ${EUCA_USER} $SCP ${FILES} ${EUCA_USER}@${REMOTE}:${DESTDIR} > /dev/null ; then + echo "Trying scp to sync keys to: ${EUCA_USER}@${REMOTE}:${DESTDIR}..." + if [ "$EUID" = `getent passwd $EUCA_USER | cut -f3 -d:` ]; then + $SCP $SCP_OPT ${FILES} ${EUCA_USER}@${REMOTE}:${DESTDIR} > /dev/null + else + sudo -u ${EUCA_USER} $SCP $SCP_OPT ${FILES} ${EUCA_USER}@${REMOTE}:${DESTDIR} > /dev/null + fi + if [ "$?" = "0" ]; then echo "done." return 0 else @@ -390,6 +394,11 @@ shift continue fi + if [ "$1" = "--local-sync" ]; then + LOCALSYNC="Y" + shift + continue + fi if [ "$1" = "--list-scs" ]; then LIST="$LIST storages" shift @@ -421,7 +430,7 @@ continue fi if [ "$1" = "--skip-scp-hostcheck" ]; then - SCP_OPT="-oStrictHostKeyChecking=no" + SCP_OPT="-oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null" shift continue fi @@ -445,6 +454,12 @@ shift continue fi + if [ "$1" = "--discover-nodes" ]; then + NODEMODE="DISCOVER" + RSYNC_RSH="--rsh='ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null'" + shift + continue + fi if [ $# -eq 1 ]; then # we dont have options with no argument, so it has to be # the file @@ -666,6 +681,7 @@ # if asked to print the version that's all we do if [ "$VERSION" = "Y" ]; then + . $DEFAULTS_FILE . $FILE if [ -e $EUCALYPTUS/etc/eucalyptus/eucalyptus-version ]; then @@ -737,7 +753,7 @@ # modify the current conf file based on an older configuration, or from import file if [ -n "$UPGRADE_CONF" -o -n "$IMPORTFILE" ]; then VARS="EUCA_USER ENABLE_WS_SECURITY DISABLE_EBS HYPERVISOR LOGLEVEL SWAP_SIZE CC_PORT MANUAL_INSTANCES_CLEANUP NC_CACHE_SIZE SCHEDPOLICY NODES NC_SERVICE NC_PORT MAX_MEM MAX_CORES INSTANCE_PATH VNET_BRIDGE VNET_DHCPDAEMON VNET_DHCPUSER" - VNET_VARS="VNET_MODE VNET_SUBNET VNET_NETMASK VNET_DNS VNET_ADDRSPERNET VNET_PUBLICIPS VNET_BROADCAST VNET_ROUTER VNET_MACMAP VNET_INTERFACE" + VNET_VARS="VNET_MODE VNET_SUBNET VNET_NETMASK VNET_DNS VNET_ADDRSPERNET VNET_PUBLICIPS VNET_BROADCAST VNET_ROUTER VNET_MACMAP VNET_INTERFACE VNET_CLOUDIP" if [ -n "$UPGRADE_CONF" ]; then # source the old config @@ -803,7 +819,12 @@ fi # we need defaults in eucalyptus.conf +. $DEFAULTS_FILE . $FILE +# get node from nodes.list if it exists +if [ -e "$EUCALYPTUS/var/lib/eucalyptus/nodes.list" ]; then + NODES=`cat $EUCALYPTUS/var/lib/eucalyptus/nodes.list` +fi # first time setup if [ -n "$SETUP" ]; then @@ -1338,6 +1359,23 @@ NODEMODE="ADD" fi fi + if [ "$NODEMODE" = "DISCOVER" ]; then + if ! which avahi-browse >/dev/null 2>&1; then + echo "ERROR: avahi-browse not installed, so cannot discover nodes" + exit 1 + fi + NEWNODES= + for DISCOVERED in $(avahi-browse -prt _eucalyptus._tcp | grep '^=.*"type=node"' | cut -d\; -f8 | sort -u); do + if ! echo "$NODES" | grep -qw "$DISCOVERED"; then + read -p "New node found on $DISCOVERED; add it? [Yn] " CONFIRM + CONFIRM="$(printf %s "$CONFIRM" | tr A-Z a-z | cut -c1)" + if [ "x$CONFIRM" = x ] || [ "x$CONFIRM" = xy ]; then + NEWNODES="${NEWNODES:+$NEWNODES }$DISCOVERED" + fi + fi + done + NODEMODE="ADD" + fi # check we have a valid command if [ "$NODEMODE" != "ADD" -a "$NODEMODE" != "REM" ]; then @@ -1361,7 +1399,7 @@ # warn the user on where we expect the keys to be if [ "$NODEMODE" = "ADD" ]; then echo - echo "INFO: We expect all nodes to have eucalyptus installed in $EUCALYPTUS for key synchronization." + echo "INFO: We expect all nodes to have eucalyptus installed in $EUCALYPTUS/var/lib/eucalyptus/keys for key synchronization." fi # adding (or removing) nodes @@ -1373,8 +1411,9 @@ continue fi NODES="`echo $NODES|sed \"s/${NEWNODE}//\"|tr -s ' '`" - change_var_value $FILE NODES "${NODES}" - echo "SUCCESS: removed node '${NEWNODE}' from '$FILE'" + echo "$NODES" | tr ' ' '\n' | uniq > $EUCALYPTUS/var/lib/eucalyptus/nodes.list +# change_var_value $FILE NODES "${NODES}" + echo "SUCCESS: removed node '${NEWNODE}'" continue fi @@ -1402,7 +1441,8 @@ if ! echo "${NODES}"|grep "${NEWNODE}" > /dev/null ; then # node is not present: we need to add it NODES="${NODES} $NEWNODE" - change_var_value $FILE NODES "${NODES}" + echo "$NODES" | tr ' ' '\n' | uniq > $EUCALYPTUS/var/lib/eucalyptus/nodes.list + # change_var_value $FILE NODES "${NODES}" fi done fi --- eucalyptus-1.6.2.orig/tools/eucalyptus.conf.5 +++ eucalyptus-1.6.2/tools/eucalyptus.conf.5 @@ -0,0 +1,218 @@ +.TH eucalyptus.conf 5 "8 January 2010" "eucalyptus.conf" + +.SH NAME +eucalyptus.conf, eucalyptus.local.conf \- configuration files for Eucalyptus + +.SH SYNOPSIS +.B /etc/eucalyptus/eucalyptus.conf + +.B /etc/eucalyptus/eucalyptus.local.conf + +.SH DESCRIPTION +This manual describes the configuration files used to configure and customize Eucalyptus. + +\fI/etc/eucalyptus/eucalyptus.conf\fP is the traditional Eucalyptus configuration file. In previous Eucalyptus versions (<1.6.2), and on non-Ubuntu versions, Eucalyptus is configured by this one monolithic file, with inline comments describing all options. As of Ubuntu's Eucalyptus 1.6.2 version, the inline documentation has been extracted to two manpages, \fBeuca_conf\fP(8) and this page, \fBeucalyptus.conf\fP(5). + +\fI/etc/eucalyptus/eucalyptus.conf\fP now contains a base set of your distribution's recommended configuration. This file is managed by \fBdpkg\fP(1), and provides a vector for your distribution to add new variables/values and maintain a sane set of defaults. It serves as the base configuration, which are easily overriden by the administrator. + +\fI/etc/eucalyptus/eucalyptus.local.conf\fP contains values written by \fBeuca_conf\fP(8). This file should never be edited directly. Rather, the user should see the documentation at \fBeuca_conf\fP(8) and use the various options and interfaces for modifying this file. + +.SH OPTIONS + +Each option below may affect one or more of the following Eucalyptus components: + - CLC = Cloud Controller + - WC = Walrus Controller + - CC = Cluster Controller + - SC = Storage Controller + - NC = Node Controller + +\fB**NOTE**\fP: To activate changes of any parameters on a CC, you must: + sudo restart eucalyptus-cc CLEAN=1 + +\fB**HOWEVER**\fP, if you do this, all currently running virtual machines in this cluster will lose network connectivity. + +Options affecting CLC, WC, CC, SC, NC: + +.BI EUCALYPTUS="/" +.RS +This variable points to where eucalyptus has been installed. +.RE + +.BI EUCA_USER="eucalyptus" +.RS +This is the username that you would like eucalyptus to run as. +.RE + +Options affecting CLC, WC, SC only: + +.BI DISABLE_DNS="Y" +.RS +Enable/disable Eucalyptus dynamic DNS functionality. +.RE + +.BI DISABLE_ISCSI="Y" +.RS +Use either iSCSI or AoE for dynamic block storage. +.RE + + +Options affecting CC, NC only: + +.BI ENABLE_WS_SECURITY="Y" +.RS +This variable controls whether ws-security is enabled between eucalyptus components. The default settings provide secure connections between the Cloud, Cluster, and Node Controllers and we recommend that this feature remains enabled. If you wish to disable security, you must change this variable to "N" and manually configure the services.xml for both Cluster and Node Controllers (see documentation for more details). +.RE + +.BI LOGLEVEL="DEBUG" +.RS +This variable controls the level of logging output that appears in various eucalyptus log files. The options are, in descending order of verbosity, 'DEBUG, INFO, WARN, ERROR, and FATAL'. The default is DEBUG (everything). +.RE + +.BI VNET_PUBINTERFACE="br0" +.BI VNET_PRIVINTERFACE="br0" +.RS +The 2 variable VNET_PRIVINTERFACE and VNET_PUBINTERFACE specify the local physical ethernet interfaces that eucalyptus should use to manage the VM network. On the front-end, VNET_PRIVINTERFACE should be set to the device that is attached to the same ethernet network as your nodes. - VNET_PUBINTERFACE should be set to the device which is connected to the 'public' network. If you have only one interface, these should be set to the same value. On the nodes, both should be set to either the name of the bridge that has been set up by Xen (xenbr0, eth0, etc), or the physical ethernet device that is attached to the xen bridge (peth0, peth1, etc), depending on your xen configuration. +.RE + +.BI VNET_MODE="MANAGED-NOVLAN" +.RS +There are four modes to choose from (MANAGED, MANAGED-NOVLAN, SYSTEM, or STATIC) and each has its own sub-options. The first modes (MANAGED, MANAGED-NOVLAN) configure eucalyptus to fully manage the VM networks, and enables the ability to use security groups and dynamic public IP assignment (with and without vlan tagging of security group networks, respectively). +.RE + +Options affecting CC only: + +.BI CC_PORT="8774" +.RS +This is the port the Cluster Controller will be listening on. +.RE + +.BI SCHEDPOLICY="ROUNDROBIN" +.RS +This option configures the Cluster Controller's scheduling policy. Currently, this option can be set to GREEDY (first node that is found that can run the VM will be chosen), ROUNDROBIN (nodes are selected one after another until one is found that can run the VM), or POWERSAVE (nodes are put to sleep when they are not running VMs, and reawakened when new resources are required. VMs will be placed on the first awake machine, followed by machines that are asleep). +.RE + +.BI POWER_IDLETHRESH="300" +.BI POWER_WAKETHRESH="300" +.RS +Powersave options. POWER_IDLETHRESH is the number of seconds that a node can remain idle (i.e. no running VMs) before a powerdown is attempted. POWER_WAKETHRESH is the number of seconds that Eucalyptus should wait after attempting a node wake-up before it will consider the node actually down (and not waking up). +.RE + +.BI NC_SERVICE="axis2/services/EucalyptusNC" +.RS +The name of the Node Controller service. Change this if you want to plug in your own Node Controller service. +.RE + +.BI VNET_DHCPDAEMON="/usr/sbin/dhcpd3" +.RS +This indicates where we have a dhcp server binary. We use it to provide the images with IPs: Eucalyptus provides its own configuration per instance. +.RE + +.BI VNET_DHCPUSER="dhcpd" +.RS +Some systems have their DHCP daemon configured to run as a non-root user. If this is the case, set the name of that user here (by default, Eucalyptus will set up DHCPD configuration files and directories as owned by root). +.RE + +.BI NODES="" +.RS +The list of Node Controllers the Cluster Controller will communicate with. If you are running Rocks, you can run "rocks list host" to find out the list of machines available to you (in our case we are interested in the VM Container kind). +.RE + +.BI VNET_SUBNET="" +.RS +VNET_SUBNET should be set to an IP subnet that is free for eucalyptus to use (i.e. no other system connected to your network directly is configured with addresses from this subnet). +.RE + +.BI VNET_NETMASK="" +.RS +VNET_NETMASK defines the size of the subnet. +.RE + +.BI VNET_DNS="" +.RS +VNET_DNS should be set to a DNS server that your systems use (usually safe to use the same DNS that is configured on the front-end). +.RE + +.BI VNET_ADDRSPERNET="32" +.RS +VNET_ADDRSPERNET can be used to limit the number of instances that can be attached to each named security group simultaneously. +.RE + +.BI VNET_PUBLICIPS="" +.RS +VNET_PUBLICIPS should be set to any public IPs, that are currently unused, that can be dynamically assigned to VMs. Of these options, only VNET_PUBLICIPS can be left blank or undefined. +.RE + +.BI VNET_LOCALIP="your-public-interface's-ip" +.RS +If you are running in multi-cluster mode (more than one CC), you should uncomment VNET_LOCALIP and set it to the local IP of the CC that is accessible by all other CCs in the system. If VNET_LOCALIP is unset, the CC will try to determine the list of all IPs currently assigned to the machine at CC run time. +.RE + +.BI VNET_CLOUDIP="your-cloud-controller's-ip" +.RS +If your CC and CLC are on different machines, uncomment VNET_CLOUDIP and set it to your cloud-contoller's IP address (must be an address that can be reached by the CC). +.RE + +Options affecting the NC only: + +.BI NC_PORT="8775" +.RS +This is the port the Node Controller will be listening on. +.RE + +.BI HYPERVISOR="kvm" +.RS +The hypervisor that the Node Controller will interact with in order to manage virtual machines. Currently, supported values are 'kvm' and 'xen'. +.RE + +.BI MANUAL_INSTANCES_CLEANUP=0 +.RS +Setting this to 1 disables the cleanup of instance files (root, kernel, ramdisk) for failed and terminated instances. This is not recommended for normal use, but it can be useful in debugging VM startup. +.RE + +.BI NC_CACHE_SIZE=99999 +.RS +The maximum amount of disk space, in Megabytes, that Eucalyptus is allowed to use in the cache directory (INSTANCES_PATH/eucalyptus/cache). A generous size is recommended. Setting this to zero disables caching. +.RE + +.BI VNET_BRIDGE="br0" +.RS +VNET_BRIDGE should be set to the name of the bridge that xen has configured. This is typically named 'xenbr0, xenbr1, etc' on older Xen versions, and 'eth0, eth1, etc' on newer Xen versions. The command 'brctl show' will give you more information on your local bridge setup. +.RE + +.BI INSTANCE_PATH="/var/lib/eucalyptus/instances/" +.RS +This variable points to a directory which is used by the Node Controller to store images of running instances as well as local cached copies of images. The running images will be deleted after the instance is terminated, but the cached copies will persist, subject to LRU cache replacement and the NC_CACHE_SIZE size limit, below. So, this partition should be at least as big as the cache size (or the maximum space needed by all images, whichever is bigger) plus the maximum space needed by the maximum number of instances allowed on the node. This directory should be local to the Node Controller (as opposed to a NFS share) for performance reasons. +.RE + +.BI MAX_MEM=2048 +.RS +The maximum amount of memory Eucalyptus is allowed to use on the node: if you leave this commented out, Eucalyptus will use all available memory, otherwise it will use at most this value for ALL running instances. +.RE + +.BI MAX_CORES=2 +.RS +The maximum number of CPU/cores Eucalyptus is allowed to use on the node (at the moment we don't differentiate between cores and CPU). If you leave this commented out, Eucalyptus will use all available CPU/cores it can find. +.RE + +.BI SWAP_SIZE=512 +.RS +The size of the swap partition, in MB, for each instance started on the node (default is 512MB). If the maximum disk allowed for the instance is not big enough to accommodate the swap together with the root partition, then no swap is allocated. If there is extra room left, then an "ephemeral" partition will be created, available as /dev/sda3 inside the VM. +.RE + +.BI CONCURRENT_DISK_OPS=4 +.RS +Set the number of 'disk intensive operations' that are allowed to take place in parallel on this machine. If this value is set too high, we run the risk of driving the load on the machine too high when multiple instances are started on this single node. The default is 4. +.RE + +.SH SEE ALSO +.PD 0 +.TP +\fBeuca_conf\fP(8) +.TP +\fIhttp://launchpad.net/eucalyptus\fP +.PD + +.SH AUTHOR +This manpage was written by Dustin Kirkland (with extensive help from Daniel Nurmi, and some of it lifted from the original /etc/eucalyptus/eucalyptus.conf) for Ubuntu systems (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation. + +On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. --- eucalyptus-1.6.2.orig/tools/gen_kvm_libvirt_xml +++ eucalyptus-1.6.2/tools/gen_kvm_libvirt_xml @@ -100,7 +100,6 @@ MEMORY VCPUS - /usr/bin/kvm --- eucalyptus-1.6.2.orig/tools/httpd.conf +++ eucalyptus-1.6.2/tools/httpd.conf @@ -57,7 +57,7 @@ MaxRequestsPerChild 0 -LoadModule axis2_module AXIS2C_HOME/lib/libmod_axis2.so +LoadModule axis2_module /usr/lib/apache2/modules/libmod_axis2.so Axis2RepoPath AXIS2C_HOME Axis2LogFile EUCALYPTUS/var/log/eucalyptus/axis2c.log Axis2MaxLogFileSize 128 --- eucalyptus-1.6.2.orig/tools/euca_conf.8 +++ eucalyptus-1.6.2/tools/euca_conf.8 @@ -0,0 +1,194 @@ +.TH euca_conf 8 "August 2, 2009" "euca_conf" + +.SH NAME +euca_conf \- configuration tool for Eucalyptus + +.SH SYNOPSIS +.B euca_conf + +.SH DESCRIPTION +This manual page describes the +.B euca_conf +command which is used to configure Eucalyptus. There are few component to +a Eucalyptus installation: the cloud controller (CLC), walrus, one or more +cluster controller (CC), one storage controller (SC) per CC and node +controller (NC). + +CLC is the endpoint for the client tool, and contains the administrative +UI (reachable at https://localhost:8443 on the CLC machine). + +walrus is the S3 compatible storage for Eucalyptus. + +CC controls a number of NCs, provisions the network for VMs. + +SC gives EBS functionality to a cluster. + +NC interact with the local hypervisor to start/stop/control instances. + + +.SH OPTIONS + +.BI --help +.RS +display some help +.RE + +.BI --enable\ {walrus|sc|cloud} +.RS +Service to enable at the next start time. Needs to be run on the machine +which has the service to start. +.RE + +.BI --disable\ {walrus|sc|cloud} +.RS +Disable services, preventing them to be started. +.RE + +.BI --register-cluster\ \ +.RS +Register a CC with the CLC. To allow provisioning of instances, at least +one CC is needed on a running Eucalyptus installation. +This command needs to be ran on the CLC machine, and the +CC machine (possibly the same machine) needs to be reachable. The keys +needs to be transferred from the CLC to the CC machine to enable +secure operation, and ssh is used, so this command may ask for a password. + +The user need to choose a name per CC. +.RE + +.BI --deregister-cluster\ \ +.RS +Deregister a CC. +.RE + +.BI --register-sc\ \ +.RS +Register a SC with the CLC. The SC is needed to provide EBS support to a +cluster logically resides with the CC. +This command needs to be ran on the CLC machine, and the +SC machine (possibly the same machine) needs to be reachable. The keys +needs to be transferred from the CLC to the SC machine to enable +secure operation, and ssh is used, so this command may ask for a password. + +There has to be a CC already registered, since the SC works in conjunction +with a CC. +.RE + +.BI --deregister-sc\ +.RS +Deregister a running SC. You will need to register another SC to +have EBS functionality for a named cluster. + +.B WARNING: +running this command will invalidate volumes and snapshots which this SC +is responsible for. +.RE + +.BI --register-walrus\ +.RS +Register a walrus with the CLC. A walrus is needed for a running Eucalyptus +installation. This command needs to be ran on the CLC machine, and the +walrus machine (possibly the same machine) needs to be reachable. The keys +needs to be transferred from the CLC to the walrus machine to enable +secure operation, and ssh is used, so this command may ask for a password. +.RE + +.BI --deregister-walrus\ +.RS +Deregister a running walrus. You will need to register another walrus to +have a functional Eucalyptus installation. + +.B WARNING: +running this command will invalidate the uploaded and running images, +kernels and ramdisk! So you (and all the users) will have to upload new +images. +.RE + +.BI --register-nodes\ host\ [host ...] +.RS +Register NCs with a CC. NC and CC should be on the same network. This +command needs to be run the CC which will controll the NCs. The keys +needs to be transferred from the CC to the NC for enable secure operation, +and ssh is used, so this command may ask for a password. +.RE + +.BI --deregister-nodes\ host\ [host ...] +.RS +Intruct the CC to ignore specified NCs. +.RE + +.BI --list-walruses +.RS +List registered walruses. The command needs to be run on the CLC. +.RE + +.BI --list-scs +.RS +List registered storage controllers. The command needs to be run on the CLC. +.RE +. +.BI --list-clusters +.RS +List registered cluster controllers. The command needs to be run on the CLC. +.RE +. +.BI --instances\ +.RS +The NC needs disk space to keep a copy of the running instances. Some +copies are cached for faster startup time. This instruct the NC to user +.I path +as the local cache. +.I path +better be an empty directory, since the NC needs to initialized it every +time. +.RE + +.BI --version +.RS +Print the version of Eucalyptus. +.RE + +.BI --setup +.RS +This command needs to run as root, before the first-time startup or +Eucalyptus. Eucalyptus runs as an unprivileged user (EUCA_USER in config) +but to interact with hypervisor and disk image, it will need to escalate +privilege. To do so we use a command (euca_rootwrap) and this command set +it up properly. +.RE + +.BI --check\ {nc|cc|cloud|sc|walrus} +.RS +This command is mainly used on the startup script for the specific +component, since it checks that the environment is properly setup for the +component (mainly permission on directory needs to be right for the +eucalyptus user). +.RE + +.BI --cc-port\ +.RS +.RE +.BI --nc-port\ +.RS +.RE +.BI --user\ +.RS +.RE +.BI --dhcpd\ +.RS +.RE +.BI --dhcp_user\ +.RS +These commands modify eucalyptus.conf so the changes will be reflected at +the restart of the services. +.RE + +.SH COPYRIGHT +Copyright © 2009 Eucalyptus Systems Inc. License GPLv3+: GNU GPL +version 3 or later . This is free +software: you are free to change and redistribute it. There is NO +WARRANTY, to the extent permitted by law. + +.SH AUTHOR +Eucalyptus Systems Inc. + --- eucalyptus-1.6.2.orig/tools/detach.pl +++ eucalyptus-1.6.2/tools/detach.pl @@ -75,7 +75,6 @@ $inputfail = 1; $detachfail = 2; -system("cp $virshxmlfile /tmp/wtf"); $distro = detect_distro(); print STDERR "DISTRO: $distro\n"; if ( ! -x "$rootwrap" ) { --- eucalyptus-1.6.2.orig/tools/eucalyptus-nc.in +++ eucalyptus-1.6.2/tools/eucalyptus-nc.in @@ -87,6 +87,7 @@ fi fi +[ -z "$EUID" ] && EUID=$(id -u) if [ "$EUID" != "0" ]; then echo "Eucalyptus init scritps must be run as root." exit 1 @@ -96,7 +97,7 @@ # eucalyptus manually, it may have binaries in a non-standard position: # hence we need to keep the PATH we receive. export PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH -DESC="Eucalyptus services" +DESC="Eucalyptus Node Service" NAME=eucalyptus-nc BRCTL="`which brctl 2> /dev/null`" MODPROBE="`which modprobe 2> /dev/null`" @@ -203,6 +204,13 @@ echo "Failed to start the NC!" exit 1 fi + + avahi_publish="$(which avahi-publish)" + start-stop-daemon --start --pidfile /var/run/eucalyptus/avahi-nc.pid \ + --name avahi-publish --background --make-pidfile \ + --startas $avahi_publish -- \ + -s "$(hostname)" _eucalyptus._tcp "$NC_PORT" \ + txtvers=1 protovers=1.5.0 type=node } do_status() { @@ -218,6 +226,13 @@ } do_stop() { + avahi_pid= + avahi_pidfile=/var/run/eucalyptus/avahi-nc.pid + if test -s $avahi_pidfile; then + avahi_pid=`cat $avahi_pidfile 2> /dev/null` + kill $avahi_pid > /dev/null 2>&1 + fi + pid= pidfile=$EUCALYPTUS/var/run/eucalyptus/eucalyptus-nc.pid # let's be sure we are killing the right process @@ -235,7 +250,7 @@ fi timeout=5 while [ $timeout -gt 0 ]; do - if ps $pid > /dev/null 2>&1 ; then + if ([ "$avahi_pid" ] || [ "$pid" ]) && ps $avahi_pid $pid > /dev/null 2>&1; then sleep 1 timeout=$(($timeout - 1)) else @@ -243,8 +258,9 @@ fi done if [ $timeout -eq 0 ]; then - kill -9 $pid > /dev/null 2>&1 + kill -9 $avahi_pid $pid > /dev/null 2>&1 fi + rm -f $avahi_pidfile rm -f $pidfile } @@ -256,16 +272,23 @@ exit 1 fi if [ "$EUCALYPTUS" = "not_configured" ]; then - echo "EUCALYPTUS not configured!" - exit 1 + echo "EUCALYPTUS not configured!" + # This is a fatal condition, so exit, but exit 0 + exit 0 fi +# Create the suggested 32 loop devices /dev/loop0 .. /dev/loop31 +LOOP_SUG=32 +for i in $(seq 0 $(($LOOP_SUG - 1))); do + [ -b /dev/loop$i ] || (mknod -m 660 /dev/loop$i b 7 $i && chown root:disk /dev/loop$i) +done + # let's see how many loop devices we have available LOOP_AVL="`/bin/ls /dev/loop* 2> /dev/null|wc -l`" if [ -z "$LOOP_AVL" -o "$LOOP_AVL" = "0" ]; then echo "Couldn't find loop devices (/dev/loop*): expect problems" -elif [ $LOOP_AVL -lt 32 ]; then - echo "You should have at least 32 loop devices" +elif [ $LOOP_AVL -lt $LOOP_SUG ]; then + echo "You should have at least $LOOP_SUG loop devices" fi if [ -z "$EUCA_USER" ] ; then @@ -323,92 +346,80 @@ case "$1" in start) - if [ "$VERBOSE" != no ]; then - if [ "$WE_HAVE_LSB" = "Y" ]; then - log_daemon_msg "Starting $DESC" "$NAME" - else - echo -n "Starting $DESC: " - fi + if [ "$WE_HAVE_LSB" = "Y" ]; then + log_daemon_msg "Starting $DESC" + else + echo -n "Starting $DESC: " fi # let's check there is no previous NC running if do_status ; then - echo - echo "another NC is already running!" - if [ "$VERBOSE" != no ]; then - if [ "$WE_HAVE_LSB" = "Y" ]; then - log_end_msg 1 - fi + if [ "$WE_HAVE_LSB" = "Y" ]; then + log_end_msg 0 + else + echo + echo "$DESC is already running!" fi - exit 1 + exit 0 fi - + rm -f /dev/shm/sem.eucalyptus-nc* /dev/shm/sem.eucalyptus-st* do_start case "$?" in 0|1) - if [ "$VERBOSE" != no ]; then - if [ "$WE_HAVE_LSB" = "Y" ]; then - log_end_msg 0 - else - echo "done." - fi + if [ "$WE_HAVE_LSB" = "Y" ]; then + log_end_msg 0 + else + echo "done." fi ;; *) - if [ "$VERBOSE" != no ]; then - if [ "$WE_HAVE_LSB" = "Y" ]; then - log_end_msg 1 - else - echo "failed!" - fi + if [ "$WE_HAVE_LSB" = "Y" ]; then + log_end_msg 1 + else + echo "failed!" fi ;; esac ;; stop) - if [ "$VERBOSE" != no ]; then - if [ "$WE_HAVE_LSB" = "Y" ]; then - log_begin_msg "Stopping $DESC" - else - echo -n "Stopping $DESC: " - fi - fi + if [ "$WE_HAVE_LSB" = "Y" ]; then + log_begin_msg "Stopping $DESC" + else + echo -n "Stopping $DESC: " + fi do_stop rm -f /dev/shm/sem.eucalyptus-nc* /dev/shm/sem.eucalyptus-st* - if [ "$VERBOSE" != no ]; then - if [ "$WE_HAVE_LSB" = "Y" ]; then - log_end_msg 0 - else - echo "done." - fi + if [ "$WE_HAVE_LSB" = "Y" ]; then + log_end_msg 0 + else + echo "done." fi ;; restart) - if [ "$VERBOSE" != no ]; then - if [ "$WE_HAVE_LSB" = "Y" ]; then - log_begin_msg "Restarting $DESC" - else - echo -n "Restarting $DESC: " - fi + if [ "$WE_HAVE_LSB" = "Y" ]; then + log_begin_msg "Restarting $DESC" + else + echo -n "Restarting $DESC: " fi # restart allow the CC to mantain the state across restart do_stop do_start - if [ "$VERBOSE" != no ]; then - if [ "$WE_HAVE_LSB" = "Y" ]; then - log_end_msg 0 - else - echo "done." - fi + if [ "$WE_HAVE_LSB" = "Y" ]; then + log_end_msg 0 + else + echo "done." fi - ;; + ;; status) if do_status ; then - echo "NC is running" + msg="eucalyptus-nc is running" + [ "$WE_HAVE_LSB" = "Y" ] && log_success_msg "$msg" || echo "$msg" else + msg="eucalyptus-nc is not running" + [ "$WE_HAVE_LSB" = "Y" ] && log_failure_msg "$msg" || echo "$msg" exit 3 - fi + fi ;; config) echo "EUCALYPTUS=${EUCALYPTUS}" @@ -418,7 +429,7 @@ ;; *) - echo "Usage: $NAME {start|stop|restart}" >&2 + echo "Usage: $NAME {start|stop|restart|status|config}" >&2 exit 3 ;; esac --- eucalyptus-1.6.2.orig/tools/run_axis.sh +++ eucalyptus-1.6.2/tools/run_axis.sh @@ -66,6 +66,7 @@ LOG_LEVEL=2 # 0 - critical, 1 - errors, 2 - warnings, 3 - info, 4 - debug, 5- user, 6- trace PORT=9090 +[ -z "$EUID" ] && EUID=$(id -u) if [[ $EUID -ne 0 ]]; then echo WARNING: run this as root if you want to control Xen fi --- eucalyptus-1.6.2.orig/tools/add_key.pl +++ eucalyptus-1.6.2/tools/add_key.pl @@ -61,6 +61,22 @@ delete @ENV{qw(IFS CDPATH ENV BASH_ENV)}; $ENV{'PATH'}='/bin:/usr/bin:/sbin:/usr/sbin/'; +$eucaconf=$ENV{'EUCALYPTUS'} . "/etc/eucalyptus/eucalyptus.conf"; +if (open(FH, "$eucaconf")) { + while() { + chomp; + my $line = $_; + if ($line =~ /^\s*VNET_MODE="(.*)"/) { + my $mode = $1; + if (($mode =~ /MANAGED/) ) { + # only do key injection if we're not in managed mode + print "done\n"; + exit(0); + } + } + } + close(FH); +} #$MOUNT=untaint(`which mount`); #$UMOUNT=untaint(`which umount`); #$MOUNT=untaint("/tmp/euca_mountwrap"); --- eucalyptus-1.6.2.orig/tools/eucalyptus.conf +++ eucalyptus-1.6.2/tools/eucalyptus.conf @@ -158,18 +158,18 @@ # xenbr1, etc' on older Xen versions, and 'eth0, eth1, etc' on newer # Xen versions. The command 'brctl show' will give you more # information on your local bridge setup. -VNET_BRIDGE="xenbr0" +VNET_BRIDGE="br0" # This indicates where we have a dhcp server binary. We use it to provide # the images with IPs: Eucalyptus provides its own configuration per # instance. -VNET_DHCPDAEMON="/usr/sbin/dhcpd" +VNET_DHCPDAEMON="/usr/sbin/dhcpd3" # Some systems have their DHCP daemon configured to run as a non-root # user. If this is the case, set the name of that user here (by # default, Eucalyptus will set up DHCPD configuration files and # directories as owned by root). -#VNET_DHCPUSER="root" +VNET_DHCPUSER="dhcpd" # Following are example eucalyptus VM networking configurations. # There are four modes to choose from (MANAGED, MANAGED-NOVLAN, @@ -197,7 +197,7 @@ # to your cloud-contoller's IP address (must be an address that can be # reached by the CC). -#VNET_MODE="MANAGED" +VNET_MODE="MANAGED-NOVLAN" #VNET_SUBNET="192.168.0.0" #VNET_NETMASK="255.255.0.0" #VNET_DNS="your-dns-server-ip" @@ -212,7 +212,7 @@ # will typically invoke a DHCP client to aquire an IP address. Use # this mode if you wish to manage VM IPs yourself, or allow the VMs to # pick up an IP from a non-eucalyptus managed DHCP server. -VNET_MODE="SYSTEM" +#VNET_MODE="SYSTEM" # If VNET_MODE is set to STATIC, you can manually configure a set of # IP addresses that will be allocated to VMs at boot time in a first